aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/forms.html
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2016-06-17 10:06:19 +0200
committerGitHub <noreply@github.com>2016-06-17 10:06:19 +0200
commit5084cafe6bcd266bd1e676fc6921a7dba3c48a57 (patch)
tree7c2d5f915a5f37d086e31b61cb71fd20dbf4b385 /budget/templates/forms.html
parent789196721584ca4800e4236eee36955e78761346 (diff)
parentc49a355eb082cff208806f785d52567ddd043c03 (diff)
downloadihatemoney-mirror-5084cafe6bcd266bd1e676fc6921a7dba3c48a57.zip
ihatemoney-mirror-5084cafe6bcd266bd1e676fc6921a7dba3c48a57.tar.gz
ihatemoney-mirror-5084cafe6bcd266bd1e676fc6921a7dba3c48a57.tar.bz2
Merge pull request #131 from JocelynDelalande/members-weights
Added Members weights handling
Diffstat (limited to 'budget/templates/forms.html')
-rw-r--r--budget/templates/forms.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/budget/templates/forms.html b/budget/templates/forms.html
index ec73515..07e5b3d 100644
--- a/budget/templates/forms.html
+++ b/budget/templates/forms.html
@@ -95,6 +95,20 @@
{{ form.name(placeholder=_("Type user name here")) }}<button class="btn">{{ _("Add") }}</button>
{% endmacro %}
+{% macro edit_member(form, title=True) %}
+ <fieldset>
+ {% if title %}<legend>{{ _("Edit this member") }}</legend>{% endif %}
+ {% include "display_errors.html" %}
+ {{ form.hidden_tag() }}
+ {{ input(form.name) }}
+ {{ input(form.weight) }}
+ </fieldset>
+ <div class="actions">
+ {{ form.submit(class="btn btn-primary") }}
+ </div>
+{% endmacro %}
+
+
{% macro invites(form) %}
{{ form.hidden_tag() }}
{{ input(form.emails) }}