<% content_for :js do %> <%= javascript_include_tag 'views/observation_record_report/form' %> <% end %>
<%= simple_form_for @observation_record_report_form, url: observation_record_report_path, method: :post, html: { class: 'smart-form', target: '_blank' } do |f| %> <%= f.error_notification unless f.object.show_records_not_found_message? %> <% if f.object.show_records_not_found_message? %>
<%= f.object.records_not_found_message %>
<% end %> <%= f.hidden_field :teacher_id %> <%= f.hidden_field :current_user_id, value: current_user.id %>
<%= f.input :unity_id, as: :select2, elements: unities, readonly: !current_user.admin?, input_html: { value: @observation_record_report_form.unity_id } %>
<%= f.input :classroom_id, as: :select2, elements: [], input_html: { value: @observation_record_report_form.classroom_id } %>
<%= f.input :discipline_id, as: :select2, elements: [], input_html: { value: @observation_record_report_form.discipline_id } %>
<%= f.input :start_at, as: :date %>
<%= f.input :end_at, as: :date %>
<% end %>