mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-30 12:43:57 -06:00
34 lines
1.4 KiB
Twig
34 lines
1.4 KiB
Twig
<div class="{{ classes }}" id="{{ name }}_holder">
|
|
<label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label>
|
|
|
|
<div class="col-sm-8">
|
|
<div class="input-group">
|
|
<div class="input-group-btn">
|
|
<button type="button"
|
|
class="btn btn-default dropdown-toggle currency-dropdown" id="currency_dropdown_{{ name }}" data-toggle="dropdown"
|
|
aria-expanded="false">
|
|
<span id="currency_select_symbol_{{ name }}">{{ defaultCurrency.symbol|raw }}</span> <span class="caret"></span>
|
|
</button>
|
|
<ul class="dropdown-menu currency-dropdown-menu" role="menu">
|
|
{% for currency in currencies %}
|
|
<li>
|
|
<a href="#"
|
|
class="currency-option"
|
|
data-id="{{ currency.id }}"
|
|
data-name="{{ name }}"
|
|
data-currency="{{ currency.code }}"
|
|
data-symbol="{{ currency.symbol|raw }}">{{ currency.name }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{{ Form.input('number', name, value, options) }}
|
|
|
|
|
|
</div>
|
|
|
|
{% include 'form.feedback' %}
|
|
</div>
|
|
|
|
<input type="hidden" name="amount_currency_id_{{ name }}" value="{{ defaultCurrency.id }}"/>
|
|
</div>
|