oont-contents/plugins/mailpoet/views/form/templatesLegacy/blocks/date_months.hbs
2025-02-08 15:10:23 +01:00

13 lines
No EOL
355 B
Handlebars

<% set currentMonth = 'now'|date('n') %>
<select id="{{ id }}_months">
<option value=""><%= __('Month') %></option>
<% for month in 1..12 %>
<option
<% if(currentMonth == month) %>
{{#if params.is_default_today}}selected="selected"{{/if}}
<% endif %>
>
<%= month_names[month - 1] %>
</option>
<% endfor %>
</select>