date_default.hbs
4 years ago
date_formats.hbs
4 years ago
date_types.hbs
4 years ago
field.hbs
4 years ago
field_form.hbs
4 years ago
index.php
3 years ago
label.hbs
4 years ago
label_within.hbs
4 years ago
required.hbs
4 years ago
segment_selection.hbs
2 years ago
segment_selection_item.hbs
4 years ago
submit.hbs
4 years ago
validate.hbs
4 years ago
values.hbs
4 years ago
values_item.hbs
4 years ago
date_formats.hbs
23 lines
| 1 | <% for date_type, formats in date_formats %> |
| 2 | {{#ifCond params.date_type "===" "<%= date_type %>"}} |
| 3 | <% if(formats | length == 1) %> |
| 4 | <!-- display format as hidden value --> |
| 5 | <input type="hidden" name="params[date_format]" value="<%= formats[0] %>" /> |
| 6 | <% else %> |
| 7 | <!-- display label --> |
| 8 | <p class="clearfix"> |
| 9 | <label><%= __('Order') %></label> |
| 10 | <!-- display all possible date formats --> |
| 11 | <select name="params[date_format]"> |
| 12 | <% for format in formats %> |
| 13 | <option |
| 14 | {{#ifCond params.date_format "===" "<%= format %>"}} |
| 15 | selected="selected" |
| 16 | {{/ifCond}} |
| 17 | value="<%= format %>"><%= format %></option> |
| 18 | <% endfor %> |
| 19 | </select> |
| 20 | </p> |
| 21 | <% endif %> |
| 22 | {{/ifCond}} |
| 23 | <% endfor %> |