This commit is contained in:
Administrator
2023-09-27 21:58:38 +03:00
parent cdfe18f6b7
commit 9a7581cfdf
17 changed files with 181 additions and 2 deletions

27
templates/stats.html Normal file
View File

@@ -0,0 +1,27 @@
{% extends 'layouts/base.html' %}
{% block content %}
<h1>Статистика</h1>
<form method="POST">
{% csrf_token %}
<h4><input {% if user.selected_project.stats_link %}value="{{ user.selected_project.stats_link }}"{% endif %} name="link" placeholder="Ссылка на статистику" /> <input {% if user.selected_project.stats_cron %} value="{{ user.selected_project.stats_cron }}"{% endif %} name="cron" placeholder="CRON"/> Включено <input name="enabled" type="checkbox" {% if user.selected_project.stats_enabled %}checked{% endif %} /> <button type="submit" class="btn btn-primary">Сохранить</button> </h4>
</form>
{% if err %}
<div class="alert alert-danger" role="alert">
Ошибка валидации!
</div>
{% endif %}
<table class="table">
<tbody>
{% for row in data %}
<tr>
{% for item in row %}
<td>
{{ item }}
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}