2020-09-01 08:20:16 +00:00
|
|
|
{% comment %}
|
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
{% endcomment %}
|
|
|
|
|
2020-08-18 12:27:04 +00:00
|
|
|
{# Select amount to transfert in € #}
|
2020-03-27 12:50:02 +00:00
|
|
|
<div class="input-group">
|
2020-08-05 16:04:01 +00:00
|
|
|
<input class="form-control mx-auto d-block" type="number" {% if not widget.attrs.negative %}min="0"{% endif %} step="0.01"
|
2020-03-27 12:50:02 +00:00
|
|
|
{% if widget.value != None and widget.value != "" %}value="{{ widget.value }}"{% endif %}
|
|
|
|
name="{{ widget.name }}"
|
2020-08-18 12:27:04 +00:00
|
|
|
{# Other attributes are loaded #}
|
|
|
|
{% for name, value in widget.attrs.items %}
|
2020-03-27 12:50:02 +00:00
|
|
|
{% ifnotequal value False %}{{ name }}{% ifnotequal value True %}="{{ value|stringformat:'s' }}"{% endifnotequal %}{% endifnotequal %}
|
|
|
|
{% endfor %}>
|
|
|
|
<div class="input-group-append">
|
|
|
|
<span class="input-group-text">€</span>
|
|
|
|
</div>
|
2020-07-31 19:24:23 +00:00
|
|
|
<p id="amount-required" class="invalid-feedback"></p>
|
2020-08-18 12:27:04 +00:00
|
|
|
</div>
|