Files
piratepoet/views/form/templatesLegacy/blocks/date_days.hbs
Rostislav Wolny d51b61ec17 Mark current form editor code as legacy
[MAILPOET-2450]
2019-11-06 16:54:40 +00:00

11 lines
328 B
Handlebars

<% set currentDay = 'now' | date('d') | number_format %>
<select id="{{ id }}_days">
<option value=""><%= __('Day') %></option>
<% for day in 1..31 %>
<option
<% if(currentDay == day) %>
{{#if params.is_default_today}}selected="selected"{{/if}}
<% endif %>
><%= day %></option>
<% endfor %>
</select>