Expand the multi-select to various other fields.

This commit is contained in:
James Cole
2017-01-24 15:07:01 +01:00
parent 76b32df622
commit e8303bd059
5 changed files with 25 additions and 17 deletions

View File

@@ -1,8 +1,8 @@
<p>
{{ 'select_budget'|_ }}
</p>
{% for budget in budgets %}
<label class="checkbox-inline">
<input type="checkbox" class="budget-checkbox" name="budget[]" value="{{ budget.id }}"> {{ budget.name }}
</label>
{% endfor %}
<select id="inputBudgets" name="budget[]" multiple="multiple" class="form-control">
{% for budget in budgets %}
<option value="{{ budget.id }}" label="{{ budget.name }}">{{ budget.name }}</option>
{% endfor %}
</select>

View File

@@ -1,8 +1,8 @@
<p>
{{ 'select_category'|_ }}
</p>
{% for category in categories %}
<label class="checkbox-inline">
<input type="checkbox" class="category-checkbox" name="category[]" value="{{ category.id }}"> {{ category.name }}
</label>
{% endfor %}
<select id="inputCategories" name="category[]" multiple="multiple" class="form-control">
{% for category in categories %}
<option value="{{ category.id }}" label="{{ category.name }}">{{ category.name }}</option>
{% endfor %}
</select>