%= simple_form_for @absence_justification, url: absence_justifications_path, html: { class: "smart-form", id: 'absence_justification' } do |f| %> <%= f.hidden_field :unity_id, value: @classroom.unity.id %> <%= f.hidden_field :classroom_id, value: @classroom.id %> <%= f.hidden_field :start_date, value: @dates.first %> <%= f.hidden_field :end_date, value: @dates.last %> <%= f.hidden_field :period, value: @period %>
<% end %>