blob: f60d223dbcf84fd60312fcb61f6489d16cc90bb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{% include 'bc.twig' with {
history: [
{text: "SMS-сообщения" }
]
} %}
<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 %}
|