summaryrefslogtreecommitdiff
path: root/app/templates/base/form.html
diff options
context:
space:
mode:
authorstilbruch <stilbruch@protonmail.com>2022-04-06 11:24:44 -0500
committerstilbruch <stilbruch@protonmail.com>2022-04-06 11:24:44 -0500
commitafc5d4f9b6d7e5dffcded802552d817ccfbfb960 (patch)
treeab505aeefafbb5ed975753a17d5fae4b3ec9be19 /app/templates/base/form.html
parent80a35cac95eb206080636ed3bb2c1c0895c95fd4 (diff)
downloadStrengthy-afc5d4f9b6d7e5dffcded802552d817ccfbfb960.tar.xz
Strengthy-afc5d4f9b6d7e5dffcded802552d817ccfbfb960.zip
Update layout
Diffstat (limited to 'app/templates/base/form.html')
-rw-r--r--app/templates/base/form.html52
1 files changed, 23 insertions, 29 deletions
diff --git a/app/templates/base/form.html b/app/templates/base/form.html
index 22f926b..9f356e0 100644
--- a/app/templates/base/form.html
+++ b/app/templates/base/form.html
@@ -1,37 +1,31 @@
{% extends 'base/layout.html' %}
{% block content %}
-<div class="form">
- <section class="hero is-primary is-fullheight-with-navbar gym-background">
- <div class="hero-body">
- <div class="container">
- <div class="columns is-centered">
- <div class="column {{ column_classes }}">
- <h1 class="title is-2">{% block title %}{% endblock %}</h1>
+ <div class="container">
+ <div class="columns is-centered">
+ <div class="column {{ column_classes }}">
+ <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 %}
- {% if category == "message" %}
- <div class="notification is-info">
- {% else %}
- <div class="notification is-{{ category }}">
- {% endif %}
- {{ message }}
- </div>
- {% endfor %}
- {% endif %}
- {% endwith %}
-
- <form method="POST" class="box">
- {{ form.csrf_token }}
- {% block form %}{% endblock %}
- </form>
+ <!-- TODO: render errors -->
+ {% with messages = get_flashed_messages(with_categories=true) %}
+ {% if messages %}
+ {% for category, message in messages %}
+ {% if category == "message" %}
+ <div class="notification is-info">
+ {% else %}
+ <div class="notification is-{{ category }}">
+ {% endif %}
+ {{ message }}
</div>
- </div>
+ {% endfor %}
+ {% endif %}
+ {% endwith %}
+
+ <form method="POST" class="box">
+ {{ form.csrf_token }}
+ {% block form %}{% endblock %}
+ </form>
</div>
</div>
- </section>
-</div>
+ </div>
{% endblock %}