2023-02-18 19:01:13 +03:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}Admin{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1>Add a person to DB</h1>
|
|
|
|
<form action="/add" method="post">
|
2023-02-20 11:09:43 +03:00
|
|
|
{{ form.csrf_token }}
|
2023-02-18 19:01:13 +03:00
|
|
|
{% for field in form %}
|
|
|
|
{% if field.name != 'csrf_token' %}
|
|
|
|
<div>
|
|
|
|
{{ field.label }}
|
|
|
|
{{ field }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
<div>
|
|
|
|
<input type="submit" value="Add">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|