% content_for :js do %>
<%= javascript_include_tag 'views/descriptive_exams/functions' %>
<%= javascript_include_tag 'views/descriptive_exams/student_fields' %>
<% end %>
<%= simple_form_for @descriptive_exam, html: { class: "smart-form" } do |f| %>
| <%= DescriptiveExam.human_attribute_name :unity %> |
<%= DescriptiveExam.human_attribute_name :classroom %> |
<% if @descriptive_exam.discipline.present? %>
<%= DescriptiveExam.human_attribute_name :discipline %> |
<% end %>
<% if @descriptive_exam.step_id.present? %>
<%= DescriptiveExam.human_attribute_name :step %> |
<% end %>
<%= @descriptive_exam.unity %> |
<%= @descriptive_exam.classroom %> |
<% if @descriptive_exam.discipline.present? %>
<%= @descriptive_exam.discipline %> |
<% end %>
<% if @descriptive_exam.step_id.present? %>
<%= @descriptive_exam.step %> |
<% end %>
<%= f.error_notification %>
| Sequencial |
<%= DescriptiveExamStudent.human_attribute_name :student %> |
<%= DescriptiveExamStudent.human_attribute_name :value %> |
<% sequence = 0 %>
<%= f.fields_for :students, @normal_students do |student| %>
<% sequence += 1 %>
<%= render 'student_fields', f: student, sequence: sequence %>
<% end %>
<% sequence = 0 %>
<% if @dependence_students.any? %>
<%= f.fields_for :students, @dependence_students do |student| %>
<% sequence += 1 %>
<%= render 'student_fields', f: student, sequence: sequence %>
<% end %>
|
<%= t('.dependence_students') %>
|
<% end %>
<% if @any_student_exempted_from_discipline %>
|
<%= t('.exempted_students_from_discipline_legend') %>
|
<% end %>
<% end %>