Sequencial |
@@ -48,13 +81,15 @@
<% if student[:sequence] %>
<%= render 'student_fields', exempted_from_discipline: student[:exempted_from_discipline],
student: student[:student], sequence: student[:sequence], dependence: student[:dependence],
- active: student[:active], in_active_search: student[:in_active_search]
+ active: student[:active], in_active_search: student[:in_active_search],
+ absence_justification: student[:absence_justification]
%>
<% else %>
<% sequence += 1 %>
<%= render 'student_fields', exempted_from_discipline: student[:exempted_from_discipline],
student: student[:student], sequence: sequence, dependence: student[:dependence],
- active: student[:active], in_active_search: student[:in_active_search]
+ active: student[:active], in_active_search: student[:in_active_search],
+ absence_justification: student[:absence_justification]
%>
<% end %>
<% end %>
@@ -144,4 +179,7 @@
<% end %>
+
+ <%= render 'absence_justification' %>
+
diff --git a/app/views/daily_frequencies_in_batchs/_absence_justification.html.erb b/app/views/daily_frequencies_in_batchs/_absence_justification.html.erb
new file mode 100644
index 000000000..8a3a0336b
--- /dev/null
+++ b/app/views/daily_frequencies_in_batchs/_absence_justification.html.erb
@@ -0,0 +1,65 @@
+<%= 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 %>
+
+
+
+
+
+
+
+
+
+
+
+<% end %>
diff --git a/app/views/daily_frequencies_in_batchs/_student_fields.html.erb b/app/views/daily_frequencies_in_batchs/_student_fields.html.erb
index 78b954e3a..f8d5cc544 100644
--- a/app/views/daily_frequencies_in_batchs/_student_fields.html.erb
+++ b/app/views/daily_frequencies_in_batchs/_student_fields.html.erb
@@ -32,14 +32,14 @@
<% end %>
<% end %>
<% end %>
-
+ |
 
- |