40 lines
1.1 KiB
HTML
40 lines
1.1 KiB
HTML
{% extends 'base.html' %}
|
|
{% block content %}
|
|
<div class="container">
|
|
<form>
|
|
<div class="form-group">
|
|
<label for="year">Год</label>
|
|
<input class="form-control" required type="number" id="year" name="year">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="spec_id">Форма обучения</label>
|
|
<select class="form-control" required id="spec_id" name="spec_id">
|
|
{% for form in forms %}
|
|
<option value="{{ form.id }}">{{ form.name }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
<button class="btn btn-primary" type="submit">Отправить</button>
|
|
</form>
|
|
{% if specs %}
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Имя</th>
|
|
<th>План</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
{% for spec in specs %}
|
|
<tr>
|
|
{% for item in spec %}
|
|
<td>{{ item }}</td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %} |