mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-01 18:52:23 +02:00
draft
This commit is contained in:
parent
7ceb66f01b
commit
6e2283f915
1 changed files with 12 additions and 9 deletions
|
@ -2,7 +2,7 @@
|
||||||
<div class="form-group{% if inline %} row{% endif %}">
|
<div class="form-group{% if inline %} row{% endif %}">
|
||||||
{% if field.type != "SubmitField" %}
|
{% if field.type != "SubmitField" %}
|
||||||
{% if inline %}
|
{% if inline %}
|
||||||
{{ field.label(class="col-3") }}
|
{{ field.label(class="col-3 mt-2") }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ field.label() }}
|
{{ field.label() }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -120,20 +120,23 @@
|
||||||
{% if title %}<legend>{% if edit %}{{ _("Edit this bill") }} {% else %}{{ _("Add a bill") }} {% endif %}</legend>{% endif %}
|
{% if title %}<legend>{% if edit %}{{ _("Edit this bill") }} {% else %}{{ _("Add a bill") }} {% endif %}</legend>{% endif %}
|
||||||
{% include "display_errors.html" %}
|
{% include "display_errors.html" %}
|
||||||
{{ form.hidden_tag() }}
|
{{ form.hidden_tag() }}
|
||||||
{{ input(form.date, class="form-control", inline=True) }}
|
{{ input(form.date, inline=True) }}
|
||||||
{{ input(form.what, inline=True) }}
|
{{ input(form.what, inline=True) }}
|
||||||
{{ input(form.payer, inline=True, class="form-control custom-select") }}
|
{{ input(form.payer, inline=True, class="form-control custom-select") }}
|
||||||
{{ input(form.amount, inline=True) }}
|
{{ input(form.amount, inline=True) }}
|
||||||
|
<details class="mb-2">
|
||||||
|
<summary class="mb-2">Options avancées</summary>
|
||||||
{% if g.project.default_currency != "XXX" %}
|
{% if g.project.default_currency != "XXX" %}
|
||||||
{{ input(form.original_currency, inline=True) }}
|
{{ input(form.original_currency, inline=True, class="form-control custom-select") }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ input(form.external_link, inline=True) }}
|
{{ input(form.external_link, inline=True) }}
|
||||||
|
</details>
|
||||||
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="col-3" for="payed_for">{{ _("For whom?") }}</label>
|
<label class="col-3" for="payed_for">{{ _("For whom?") }}</label>
|
||||||
<div class="controls col-9">
|
<div class="controls col-9">
|
||||||
<ul id="payed_for" class="inputs-list">
|
<div id="payed_for" class="inputs-list">
|
||||||
<p><a href="#" id="selectall" onclick="selectCheckboxes(true)">{{ _("Select all") }}</a> | <a href="#" id="selectnone" onclick="selectCheckboxes(false)">{{_("Select none")}}</a></p>
|
<p><a href="#" id="selectall" onclick="selectCheckboxes(true)">{{ _("Everybody") }}</a> | <a href="#" id="selectnone" onclick="selectCheckboxes(false)">{{_("Nobody")}}</a></p>
|
||||||
{% for key, value, checked in form.payed_for.iter_choices() | sort(attribute='1') %}
|
{% for key, value, checked in form.payed_for.iter_choices() | sort(attribute='1') %}
|
||||||
<p class="form-check">
|
<p class="form-check">
|
||||||
<label for="payed_for-{{key}}" class="form-check-label">
|
<label for="payed_for-{{key}}" class="form-check-label">
|
||||||
|
@ -142,7 +145,7 @@
|
||||||
</label>
|
</label>
|
||||||
</p>
|
</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
Loading…
Reference in a new issue