| 1 |
{# |
| 2 |
Responsive Menu Jinja template file. |
| 3 |
Safe to Copy |
| 4 |
#} |
| 5 |
|
| 6 |
<tr{% if errors.items_order %} class='danger'{% endif %}> |
| 7 |
<td class='col-left col-md-3'> |
| 8 |
<label for='items_order' class='control-label'>Order of Container Items</label> |
| 9 |
<div class='sub-text'>Drag the container items up and down to re-order how they appear on the front end. You can also click to turn them on or off.</div> |
| 10 |
<div class='sub_sub_title'>Leaving the relevant options empty below will effectively turn them off.</div> |
| 11 |
</td> |
| 12 |
<td class='col-right' style="padding-right: 90px;"> |
| 13 |
<ul id='menu-sortable'> |
| 14 |
{% for key, selected in options.items_order|json_decode %} |
| 15 |
<li class='draggable'> |
| 16 |
{{ key|title }} |
| 17 |
<input type='text' class='orderable-item' value='{{ selected }}' name='menu[items_order][{{ key }}]' /> |
| 18 |
<div class='menu-order-option-switch{% if selected == 'on' %} menu-order-option-switch-on{% endif %}'></div> |
| 19 |
</li> |
| 20 |
{% endfor %} |
| 21 |
</ul> |
| 22 |
</td> |
| 23 |
</tr> |
| 24 |
|