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 %}
|
||||
58
templates/base.html
Normal file
58
templates/base.html
Normal file
@ -0,0 +1,58 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{% block title %}Абитуриент{% endblock %}</title>
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||
<a class="navbar-brand" href="{% url 'index' %}">Абитуриент</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{% url 'index' %}">Абитуриент</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{% url 'add-head' %}">Добавить руководителя</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{% url 'add-department' %}">Добавить Кафедру</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{% url 'add-speciality' %}">Добавить Специальность</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{% url 'add-exam' %}">Добавить Экзамен</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{% url 'add-yearexam' %}">Добавить План</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{% url 'add-faculty' %}">Добавить Факультет</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Запросы
|
||||
</a>
|
||||
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||
<a class="dropdown-item" href="{% url 'query-year-plans' %}">Специальности</a>
|
||||
<a class="dropdown-item" href="{% url 'query-math' %}">С наивысшим баллом</a>
|
||||
<a class="dropdown-item" href="{% url 'query-head' %}">Руководители</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user