summaryrefslogtreecommitdiff
path: root/app/templates/modules/add-invoice.html
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2022-05-16 21:11:52 +0200
committerMarius Peter <marius.peter@tutanota.com>2022-05-16 21:11:52 +0200
commiteac5bb765c8d609d3b7eb31316228f8058581796 (patch)
tree71858ed6cef43bb5dea24de1222b3c828d93b821 /app/templates/modules/add-invoice.html
parent196c3bbf8a140f962845c51e22f409aa6b4d7473 (diff)
Lil fixes.
Diffstat (limited to 'app/templates/modules/add-invoice.html')
-rw-r--r--app/templates/modules/add-invoice.html48
1 files changed, 0 insertions, 48 deletions
diff --git a/app/templates/modules/add-invoice.html b/app/templates/modules/add-invoice.html
deleted file mode 100644
index 92748be..0000000
--- a/app/templates/modules/add-invoice.html
+++ /dev/null
@@ -1,48 +0,0 @@
-{# -*- mode: web; -*- #}
-
-{% extends "base.html" %}
-
-
-{% block title %}Add a new invoice{% endblock %}
-{% block content %}
-
-{% if message %}
-{# the form was submitted and message exists #}
-<p><strong>{{ item }}</strong></p>
-{# links #}
-<p><a href="{{ url_for('add_item', item=item) }}" class="button">Submit another {{ item }}</a></p>
-<p><a href="/fapg/home">Return to the index</a></p>
-
-{% else %}
-{# the form is displayed when template opens via GET not POST #}
-
-{# show flash - based on WTForms validators see
-https://pythonprogramming.net/flash-flask-tutorial/
-get_flashed_messages() exists here because of flash() in the route
-function #}
-
-{% with errors = get_flashed_messages() %} {% if errors %}
-{% for err in errors %}
-<div class="alert alert-danger alert-dismissible" role="alert">
- <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
- {{ err }}
-</div>
-{% endfor %}
-{% endif %}
-{% endwith %}
-{# end of flash #}
-
-
-{# 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>
-
-{% endif %}
-{% endblock %}
Copyright 2019--2024 Marius PETER