init proj

This commit is contained in:
2019-01-08 21:45:36 +05:00
commit dfc440faa4
27 changed files with 1252 additions and 0 deletions

View File

@ -0,0 +1,8 @@
{% extends 'base.html' %}
{% load crispy_forms_tags %}
{% block title %}Добавить Кафедру{% endblock %}
{% block content %}
<div class="container">
{% crispy form %}
</div>
{% endblock %}

View File

@ -0,0 +1,8 @@
{% extends 'base.html' %}
{% load crispy_forms_tags %}
{% block title %}Добавить экзамен{% endblock %}
{% block content %}
<div class="container">
{% crispy form %}
</div>
{% endblock %}

View File

@ -0,0 +1,8 @@
{% extends 'base.html' %}
{% load crispy_forms_tags %}
{% block title %}Добавить факультет{% endblock %}
{% block content %}
<div class="container">
{% crispy form %}
</div>
{% endblock %}

View File

@ -0,0 +1,8 @@
{% extends 'base.html' %}
{% load crispy_forms_tags %}
{% block title %}Добавить руководителя{% endblock %}
{% block content %}
<div class="container">
{% crispy form %}
</div>
{% endblock %}

View File

@ -0,0 +1,3 @@
{% extends 'base.html' %}
{% block content %}
{% endblock %}

View 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 %}

View 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 %}

View 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 %}

View File

@ -0,0 +1,8 @@
{% extends 'base.html' %}
{% load crispy_forms_tags %}
{% block title %}Добавить руководителя{% endblock %}
{% block content %}
<div class="container">
{% crispy form %}
</div>
{% endblock %}

View 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 %}