firefly-iii/resources/views/form/balance.twig

34 lines
1.4 KiB
Twig
Raw Normal View History

2015-06-27 01:06:24 -05:00
<div class="{{ classes }}" id="{{ name }}_holder">
2015-05-01 16:17:17 -05:00
<label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label>
2015-06-27 01:06:24 -05:00
2015-05-01 16:17:17 -05:00
<div class="col-sm-8">
<div class="input-group">
<div class="input-group-btn">
<button type="button"
2015-12-28 00:12:47 -06:00
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>
2015-05-01 16:17:17 -05:00
</button>
<ul class="dropdown-menu currency-dropdown-menu" role="menu">
2015-05-01 16:17:17 -05:00
{% 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>
2015-05-01 16:17:17 -05:00
{% endfor %}
</ul>
</div>
2015-06-27 01:06:24 -05:00
{{ Form.input('number', name, value, options) }}
2015-05-01 16:17:17 -05:00
2015-05-01 16:17:17 -05:00
</div>
2015-05-01 16:17:17 -05:00
{% include 'form/feedback.twig' %}
</div>
<input type="hidden" name="amount_currency_id_{{ name }}" value="{{ defaultCurrency.id }}"/>
2015-05-01 16:17:17 -05:00
</div>