mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-11 11:38:41 +01:00
Fixed checkboxes in phone settings
This commit is contained in:
parent
ba1d6457b4
commit
86ca563825
6 changed files with 22 additions and 9 deletions
|
|
@ -1,7 +1,10 @@
|
|||
.checkbox-info input[type="checkbox"] {
|
||||
cursor: pointer;
|
||||
}
|
||||
.checkbox-info input[type="checkbox"]:checked + label::before {
|
||||
background-color: #a8b400;
|
||||
border-color: #808080;
|
||||
}
|
||||
.checkbox-info input[type="checkbox"]:checked + label::after {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,11 @@
|
|||
var deferred = $.Deferred();
|
||||
async.series([
|
||||
function(next){
|
||||
scope.UBUS.$init().fail(function(){
|
||||
scope.UBUS.$init().done(function(){
|
||||
if(!scope.UBUS.router && !scope.UBUS.router.info){
|
||||
alert("Questd must have crashed or is not running. Restart it on the router!");
|
||||
}
|
||||
}).fail(function(){
|
||||
console.error("UBUS failed to initialize!");
|
||||
}).always(function(){ next(); });
|
||||
},
|
||||
|
|
|
|||
|
|
@ -89,5 +89,9 @@ $juci.module("core")
|
|||
setTimeout(function(){$scope.$apply();}, 0);
|
||||
});
|
||||
}
|
||||
$scope.onCancel = function(){
|
||||
// simple way to reset
|
||||
window.location.reload();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -12,9 +12,11 @@
|
|||
{{num.username.value}}
|
||||
</luci-config-line>
|
||||
<luci-config-line title="Incoming Phone Lines">
|
||||
<div class="form-group col-md-6" ng-repeat="line in phone_lines">
|
||||
<label>{{line.name.value}}</label>
|
||||
<input type="checkbox"/>
|
||||
<div class="form-group col-md-6 " ng-repeat="line in phone_lines track by $index">
|
||||
<div class="checkbox checkbox-info">
|
||||
<input type="checkbox" checklist-model="num.call_lines.value" checklist-value="line['.name']"/>
|
||||
<label>{{line.name.value}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</luci-config-line>
|
||||
</luci-config-lines>
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ UCI.voice_client.$registerSectionType("sip_service_provider", {
|
|||
"priority_g726": { dvalue: 0, type: Number },
|
||||
"enabled": { dvalue: true, type: Boolean },
|
||||
"target": { dvalue: "direct", type: String },
|
||||
"call_lines": { dvalue: "BRCM/4", type: String },
|
||||
"call_lines": { dvalue: [], type: Array },
|
||||
"mailbox": { dvalue: "", type: String },
|
||||
"call_filter": { dvalue: "", type: String },
|
||||
"domain": { dvalue: "", type: String },
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@
|
|||
<div class="row" ng-class="{'field-error': schedule.days.error}" >
|
||||
<div class="col-xs-6 " ng-repeat="day in allDayNames">
|
||||
<div class="checkbox checkbox-info">
|
||||
<input type="checkbox" checklist-model="schedule.days.value" checklist-value="day.value">
|
||||
<label><strong>{{day.label}}</strong></label>
|
||||
</div>
|
||||
<input type="checkbox" checklist-model="schedule.days.value" checklist-value="day.value">
|
||||
<label><strong>{{day.label}}</strong></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</luci-config-line>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue