Basic app, mainly copied from tmpl-flask

This commit is contained in:
DarkCat09 2023-02-18 20:01:13 +04:00
parent 354a473f77
commit bfea5eeb06
20 changed files with 446 additions and 49 deletions

21
templates/admin.html Normal file
View file

@ -0,0 +1,21 @@
{% extends "base.html" %}
{% block title %}Admin{% endblock %}
{% block content %}
<h1>Add a person to DB</h1>
<form action="/add" method="post">
{{ form.hidden_tag() }}
{% 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 %}