date_days.hbs
11 lines
| 1 | <% set currentDay = 'now' | date('d') | number_format %> |
| 2 | <select id="{{ id }}_days"> |
| 3 | <option value=""><%= __('Day') %></option> |
| 4 | <% for day in 1..31 %> |
| 5 | <option |
| 6 | <% if(currentDay == day) %> |
| 7 | {{#if params.is_default_today}}selected="selected"{{/if}} |
| 8 | <% endif %> |
| 9 | ><%= day %></option> |
| 10 | <% endfor %> |
| 11 | </select> |