init proj
This commit is contained in:
8
templates/abiturient/department_form.html
Normal file
8
templates/abiturient/department_form.html
Normal file
@ -0,0 +1,8 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load crispy_forms_tags %}
|
||||
{% block title %}Добавить Кафедру{% endblock %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
{% crispy form %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
8
templates/abiturient/exam_form.html
Normal file
8
templates/abiturient/exam_form.html
Normal file
@ -0,0 +1,8 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load crispy_forms_tags %}
|
||||
{% block title %}Добавить экзамен{% endblock %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
{% crispy form %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
8
templates/abiturient/faculty_form.html
Normal file
8
templates/abiturient/faculty_form.html
Normal file
@ -0,0 +1,8 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load crispy_forms_tags %}
|
||||
{% block title %}Добавить факультет{% endblock %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
{% crispy form %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
8
templates/abiturient/head_form.html
Normal file
8
templates/abiturient/head_form.html
Normal file
@ -0,0 +1,8 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load crispy_forms_tags %}
|
||||
{% block title %}Добавить руководителя{% endblock %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
{% crispy form %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
3
templates/abiturient/index.html
Normal file
3
templates/abiturient/index.html
Normal file
@ -0,0 +1,3 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
40
templates/abiturient/queries.html
Normal file
40
templates/abiturient/queries.html
Normal file
@ -0,0 +1,40 @@
|
||||
{% 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 %}
|
||||
33
templates/abiturient/query_head.html
Normal file
33
templates/abiturient/query_head.html
Normal file
@ -0,0 +1,33 @@
|
||||
{% 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>
|
||||
<button class="btn btn-primary" type="submit">Отправить</button>
|
||||
</form>
|
||||
{% if specs %}
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Имя</th>
|
||||
<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 %}
|
||||
15
templates/abiturient/query_math.html
Normal file
15
templates/abiturient/query_math.html
Normal file
@ -0,0 +1,15 @@
|
||||
{% 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>
|
||||
<button class="btn btn-primary" type="submit">Отправить</button>
|
||||
</form>
|
||||
{% if res %}
|
||||
<div>Результат: {{ res }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
8
templates/abiturient/speciality_form.html
Normal file
8
templates/abiturient/speciality_form.html
Normal file
@ -0,0 +1,8 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load crispy_forms_tags %}
|
||||
{% block title %}Добавить руководителя{% endblock %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
{% crispy form %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
11
templates/abiturient/yearexam_form.html
Normal file
11
templates/abiturient/yearexam_form.html
Normal file
@ -0,0 +1,11 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load crispy_forms_tags %}
|
||||
{% block title %}Добавить факультет{% endblock %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
{% crispy form %}
|
||||
{% if formset %}
|
||||
{% crispy formset helper %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user