massive update

This commit is contained in:
2019-01-08 16:09:15 +05:00
parent ad71e72294
commit 39916fa5fb
22 changed files with 1260 additions and 70 deletions

View File

@ -0,0 +1,6 @@
{% extends 'base.html' %}
{% block content %}
<div class="container">
<div>Количество подразделений без электронной почты: {{ email_count }}</div>
</div>
{% endblock %}

View File

@ -0,0 +1,20 @@
{% extends 'base.html' %}
{% block content %}
<div class="container">
<h3>Добавить телефон</h3>
<form method="get">
<div class="form-group">
<label for="date_start">Начало</label>
<input class="form-control" id="date_start" name="date_start" required type="date">
</div>
<div class="form-group">
<label for="date_end">Конец</label>
<input class="form-control" id="date_end" name="date_end" required type="date">
</div>
<button type="submit" class="btn btn-primary">Отправить</button>
</form>
{% if res %}
<div>Подразделение {{ res }}</div>
{% endif %}
</div>
{% endblock %}

View File

@ -0,0 +1,47 @@
{% extends 'base.html' %}
{% block content %}
<div class="container">
<h3>Добавить телефон</h3>
<form method="get">
<div class="form-group">
<label for="ent_id">Телефон для</label>
<select class="form-control" id="ent_id" name="ent_id" required>
{% for item in enterprises %}
<option value="{{ item.id }}">Предприятие "{{ item.contact_info.name }}"</option>
{% endfor %}
</select>
</div>
<div class="form-group">
<label for="date">На дату</label>
<input class="form-control" id="date" name="date" required type="date">
</div>
<button type="submit" class="btn btn-primary">Отправить</button>
</form>
{% if res %}
<table class="table">
<thead>
<tr>
<th scope="col">
Имя
</th>
<th scope="col">
Телефон
</th>
</tr>
</thead>
<tbody>
{% for item in res %}
<tr>
<th scope="row">
{{ item[0] }}
</th>
<td>
{{ item[1] }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
{% endblock %}