massive update
This commit is contained in:
213
templates/pages/division/details.html
Normal file
213
templates/pages/division/details.html
Normal file
@ -0,0 +1,213 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-4">Код</div>
|
||||
<div class="col-8">{{ div.contact_info.code }}</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4">Имя</div>
|
||||
<div class="col-8">{{ div.contact_info.code }}</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4">Краткое имя</div>
|
||||
<div class="col-8">{{ div.contact_info.short_name }}</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4">Email</div>
|
||||
<div class="col-8">{{ div.contact_info.email }}</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<h6>Руководители</h6>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">
|
||||
Id
|
||||
</th>
|
||||
<th scope="col">
|
||||
Фамилия
|
||||
</th>
|
||||
<th scope="col">
|
||||
Имя
|
||||
</th>
|
||||
<th scope="col">
|
||||
Отчество
|
||||
</th>
|
||||
<th scope="col">
|
||||
Дата заступления
|
||||
</th>
|
||||
<th scope="col">
|
||||
Дата снятия
|
||||
</th>
|
||||
<th scope="col">
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for item in div.contact_info.head %}
|
||||
<tr>
|
||||
<th scope="row">
|
||||
{{ item.id }}
|
||||
</th>
|
||||
<td>
|
||||
{{ item.last_name }}
|
||||
</td>
|
||||
<td>
|
||||
{{ item.first_name }}
|
||||
</td>
|
||||
<td>
|
||||
{{ item.second_name }}
|
||||
</td>
|
||||
<td>
|
||||
{{ item.date_of_start }}
|
||||
</td>
|
||||
<td>
|
||||
{% if not item.date_of_end %}
|
||||
---
|
||||
{% else %}
|
||||
{{ item.date_of_end }}
|
||||
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if not item.date_of_end %}
|
||||
<b>Активен</b>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="row">
|
||||
<h6>Телефоны</h6>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">
|
||||
Id
|
||||
</th>
|
||||
<th scope="col">
|
||||
Номер
|
||||
</th>
|
||||
<th scope="col">
|
||||
Дата заступления
|
||||
</th>
|
||||
<th scope="col">
|
||||
Дата снятия
|
||||
</th>
|
||||
<th scope="col">
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for item in div.contact_info.phone_numbers %}
|
||||
<tr>
|
||||
<th scope="row">
|
||||
{{ item.id }}
|
||||
</th>
|
||||
<td>
|
||||
{{ item.number }}
|
||||
</td>
|
||||
<td>
|
||||
{{ item.date_of_start }}
|
||||
</td>
|
||||
<td>
|
||||
{% if not item.date_of_end %}
|
||||
---
|
||||
{% else %}
|
||||
{{ item.date_of_end }}
|
||||
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if not item.date_of_end %}
|
||||
<b>Активен</b>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="row">
|
||||
<h6>Местоположения</h6>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">
|
||||
Id
|
||||
</th>
|
||||
<th scope="col">
|
||||
Страна
|
||||
</th>
|
||||
<th scope="col">
|
||||
Город
|
||||
</th>
|
||||
<th scope="col">
|
||||
Улица
|
||||
</th>
|
||||
<th scope="col">
|
||||
Здание
|
||||
</th>
|
||||
<th scope="col">
|
||||
Комната
|
||||
</th>
|
||||
<th scope="col">
|
||||
Дата заступления
|
||||
</th>
|
||||
<th scope="col">
|
||||
Дата снятия
|
||||
</th>
|
||||
<th scope="col">
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for item in div.contact_info.locations %}
|
||||
<tr>
|
||||
<th scope="row">
|
||||
{{ item.id }}
|
||||
</th>
|
||||
<td>
|
||||
{{ item.country }}
|
||||
</td>
|
||||
<td>
|
||||
{{ item.city }}
|
||||
</td>
|
||||
<td>
|
||||
{{ item.street }}
|
||||
</td>
|
||||
<td>
|
||||
{{ item.house }}
|
||||
</td>
|
||||
<td>
|
||||
{{ item.room }}
|
||||
</td>
|
||||
<td>
|
||||
{{ item.date_of_start }}
|
||||
</td>
|
||||
<td>
|
||||
{% if not item.date_of_end %}
|
||||
---
|
||||
{% else %}
|
||||
{{ item.date_of_end }}
|
||||
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if not item.date_of_end %}
|
||||
<b>Активен</b>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user