summaryrefslogtreecommitdiff
path: root/app/templates/add-item.html
blob: acffa87c1b5f31b3dcd2cc91a7b5ab92100bd1ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{# -*- mode: web; -*- #}

{% extends "base.html" %}


{% block title %}Add a new {{ item }}{% endblock %}
{% block content %}

{# the form #}
<form action="{{ url_for('add_item', item=item) }}" method="POST">
    <fieldset>
	<legend>Add a new {{ item }} to our database.</legend>
	{% for field in form %}
	{{ field.label() }}
	{{ field() }}<br/>
	{% endfor %}
    </fieldset>
</form>

{% endblock %}
Copyright 2019--2024 Marius PETER