40 lines
1.8 KiB
HTML
40 lines
1.8 KiB
HTML
{% extends 'base.html' %}
|
|
{% block content %}
|
|
<div class="container">
|
|
<h3>Добавить главу</h3>
|
|
<form method="post">
|
|
<div class="form-group">
|
|
<label for="con_id">Руководит</label>
|
|
<select class="form-control" id="con_id" name="con_id" required>
|
|
{% for item in enterprises %}
|
|
<option value="{{ item.contact_info.id }}">Предприятие "{{ item.contact_info.name }}"</option>
|
|
{% endfor %}
|
|
{% for item in divisions %}
|
|
<option value="{{ item.contact_info.id }}">Подразделение "{{ item.contact_info.name }}"</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="last_name">Фамилия</label>
|
|
<input class="form-control" id="last_name" name="last_name" required type="text">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="first_name">Имя</label>
|
|
<input class="form-control" id="first_name" name="first_name" required type="text">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="second_name">Отчество</label>
|
|
<input class="form-control" id="second_name" name="second_name" type="text">
|
|
</div>
|
|
<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" type="date">
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Отправить</button>
|
|
</form>
|
|
</div>
|
|
{% endblock %} |