mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 18:54:58 +00:00 
			
		
		
		
	
		
			
	
	
		
			34 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Twig
		
	
	
	
	
	
		
		
			
		
	
	
			34 lines
		
	
	
		
			1.5 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>
 | ||
|  |     <!-- Going to put in this value: {{ defaultCurrency.id }} -->
 | ||
|  |     <input type="hidden" name="amount_currency_id_{{ name }}" value="{{ defaultCurrency.id }}" data-backup="{{ defaultCurrency.id }}"/>
 | ||
|  | </div>
 |