Fixed checkboxes in phone settings

This commit is contained in:
Martin Schröder 2015-05-27 11:50:44 +02:00 committed by Martin Schröder
parent ba1d6457b4
commit 86ca563825
6 changed files with 22 additions and 9 deletions

View file

@ -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;
}
}

View file

@ -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(); });
},

View file

@ -89,5 +89,9 @@ $juci.module("core")
setTimeout(function(){$scope.$apply();}, 0);
});
}
$scope.onCancel = function(){
// simple way to reset
window.location.reload();
}
});

View file

@ -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>

View file

@ -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 },

View file

@ -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>