diff options
| author | FivePixels <o5pxels@gmail.com> | 2022-03-23 18:56:09 -0500 |
|---|---|---|
| committer | FivePixels <o5pxels@gmail.com> | 2022-03-23 18:56:09 -0500 |
| commit | 695215c993765d910a31789d0a70eef5ee3b57e9 (patch) | |
| tree | 165e0a5c2e6e1d372fa8a7ebee114a5d1ef9eb20 /app/templates/base/form.html | |
| parent | 5f48bcb3ed524dbd20e424170136da6b6d4a2300 (diff) | |
| download | Strengthy-695215c993765d910a31789d0a70eef5ee3b57e9.tar.xz Strengthy-695215c993765d910a31789d0a70eef5ee3b57e9.zip | |
Start working on workout create page
Add variable to each page to determine with of "box" for form.
Add new workout create route.
Diffstat (limited to 'app/templates/base/form.html')
| -rw-r--r-- | app/templates/base/form.html | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/app/templates/base/form.html b/app/templates/base/form.html index 830afbe..440ea0e 100644 --- a/app/templates/base/form.html +++ b/app/templates/base/form.html @@ -1,33 +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> +<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 {{ 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 %} - <div class="notification is-{{ category }}"> - {{ message }} - </div> - {% endfor %} - {% endif %} - {% endwith %} + <!-- 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> + <form method="POST" class="box"> + {{ form.csrf_token }} + {% block form %}{% endblock %} + </form> + </div> + </div> + </div> + </div> + </section> +</div> {% endblock %} |
