1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00
ihatemoney_ynh/budget/templates/forms.html
2011-07-31 23:55:02 +02:00

56 lines
1.3 KiB
HTML

{% macro input(field, multiple=False) -%}
<div class="ctrlHolder">
{{ field.label }}
{% if multiple == True %}
{{ field(multiple=True) }}
{% else %}
{{ field }}
{% endif %}
{% if field.description %}
<p class="formHint">{{ field.description }}</p>
{% endif %}
</div>
{% endmacro %}
{% macro authenticate(form) %}
{% include "display_errors.html" %}
{{ form.hidden_tag() }}
{{ input(form.id) }}
{{ input(form.password) }}
{{ input(form.submit) }}
{% endmacro %}
{% macro create_project(form) %}
{% include "display_errors.html" %}
{{ form.hidden_tag() }}
{{ input(form.name) }}
{{ input(form.id) }}
{{ input(form.password) }}
{{ input(form.contact_email) }}
{{ input(form.submit) }}
{% endmacro %}
{% macro add_bill(form) %}
{% include "display_errors.html" %}
{{ form.hidden_tag() }}
{{ input(form.what) }}
{{ input(form.payer) }}
{{ input(form.amount) }}
{{ input(form.payed_for, multiple=True) }}
{{ input(form.submit) }}
{% endmacro %}
{% macro add_member(form) %}
{% include "display_errors.html" %}
{{ form.hidden_tag() }}
{{ input(form.name) }}
{{ input(form.submit) }}
{% endmacro %}