Updated network settings

This commit is contained in:
Martin Schröder 2015-05-27 15:18:29 +02:00 committed by Martin Schröder
parent 28358865f3
commit 94cb86c6d7
4 changed files with 5 additions and 6 deletions

View file

@ -6,7 +6,7 @@
</span>
</div>
<div style="float: right;">
<juci-theme-picker></juci-theme-picker>
<!--<juci-theme-picker></juci-theme-picker>-->
</div>
<div id="info">
WAN IP Address: {{wanip||'Not connected'}} | Firmware version: {{firmware}}

View file

@ -14,8 +14,8 @@ UCI.network.$registerSectionType("interface", {
"is_lan": { dvalue: false, type: Boolean },
"ifname": { dvalue: '', type: String },
"proto": { dvalue: 'dhcp', type: String },
"ipaddr": { dvalue: '127.0.0.1', type: String },
"netmask": { dvalue: '255.0.0.0', type: String },
"ipaddr": { dvalue: '', type: String },
"netmask": { dvalue: '', type: String },
"type": { dvalue: '', type: String },
"ip6assign": { dvalue: 60, type: Number },
"bridge_instance": { dvalue: false, type: Boolean },

View file

@ -2,7 +2,6 @@
<div ng-controller="SettingsNetworkCtrl">
<luci-config-heading>{{ 'Network Settings' | translate }}</luci-config-heading>
<luci-config-info>{{ 'settings.network.info' | translate }}</luci-config-info>
<p translate ng-hide="network">Missing uci config boardpanel.</p>
<luci-config-section>
<div ng-repeat="interface in interfaces">
<uci-network-interface-edit ng-model="interface"></uci-network-interface-edit>

View file

@ -21,10 +21,10 @@
<switch ng-model="dhcp.ignore.value" class="green" inverted></switch>
</luci-config-line>
<luci-config-line title="{{'IP Address'|translate}}" ng-show="dhcp.ignore.value">
<input class="form-control" ng-model="interface.ipaddr.value" ></input>
<input class="form-control" ng-model="interface.ipaddr.value" placeholder="{{'Static IP Address'|translate}}"></input>
</luci-config-line>
<luci-config-line title="{{'Netmask'|translate}}" ng-show="dhcp.ignore.value">
<input class="form-control" ng-model="interface.netmask.value" ></input>
<input class="form-control" ng-model="interface.netmask.value" placeholder="{{'Network Mask'|translate}}"></input>
</luci-config-line>
</luci-config-lines>
</div>