massive update
This commit is contained in:
6
templates/pages/queries/count_no_emails.html
Normal file
6
templates/pages/queries/count_no_emails.html
Normal file
@ -0,0 +1,6 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<div>Количество подразделений без электронной почты: {{ email_count }}</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
20
templates/pages/queries/max_heads.html
Normal file
20
templates/pages/queries/max_heads.html
Normal 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 %}
|
||||
47
templates/pages/queries/phones.html
Normal file
47
templates/pages/queries/phones.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user