blob: b6551a375148b5f6a509b2ee1fd7ba3eb759f73c (
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
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 %}
|