add activities

This commit is contained in:
2019-01-04 16:43:39 +05:00
parent 5e8c3ee2c9
commit ad71e72294
6 changed files with 147 additions and 2 deletions

View File

@ -0,0 +1,13 @@
{% extends 'base.html' %}
{% block content %}
<div class="container">
<h3>Добавить вид деятельности</h3>
<form method="post">
<div class="form-group">
<label for="name">Название активности</label>
<input class="form-control" id="name" name="name" required type="text">
</div>
<button type="submit" class="btn btn-primary">Отправить</button>
</form>
</div>
{% endblock %}

View File

@ -0,0 +1,29 @@
{% extends 'base.html' %}
{% block content %}
<div class="container">
<table class="table">
<thead>
<tr>
<th scope="col">
Id
</th>
<th scope="col">
Имя
</th>
</tr>
</thead>
<tbody>
{% for item in data %}
<tr>
<th scope="row">
{{ item.id }}
</th>
<td>
{{ item.name }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}