From 42725426ec02d359b67cd8d665afe17882d38958 Mon Sep 17 00:00:00 2001 From: ficus Date: Sat, 15 Sep 2012 19:46:49 +0200 Subject: more WIP --- templates/lib.html | 65 +++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 54 insertions(+), 11 deletions(-) (limited to 'templates/lib.html') diff --git a/templates/lib.html b/templates/lib.html index 33534da..6ac5e12 100644 --- a/templates/lib.html +++ b/templates/lib.html @@ -1,41 +1,84 @@ + {% macro ifstatus(ifstatus) -%} - +{% if not ifstatus %} + +Network hardware not detected at all! + +{% else %} +
+ + + +
Interface Name - {{ ifstatus.ifname }} + {{ ifstatus.ifname }}
Status - + {{ ifstatus.state }}
MAC Address - {{ ifstatus.mac }} + {{ ifstatus.mac }}
IPv4 Addresses - + {% for addr in ifstatus.ipv4addrs %} {{ addr.addr }}/{{ addr.prefix}} ({{ addr.scope }})
- {% endfor %} + {% endfor %}
IPv6 Addresses - + {% for addr in ifstatus.ipv6addrs %} {{ addr.addr }}/{{ addr.prefix}} ({{ addr.scope }})
- {% endfor %} + {% endfor %}
+ {% if ifstatus.radio_state %} +
Radio State + {{ ifstatus.radio_state }} +
SSID + {{ ifstatus.ssid }} +
Frequency + {{ ifstatus.freq }} +
Signal Strength + {{ ifstatus.signal_dbm }} + {% endif %}
+{% endif %} {%- endmacro %} + {% macro logbox(name, contents) -%}

{{name}}

{% if contents == None %} Access to {{name}} was denied, or file did not exist. {% else %} - -
+
+
 {{ contents }}
 
+
{% endif%} {%- endmacro %} + + +{% macro forminput(form, formerr, name, title, placeholder) -%} +
+ +
+ + {% if formerr[name] %} + {{ formerr[name] }} + {% endif %} +
+
+{%- endmacro %} + +{% macro formcheckbox(form, formerr, name, title, value) -%} + +{% endmacro %} -- cgit v1.2.3