<fieldset>
  <legend>Scheduled publication</legend>
  <%= hidden_field_tag :scheduled_publication_active, 0, id: "" %>
  <%= label_tag :scheduled_publication_active, nil, class: [:checkbox, "js-toggle-scheduled-publication-date-picker"] do %>
    <%= check_box_tag :scheduled_publication_active, "1", params[:scheduled_publication_active] == "1" || form.object.scheduled_publication.present? %> Schedule for publication
  <% end %>
  <div class="scheduled_publication">
    <%= form.label :scheduled_publication %>
    <%= form.datetime_select :scheduled_publication, {default: Time.zone.parse(Time.zone.now.strftime("%Y-%m-%d 09:30"))}, {class: :date} %>
  </div>
</fieldset>

<fieldset>
  <legend>Scheduled publication</legend>
  <%= hidden_field_tag :scheduled_publication_active, 0, id: "" %>
  <%= label_tag :scheduled_publication_active, nil, class: [:checkbox, "js-toggle-scheduled-publication-date-picker"] do %>
    <%= check_box_tag :scheduled_publication_active, "1", params[:scheduled_publication_active] == "1" || form.object.scheduled_publication.present? %> Schedule for publication
  <% end %>
  <div class="scheduled_publication">
    <%= form.label :scheduled_publication %>
    <%= form.datetime_select :scheduled_publication, {default: Time.zone.parse(Time.zone.now.strftime("%Y-%m-%d 09:30")), minute_step: 15}, {class: :date} %>
  </div>
</fieldset>

Use steps of 15 minutes when setting scheduled publication
Use steps of 15 minutes when setting scheduled publication
