summaryrefslogtreecommitdiff
path: root/localwebsite/templates-web/sms_page.twig
diff options
context:
space:
mode:
Diffstat (limited to 'localwebsite/templates-web/sms_page.twig')
-rw-r--r--localwebsite/templates-web/sms_page.twig27
1 files changed, 27 insertions, 0 deletions
diff --git a/localwebsite/templates-web/sms_page.twig b/localwebsite/templates-web/sms_page.twig
new file mode 100644
index 0000000..b6551a3
--- /dev/null
+++ b/localwebsite/templates-web/sms_page.twig
@@ -0,0 +1,27 @@
+<nav aria-label="breadcrumb">
+ <ol class="breadcrumb">
+ <li class="breadcrumb-item"><a href="/">Главная</a></li>
+ <li class="breadcrumb-item active" aria-current="page">SMS-сообщения</li>
+ </ol>
+</nav>
+
+<nav>
+ <div class="nav nav-tabs" id="nav-tab">
+ {% for modem in modems_list %}
+ {% if selected_modem != modem %}<a href="/modem/sms/?modem={{ modem }}" class="text-decoration-none">{% endif %}
+ <button class="nav-link{% if modem == selected_modem %} active{% endif %}" type="button">{{ modems[modem].short_label }}</button>
+ {% if selected_modem != modem %}</a>{% endif %}
+ {% endfor %}
+ </div>
+</nav>
+
+<h6 class="text-primary mt-4">Последние входящие</h6>
+
+{% for m in messages %}
+ <div class="mt-3">
+ <b>{{ m.phone }}</b> <span class="text-secondary">({{ m.date }})</span><br/>
+ {{ m.content }}
+ </div>
+{% else %}
+ <span class="text-secondary">Сообщений нет.</span>
+{% endfor %} \ No newline at end of file