summaryrefslogtreecommitdiff
path: root/localwebsite/templates-web
diff options
context:
space:
mode:
Diffstat (limited to 'localwebsite/templates-web')
-rw-r--r--localwebsite/templates-web/inverter_page.twig20
-rw-r--r--localwebsite/templates-web/modem_data.twig14
-rw-r--r--localwebsite/templates-web/modem_status_page.twig19
-rw-r--r--localwebsite/templates-web/modem_verbose_page.twig15
-rw-r--r--localwebsite/templates-web/pump.twig17
-rw-r--r--localwebsite/templates-web/signal_level.twig5
-rw-r--r--localwebsite/templates-web/sms_page.twig62
-rw-r--r--localwebsite/templates-web/spinner.twig14
8 files changed, 0 insertions, 166 deletions
diff --git a/localwebsite/templates-web/inverter_page.twig b/localwebsite/templates-web/inverter_page.twig
deleted file mode 100644
index c51e1bf..0000000
--- a/localwebsite/templates-web/inverter_page.twig
+++ /dev/null
@@ -1,20 +0,0 @@
-{% include 'bc.twig' with {
- history: [
- {text: "Инвертор" }
- ]
-} %}
-
-<h6 class="text-primary">Статус</h6>
-<div id="inverter_status">
- {{ html|raw }}
-</div>
-
-<div class="pt-3">
- <a href="/inverter/set-osp/?value={{ rated.output_source_priority == 'Solar-Battery-Utility' ? 'sub' : 'sbu' }}">
- <button type="button" class="btn btn-primary">Переключить на <b>{{ rated.output_source_priority == 'Solar-Battery-Utility' ? 'Solar-Utility-Battery' : 'Solar-Battery-Utility' }}</b></button>
- </a>
-</div>
-
-{% js %}
-Inverter.poll();
-{% endjs %} \ No newline at end of file
diff --git a/localwebsite/templates-web/modem_data.twig b/localwebsite/templates-web/modem_data.twig
deleted file mode 100644
index a2c00e5..0000000
--- a/localwebsite/templates-web/modem_data.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-{% if not loading %}
- <span class="text-secondary">Сигнал:</span> {% include 'signal_level.twig' with {'level': modem_data.level} %}<br>
- <span class="text-secondary">Тип сети:</span> <b>{{ modem_data.type }}</b><br>
- <span class="text-secondary">RSSI:</span> {{ modem_data.rssi }}<br/>
- {% if modem_data.sinr %}
- <span class="text-secondary">SINR:</span> {{ modem_data.sinr }}<br/>
- {% endif %}
- <span class="text-secondary">Время соединения:</span> {{ modem_data.connected_time }}<br>
- <span class="text-secondary">Принято/передано:</span> {{ modem_data.downloaded }} / {{ modem_data.uploaded }}
- <br>
- <a href="/modem/verbose/?modem={{ modem }}">Подробная информация</a>
-{% else %}
- {% include 'spinner.twig' %}
-{% endif %} \ No newline at end of file
diff --git a/localwebsite/templates-web/modem_status_page.twig b/localwebsite/templates-web/modem_status_page.twig
deleted file mode 100644
index 3f20b86..0000000
--- a/localwebsite/templates-web/modem_status_page.twig
+++ /dev/null
@@ -1,19 +0,0 @@
-{% include 'bc.twig' with {
- history: [
- {text: "Модемы" }
- ]
-} %}
-
-{% for modem_key, modem in modems %}
- <h6 class="text-primary{% if not loop.first %} mt-4{% endif %}">{{ modem.label }}</h6>
- <div id="modem_data_{{ modem_key }}">
- {% include 'modem_data.twig' with {
- loading: true,
- modem: modem_key
- } %}
- </div>
-{% endfor %}
-
-{% js %}
-ModemStatus.init({{ js_modems|json_encode|raw }});
-{% endjs %}
diff --git a/localwebsite/templates-web/modem_verbose_page.twig b/localwebsite/templates-web/modem_verbose_page.twig
deleted file mode 100644
index 3b4c25e..0000000
--- a/localwebsite/templates-web/modem_verbose_page.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-{% include 'bc.twig' with {
- history: [
- {link: '/modem/', text: "Модемы" },
- {text: modem_name}
- ]
-} %}
-
-{% for item in data %}
- {% set item_name = item[0] %}
- {% set item_data = item[1] %}
- <h6 class="text-primary mt-4">{{ item_name }}</h6>
- {% for k, v in item_data %}
- {{ k }} = {{ v }}<br>
- {% endfor %}
-{% endfor %} \ No newline at end of file
diff --git a/localwebsite/templates-web/pump.twig b/localwebsite/templates-web/pump.twig
deleted file mode 100644
index 3bce0e2..0000000
--- a/localwebsite/templates-web/pump.twig
+++ /dev/null
@@ -1,17 +0,0 @@
-{% include 'bc.twig' with {
- history: [
- {text: "Насос" }
- ]
-} %}
-
-<form action="/pump/" method="get">
- <input type="hidden" name="set" value="{{ status == 'on' ? 'off' : 'on' }}" />
- Сейчас насос
- {% if status == 'on' %}
- <span class="text-success"><b>включен</b></span>.<br><br>
- <button type="submit" class="btn btn-primary">Выключить</button>
- {% else %}
- <span class="text-danger"><b>выключен</b></span>.<br><br>
- <button type="submit" class="btn btn-primary">Включить</button>
- {% endif %}
-</form> \ No newline at end of file
diff --git a/localwebsite/templates-web/signal_level.twig b/localwebsite/templates-web/signal_level.twig
deleted file mode 100644
index 9498482..0000000
--- a/localwebsite/templates-web/signal_level.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-<div class="signal_level">
- {% for i in 0..4 %}
- <div{% if i < level %} class="yes"{% endif %}></div>
- {% endfor %}
-</div> \ No newline at end of file
diff --git a/localwebsite/templates-web/sms_page.twig b/localwebsite/templates-web/sms_page.twig
deleted file mode 100644
index 112fa64..0000000
--- a/localwebsite/templates-web/sms_page.twig
+++ /dev/null
@@ -1,62 +0,0 @@
-{% 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="/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">Отправить SMS</h6>
-
-{% if is_sent %}
- <div class="alert alert-success" role="alert">
- Сообщение отправлено.
- </div>
-{% elseif error %}
- <div class="alert alert-danger" role="alert">
- {{ error }}
- </div>
-{% endif %}
-
-<div>
- <form method="post" action="/sms/">
- <input type="hidden" name="modem" value="{{ selected_modem }}">
- <div class="form-floating mb-3">
- <input type="text" name="phone" class="form-control" id="inputPhone" placeholder="+7911xxxyyzz">
- <label for="inputPhone">Телефон</label>
- </div>
- <div class="form-floating">
- <textarea class="form-control" id="inputTA" name="text" placeholder="Hello world" style="height: 100px"></textarea>
- <label for="inputTA">Текст сообщения</label>
- </div>
- <div class="mt-3">
- <button type="submit" class="btn btn-primary">Отправить</button>
- </div>
- </form>
-</div>
-
-<h6 class="text-primary mt-4">
- Последние
- {% if not is_outbox %}
- <b>входящие</b> <span class="text-black-50">|</span> <a href="/sms/?modem={{ selected_modem }}&amp;outbox=1">исходящие</a>
- {% else %}
- <a href="/sms/?modem={{ selected_modem }}">входящие</a> <span class="text-black-50">|</span> <b>исходящие</b>
- {% endif %}
-</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
diff --git a/localwebsite/templates-web/spinner.twig b/localwebsite/templates-web/spinner.twig
deleted file mode 100644
index 2d629ea..0000000
--- a/localwebsite/templates-web/spinner.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-<div class="sk-fading-circle">
- <div class="sk-circle1 sk-circle"></div>
- <div class="sk-circle2 sk-circle"></div>
- <div class="sk-circle3 sk-circle"></div>
- <div class="sk-circle4 sk-circle"></div>
- <div class="sk-circle5 sk-circle"></div>
- <div class="sk-circle6 sk-circle"></div>
- <div class="sk-circle7 sk-circle"></div>
- <div class="sk-circle8 sk-circle"></div>
- <div class="sk-circle9 sk-circle"></div>
- <div class="sk-circle10 sk-circle"></div>
- <div class="sk-circle11 sk-circle"></div>
- <div class="sk-circle12 sk-circle"></div>
-</div> \ No newline at end of file