aboutsummaryrefslogtreecommitdiffstats
path: root/torouterui/templates
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-09-25 19:01:13 +0200
committerficus <ficus@robocracy.org>2012-09-25 19:01:13 +0200
commit73d125b250b0e1741f8f7298226107566b33de61 (patch)
tree81620003c209d7a9c7d0d835beb57506f80f6aa3 /torouterui/templates
parent79b260db495e94430d499906f321dc022c68fec1 (diff)
downloadtui-73d125b250b0e1741f8f7298226107566b33de61.tar.gz
tui-73d125b250b0e1741f8f7298226107566b33de61.zip
dhcp settings for lan and wifi
Diffstat (limited to 'torouterui/templates')
-rw-r--r--torouterui/templates/lan.html5
-rw-r--r--torouterui/templates/lib.html13
-rw-r--r--torouterui/templates/wifi.html2
3 files changed, 16 insertions, 4 deletions
diff --git a/torouterui/templates/lan.html b/torouterui/templates/lan.html
index 09bcf0a..9b260bf 100644
--- a/torouterui/templates/lan.html
+++ b/torouterui/templates/lan.html
@@ -14,11 +14,14 @@
<legend>Address Configuration</legend>
{{ lib.forminput(form, formerr, 'ipv4addr', 'IPv4 Address', '0.0.0.0') }}
{{ lib.forminput(form, formerr, 'ipv4netmask', 'Netmask', '255.255.0.0') }}
-{{ lib.forminput(form, formerr, 'ipv4gateway', 'Gateway IP Address', '0.0.0.0') }}
<legend>DHCP Configuration</legend>
+Make sure that the assigned addresses all fall within the netmask range
+specified above!
+
{{ lib.forminput(form, formerr, 'dhcpbase', 'DHCP Range Base', '192.168.1.100') }}
{{ lib.forminput(form, formerr, 'dhcptop', 'DHCP Range Top', '192.168.1.200') }}
+{{ lib.forminput(form, formerr, 'dhcpnetmask', 'DHCP Netmask', '255.255.255.0') }}
{{ lib.forminput(form, formerr, 'dhcptime', 'Lease Time', '12h') }}
<div class="pull-right">
diff --git a/torouterui/templates/lib.html b/torouterui/templates/lib.html
index 6ac5e12..03a671f 100644
--- a/torouterui/templates/lib.html
+++ b/torouterui/templates/lib.html
@@ -39,8 +39,17 @@ Network hardware not detected at all!
<th>SSID
<td><span style="font-family:monospace;">{{ ifstatus.ssid }}</span>
<tr>
- <th>Frequency
- <td><span style="font-family:monospace;">{{ ifstatus.freq }}</span>
+ <th>SSID Broadcast?
+ <td><span style="font-family:monospace;">{{ ifstatus.ssid_broadcast }}</span>
+ <tr>
+ <th>Channel
+ <td><span style="font-family:monospace;">{{ ifstatus.channel }}</span>
+ <tr>
+ <th>TX Power
+ <td><span style="font-family:monospace;">{{ ifstatus.tx_power }}</span>
+ <tr>
+ <th>Auth Mode
+ <td><span style="font-family:monospace;">{{ ifstatus.auth_mode }}</span>
<tr>
<th>Signal Strength
<td><span style="font-family:monospace;">{{ ifstatus.signal_dbm }}</span>
diff --git a/torouterui/templates/wifi.html b/torouterui/templates/wifi.html
index 3e41788..c8f17f0 100644
--- a/torouterui/templates/wifi.html
+++ b/torouterui/templates/wifi.html
@@ -20,11 +20,11 @@
<legend>Network Address</legend>
{{ lib.forminput(form, formerr, 'ipv4addr', 'IPv4 Address', '0.0.0.0') }}
{{ lib.forminput(form, formerr, 'ipv4netmask', 'Netmask', '255.255.0.0') }}
-{{ lib.forminput(form, formerr, 'ipv4gateway', 'Gateway IP Address', '0.0.0.0') }}
<legend>DHCP Server</legend>
{{ lib.forminput(form, formerr, 'dhcpbase', 'DHCP Range Base', '192.168.1.100') }}
{{ lib.forminput(form, formerr, 'dhcptop', 'DHCP Range Top', '192.168.1.200') }}
+{{ lib.forminput(form, formerr, 'dhcpnetmask', 'DHCP Range Top', '255.255.255.0') }}
{{ lib.forminput(form, formerr, 'dhcptime', 'Lease Time', '12h') }}
<div class="pull-right">