modules/admin-full: rework wifi status templates
This commit is contained in:
parent
5d426cf4ac
commit
6942e4ab1b
3 changed files with 15 additions and 5 deletions
|
@ -114,7 +114,7 @@ $Id$
|
||||||
|
|
||||||
<input type="hidden" name="clbridge" value="<%=iw.type == "wl" and 1 or 0%>" />
|
<input type="hidden" name="clbridge" value="<%=iw.type == "wl" and 1 or 0%>" />
|
||||||
|
|
||||||
<input class="cbi-button-apply" type="submit" value="<%:Join Network%>" />
|
<input class="cbi-button-apply" type="submit" value="Join Network" />
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -167,7 +167,7 @@ $Id$
|
||||||
{
|
{
|
||||||
if (is_assoc)
|
if (is_assoc)
|
||||||
info.innerHTML = String.format(
|
info.innerHTML = String.format(
|
||||||
'<strong><%:SSID%>:</strong> %s | ' +
|
'<strong><%:SSID%>:</strong> %h | ' +
|
||||||
'<strong><%:Mode%>:</strong> %s<br />' +
|
'<strong><%:Mode%>:</strong> %s<br />' +
|
||||||
'<strong><%:BSSID%>:</strong> %s | ' +
|
'<strong><%:BSSID%>:</strong> %s | ' +
|
||||||
'<strong><%:Encryption%>:</strong> %s',
|
'<strong><%:Encryption%>:</strong> %s',
|
||||||
|
@ -175,7 +175,12 @@ $Id$
|
||||||
iw.encryption ? iw.encryption.description : '<%:None%>'
|
iw.encryption ? iw.encryption.description : '<%:None%>'
|
||||||
);
|
);
|
||||||
else
|
else
|
||||||
info.innerHTML = '<em><%:Wireless is disabled or not associated%></em>';
|
info.innerHTML = String.format(
|
||||||
|
'<strong><%:SSID%>:</strong> %h | ' +
|
||||||
|
'<strong><%:Mode%>:</strong> %s<br />' +
|
||||||
|
'<em><%:Wireless is disabled or not associated%></em>',
|
||||||
|
iw.ssid || '?', iw.mode
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
var dev = document.getElementById(wifidevs[iw.id] + '-iw-devinfo');
|
var dev = document.getElementById(wifidevs[iw.id] + '-iw-devinfo');
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
if (d && is_assoc)
|
if (d && is_assoc)
|
||||||
d.innerHTML = String.format(
|
d.innerHTML = String.format(
|
||||||
'<strong><%:Mode%>:</strong> %s | ' +
|
'<strong><%:Mode%>:</strong> %s | ' +
|
||||||
'<strong><%:SSID%>:</strong> %s<br />' +
|
'<strong><%:SSID%>:</strong> %h<br />' +
|
||||||
'<strong><%:BSSID%>:</strong> %s | ' +
|
'<strong><%:BSSID%>:</strong> %s | ' +
|
||||||
'<strong><%:Encryption%>:</strong> %s<br />' +
|
'<strong><%:Encryption%>:</strong> %s<br />' +
|
||||||
'<strong><%:Channel%>:</strong> %d (%.3f GHz) | ' +
|
'<strong><%:Channel%>:</strong> %d (%.3f GHz) | ' +
|
||||||
|
@ -53,7 +53,12 @@
|
||||||
iw.bitrate ? (iw.bitrate / 1000) : 0, iw.country
|
iw.bitrate ? (iw.bitrate / 1000) : 0, iw.country
|
||||||
);
|
);
|
||||||
else if (d)
|
else if (d)
|
||||||
d.innerHTML = '<%:Wireless is disabled or not associated%>';
|
d.innerHTML = String.format(
|
||||||
|
'<strong><%:SSID%>:</strong> %h | ' +
|
||||||
|
'<strong><%:Mode%>:</strong> %s<br />' +
|
||||||
|
'<em><%:Wireless is disabled or not associated%></em>',
|
||||||
|
iw.ssid || '?', iw.mode
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
window.setTimeout(update_status, 5000);
|
window.setTimeout(update_status, 5000);
|
||||||
|
|
Loading…
Reference in a new issue