<%= simple_form_for @lessons_board, html: { class: 'smart-form' } do |f| %> <%= f.error_notification %>
<%= f.input :unity, label: t('lessons_boards.index.unity'), placeholder: t('lessons_boards.index.unity'), readonly: true, input_html: { value: f.object.classroom.unity.name } %>
<%= f.input :grade, label: t('lessons_boards.index.grade'), placeholder: t('lessons_boards.index.grade'), readonly: true, input_html: { value: f.object.classrooms_grade.grade.description } %>
<%= f.input :classroom_id, label: t('lessons_boards.index.classroom'), placeholder: t('lessons_boards.index.classroom'), readonly: true, input_html: { value: f.object.classroom.description } %>
<%= f.input :period, label: t('lessons_boards.form.period'), readonly: true, input_html: { value: Periods.translate(Periods.key_for(f.object.period.to_s)) } %>
<% if f.object.errors.added? :base %>
<%= f.object.errors[:lessons_boards].first %>
<% end %> <% Workdays.translations.each do |translation| %> <% end %> <%= f.simple_fields_for :lessons_board_lessons, f.object.lessons_board_lessons do |lessons_board_lesson| %> <%= render 'lessons_board_lesson_fields', f: lessons_board_lesson %> <% end %>
<%= ' Aula ' %><%= translation %>
<%= t('.no_item_found') %>
<% end %>