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

25 lines
1.1 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" class="btn btn-default dropdown-toggle balanceCurrencyDropdown" data-toggle="dropdown" aria-expanded="false">
2015-06-22 11:50:54 -05:00
<span>{{ defaultCurrency.symbol|raw }}</span> <span class="caret"></span>
2015-05-01 16:17:17 -05:00
</button>
<ul class="dropdown-menu" role="menu">
{% for currency in currencies %}
2015-06-27 01:06:24 -05:00
<li><a href="#" class="currencySelect" data-id="{{ currency.id }}" data-field="balance" data-currency="{{ currency.code }}"
data-symbol="{{ currency.symbol }}">{{ 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
</div>
{% include 'form/feedback.twig' %}
</div>
2015-06-27 01:06:24 -05:00
<input type="hidden" name="balance_currency_id" value="{{ defaultCurrency.id }}"/>
2015-05-01 16:17:17 -05:00
</div>