summaryrefslogtreecommitdiff
path: root/app/templates/base/form.html
diff options
context:
space:
mode:
authorstilbruch <stilbruch@protonail.com>2022-03-23 16:39:16 -0500
committerstilbruch <stilbruch@protonail.com>2022-03-23 16:39:16 -0500
commitcd503caa68c52f98f41d5fecc2afd8c31156f4db (patch)
treec506a4a974b97619935ad47d4afca1e519a47880 /app/templates/base/form.html
parent22ae557601258bde27611a18f2c2a0409bc4567d (diff)
downloadStrengthy-cd503caa68c52f98f41d5fecc2afd8c31156f4db.tar.xz
Strengthy-cd503caa68c52f98f41d5fecc2afd8c31156f4db.zip
Move some templates and update form logic
Diffstat (limited to 'app/templates/base/form.html')
-rw-r--r--app/templates/base/form.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/app/templates/base/form.html b/app/templates/base/form.html
new file mode 100644
index 0000000..830afbe
--- /dev/null
+++ b/app/templates/base/form.html
@@ -0,0 +1,33 @@
+{% extends 'base/layout.html' %}
+
+{% block content %}
+ <div class="form">
+ <section class="hero is-primary is-fullheight-with-navbar">
+ <div class="hero-body">
+ <div class="container">
+ <div class="columns is-centered">
+ <div class="column is-5-tablet is-4-desktop is-3-widescreen">
+ <h1 class="title is-2">{% block title %}{% endblock %}</h1>
+
+ <!-- TODO: render errors -->
+ {% with messages = get_flashed_messages(with_categories=true) %}
+ {% if messages %}
+ {% for category, message in messages %}
+ <div class="notification is-{{ category }}">
+ {{ message }}
+ </div>
+ {% endfor %}
+ {% endif %}
+ {% endwith %}
+
+ <form method="POST" class="box">
+ {{ form.csrf_token }}
+ {% block form %}{% endblock %}
+ </form>
+ </div>
+ </div>
+ </div>
+ </div>
+ </section>
+ </div>
+{% endblock %}