1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-28 10:22:20 +00:00
nk20/templates/note/amount_input.html
Yohann D'ANELLO b0398e59b8 🐛 Fix treasury
2020-08-05 18:04:01 +02:00

12 lines
685 B
HTML

<div class="input-group">
<input class="form-control mx-auto d-block" type="number" {% if not widget.attrs.negative %}min="0"{% endif %} step="0.01"
{% if widget.value != None and widget.value != "" %}value="{{ widget.value }}"{% endif %}
name="{{ widget.name }}"
{% for name, value in widget.attrs.items %}
{% 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>
<p id="amount-required" class="invalid-feedback"></p>
</div>