diff options
Diffstat (limited to 'budget/templates/forms.html')
| -rw-r--r-- | budget/templates/forms.html | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/budget/templates/forms.html b/budget/templates/forms.html index f32e9fd..80a0d17 100644 --- a/budget/templates/forms.html +++ b/budget/templates/forms.html @@ -17,9 +17,12 @@ </div> <!-- /clearfix --> {% endmacro %} -{% macro submit(field, cancel=False) -%} +{% macro submit(field, cancel=False, home=False) -%} <div class="actions"> <button type="submit" class="btn primary">{{ field.name }}</button> + {% if home %} + <a href="{{ url_for(".home") }}">Go back Home</a> + {% endif %} {% if cancel %} <button id="cancel-form" type="reset" class="btn">Cancel</button> {% endif %} @@ -33,7 +36,7 @@ {{ input(form.id) }} {{ input(form.password) }} {% if not home %} - {{ submit(form.submit) }} + {{ submit(form.submit, home=True) }} {% endif %} {% endmacro %} @@ -42,12 +45,14 @@ {% include "display_errors.html" %} {{ form.hidden_tag() }} - {{ input(form.name) }} + {% if not home %} {{ input(form.id) }} + {% endif %} + {{ input(form.name) }} {{ input(form.password) }} {{ input(form.contact_email) }} {% if not home %} - {{ submit(form.submit) }} + {{ submit(form.submit, home=True) }} {% endif %} {% endmacro %} @@ -90,7 +95,7 @@ {{ form.hidden_tag() }} {{ input(form.emails) }} <div class="actions"> - <button class="btn">Send the invitations</button> + <button class="btn primary">Send the invitations</button> <a href="{{ url_for(".list_bills") }}">No, thanks</a> </div> {% endmacro %} |
