mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
58 lines
1.3 KiB
HTML
58 lines
1.3 KiB
HTML
{% macro input(field, multiple=False) -%}
|
|
<div class="ctrlHolder">
|
|
{% if field.type != "SubmitField" %}
|
|
{{ field.label }}
|
|
{% endif %}
|
|
{% 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 %}
|