<%= simple_form_for collection_permission_template_form_for(form: @form), url: [hyrax, :admin, @form, :permission_template], html: { class: 'nav-safety' } do |f| %>

<%= t('.page_description') %>

<%= t('.release.title') %>

<%= t('.release.description') %>

  • <%= f.date_field :release_date, wrapper: :inline, class: 'datepicker form-control', placeholder: 'mm/dd/yyyy' %>
<%= f.date_field :release_date, wrapper: :inline, class: 'datepicker form-control', placeholder: 'mm/dd/yyyy' %>

<%= t('.visibility.title') %>

<%= t('.visibility.description') %>

<%# List each option in a
tag %> <%= f.collection_radio_buttons :visibility, f.object.visibility_options, :first, :last, item_wrapper_tag: :div, item_wrapper_class: 'form-check' do |b| %> <%# NOTE: Bug in simple_form causes nested labels: https://github.com/plataformatec/simple_form/issues/1190 This block is a workaround. %> <% b.label(class: 'form-check-label') { b.radio_button(class: 'form-check-input') + b.text } %> <% end %>
<% end %>