2011-07-31 15:39:32 +02:00
|
|
|
{% macro input(field, multiple=False) -%}
|
|
|
|
<div class="ctrlHolder">
|
2011-08-05 16:10:21 +02:00
|
|
|
{% if field.type != "SubmitField" %}
|
|
|
|
{{ field.label }}
|
|
|
|
{% endif %}
|
2011-07-31 15:39:32 +02:00
|
|
|
{% if multiple == True %}
|
|
|
|
{{ field(multiple=True) }}
|
|
|
|
{% else %}
|
|
|
|
{{ field }}
|
|
|
|
{% endif %}
|
|
|
|
{% if field.description %}
|
|
|
|
<p class="formHint">{{ field.description }}</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endmacro %}
|
2011-07-31 23:55:02 +02:00
|
|
|
|
|
|
|
{% 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 %}
|