mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +02:00
Merge acfb15dfc4
into 84aafc850e
This commit is contained in:
commit
9858ab2612
1 changed files with 5 additions and 4 deletions
|
@ -1,13 +1,14 @@
|
||||||
{% macro input(field, multiple=False, class=None) -%}
|
{% macro input(field, multiple=False) -%}
|
||||||
|
{# Additional arguments will be added as input properties (e.g. class="yourclass") #}
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
{% if field.type != "SubmitField" %}
|
{% if field.type != "SubmitField" %}
|
||||||
{{ field.label(class="control-label") }}
|
{{ field.label(class="control-label") }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
{% if multiple == True %}
|
{% if multiple == True %}
|
||||||
{{ field(multiple=True, class=class) }}
|
{{ field(multiple=True, **kwargs) }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ field(class=class) | safe }}
|
{{ field(**kwargs) | safe }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if field.description %}
|
{% if field.description %}
|
||||||
<p class="help-inline">{{ field.description }}</p>
|
<p class="help-inline">{{ field.description }}</p>
|
||||||
|
@ -80,7 +81,7 @@
|
||||||
{{ input(form.date, class="datepicker") }}
|
{{ input(form.date, class="datepicker") }}
|
||||||
{{ input(form.what) }}
|
{{ input(form.what) }}
|
||||||
{{ input(form.payer) }}
|
{{ input(form.payer) }}
|
||||||
{{ input(form.amount) }}
|
{{ input(form.amount, autocomplete="off") }}
|
||||||
{{ input(form.payed_for) }}
|
{{ input(form.payed_for) }}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
|
|
Loading…
Reference in a new issue