diff --git a/peach-web/templates/settings/menu.html.tera b/peach-web/templates/settings/menu.html.tera new file mode 100644 index 0000000..43253c8 --- /dev/null +++ b/peach-web/templates/settings/menu.html.tera @@ -0,0 +1,14 @@ +{%- extends "nav" -%} +{%- block card %} + +
+
+ + +
+
+{%- endblock card -%} diff --git a/peach-web/templates/settings/network/configure_dns.html.tera b/peach-web/templates/settings/network/configure_dns.html.tera new file mode 100644 index 0000000..b9ceb84 --- /dev/null +++ b/peach-web/templates/settings/network/configure_dns.html.tera @@ -0,0 +1,75 @@ +{%- extends "nav" -%} +{%- block card %} + +
+ +
+ + {% if enable_dyndns %} + +
+
+ {% if is_dyndns_online %} + + {% else %} + + {% endif %} +
+
+ {% endif %} + +
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ +
+ +
+ + + + + {% if flash_msg and flash_name == "success" %} + +
{{ flash_msg }}.
+ {%- elif flash_msg and flash_name == "info" %} + +
{{ flash_msg }}.
+ {%- elif flash_msg and flash_name == "error" %} + +
{{ flash_msg }}.
+ {%- endif -%} + + + +
+ + +{%- endblock card -%} diff --git a/peach-web/templates/settings/network/network_add.html.tera b/peach-web/templates/settings/network/network_add.html.tera new file mode 100644 index 0000000..ecff007 --- /dev/null +++ b/peach-web/templates/settings/network/network_add.html.tera @@ -0,0 +1,23 @@ +{%- extends "nav" -%} +{%- block card %} + +
+
+
+ + + + +
+ + Cancel +
+
+ + {% include "snippets/flash_message" %} + + {% include "snippets/noscript" %} +
+
+ +{%- endblock card -%} diff --git a/peach-web/templates/settings/network/network_card.html.tera b/peach-web/templates/settings/network/network_card.html.tera new file mode 100644 index 0000000..e880a5e --- /dev/null +++ b/peach-web/templates/settings/network/network_card.html.tera @@ -0,0 +1,164 @@ +{%- extends "nav" -%} + +{%- block card %} + + {%- if ap_state == "up" %} + +
+ +
+ + + +
+ WiFi router + +
+ + +
+ +

Access Point

+ +

peach

+ +

{{ ap_ip }}

+
+
+ +
+ Add WiFi Network + Enable WiFi + List WiFi Networks + View Data Usage +
+ + {% include "snippets/flash_message" %} + +
+
+
+ Digital devices +
+ +
+ +
+
+ Download +
+ {%- if ap_traffic -%} + + + {%- else -%} + + + {%- endif -%} +
+ +
+
+ Upload +
+ {%- if ap_traffic -%} + + + {%- else -%} + + + {%- endif -%} +
+ +
+
+
+
+ {%- else %} + +
+ + {%- if wlan_state == "up" %} +
+ + + +
+ WiFi online + + {%- else %} +
+
+ WiFi offline + + {%- endif %} +
+
+ + + +

WiFi Client

+ +

{{ wlan_ssid }}

+ +

{{ wlan_ip }}

+
+
+ + + + {% include "snippets/flash_message" %} +
+ + +
+
+ Signal +
+ +
+ +
+
+ Download +
+ {%- if wlan_traffic %} + + + + {%- else %} + + + + {%- endif %} +
+ +
+
+ Upload +
+ {%- if wlan_traffic %} + + + + {%- else %} + + + + {%- endif %} +
+ +
+
+
+
+ + {%- endif -%} +{%- endblock card -%} diff --git a/peach-web/templates/settings/network/network_detail.html.tera b/peach-web/templates/settings/network/network_detail.html.tera new file mode 100644 index 0000000..1839687 --- /dev/null +++ b/peach-web/templates/settings/network/network_detail.html.tera @@ -0,0 +1,76 @@ +{%- extends "nav" -%} +{%- block card -%} + {%- if wlan_networks -%} + {%- for ssid, ap in wlan_networks -%} + {# select only the access point we are interested in #} + {%- if ssid == selected %} + +
+ +
+ + +
+ WiFi icon + +
+ + +
+ +

{{ ssid }}

+ +

{% if ap.detail %}{% if ap.detail.protocol != "" %}{{ ap.detail.protocol }}{% else %}None{% endif %}{% else %}Unknown{% endif %}

+ +

{% if ap.signal %}{{ ap.signal }}%{% else %}Unknown{% endif %}

+
+
+ +
+
+ {%- if wlan_ssid == selected -%} +
+ + + +
+ {%- endif -%} + {%- if saved_aps -%} + {# Loop through the list of AP's with saved credentials #} + {%- for ap in saved_aps -%} + {# If the selected access point appears in the list, #} + {# display the Modify and Forget buttons. #} + {%- if ap.ssid == selected -%} + {# Set 'in_list' to true to allow correct Add button display #} + {% set_global in_list = true %} + {%- if wlan_ssid != selected and ap.state == "Available" -%} +
+ + + +
+ {%- endif -%} + Modify +
+ + + +
+ {%- endif -%} + {%- endfor -%} + {%- endif -%} + {%- if in_list == false -%} + {# Display the Add button if AP creds not already in saved networks list #} + Add + {%- endif -%} + Cancel +
+ + {% include "snippets/flash_message" %} +
+
+ + {%- endif -%} + {%- endfor -%} + {%- endif -%} +{%- endblock card -%} diff --git a/peach-web/templates/settings/network/network_list.html.tera b/peach-web/templates/settings/network/network_list.html.tera new file mode 100644 index 0000000..852af77 --- /dev/null +++ b/peach-web/templates/settings/network/network_list.html.tera @@ -0,0 +1,38 @@ +{%- extends "nav" -%} +{%- block card %} +
+
+ +
+
+{%- endblock card -%} diff --git a/peach-web/templates/settings/network/network_modify.html.tera b/peach-web/templates/settings/network/network_modify.html.tera new file mode 100644 index 0000000..43cf19f --- /dev/null +++ b/peach-web/templates/settings/network/network_modify.html.tera @@ -0,0 +1,21 @@ +{%- extends "nav" -%} +{%- block card %} + +
+
+
+ + + + +
+ + Cancel +
+
+ + {% include "snippets/flash_message" %} +
+
+ +{%- endblock card -%} diff --git a/peach-web/templates/settings/network/network_usage.html.tera b/peach-web/templates/settings/network/network_usage.html.tera new file mode 100644 index 0000000..0d4dec1 --- /dev/null +++ b/peach-web/templates/settings/network/network_usage.html.tera @@ -0,0 +1,47 @@ +{%- extends "nav" -%} +{%- block card -%} + +
+
+
+ + +
+ +
+
+
+ Warning +
+
+ + + +
+
+ + +
+
+ Cutoff +
+
+ + + +
+
+ + +
+
+
+ + Reset + Cancel +
+ + {% include "snippets/flash_message" %} +
+ +{%- endblock card %} diff --git a/peach-web/templates/settings/ssb_settings.html.tera b/peach-web/templates/settings/ssb_settings.html.tera new file mode 100644 index 0000000..24587ae --- /dev/null +++ b/peach-web/templates/settings/ssb_settings.html.tera @@ -0,0 +1,20 @@ +{%- extends "nav" -%} +{%- block card %} + + +{%- endblock card -%}