mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 12:41: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">
|
||||
{% if field.type != "SubmitField" %}
|
||||
{{ field.label(class="control-label") }}
|
||||
{% endif %}
|
||||
<div class="controls">
|
||||
{% if multiple == True %}
|
||||
{{ field(multiple=True, class=class) }}
|
||||
{{ field(multiple=True, **kwargs) }}
|
||||
{% else %}
|
||||
{{ field(class=class) | safe }}
|
||||
{{ field(**kwargs) | safe }}
|
||||
{% endif %}
|
||||
{% if field.description %}
|
||||
<p class="help-inline">{{ field.description }}</p>
|
||||
|
@ -80,7 +81,7 @@
|
|||
{{ input(form.date, class="datepicker") }}
|
||||
{{ input(form.what) }}
|
||||
{{ input(form.payer) }}
|
||||
{{ input(form.amount) }}
|
||||
{{ input(form.amount, autocomplete="off") }}
|
||||
{{ input(form.payed_for) }}
|
||||
</fieldset>
|
||||
<div class="actions">
|
||||
|
|
Loading…
Reference in a new issue