Commit 03b093f5 authored by Tugce Nur Tas's avatar Tugce Nur Tas

add activity field to additional hours on review form

parent be95958a
......@@ -101,7 +101,7 @@ class SemesterProcessVolunteersController < ApplicationController
params.require(:semester_process_volunteer).permit(
volunteer_attributes: [:id, :waive, :iban, :bank],
semester_feedbacks_attributes: [[semester_feedback: [:mission, :goals, :achievements, :future, :comments, :conversation, :spv_mission_id]],
[hour: [:hours, :spv_mission_id]]]
[hour: [:hours, :spv_mission_id, :activity]]]
)
end
......
......@@ -28,11 +28,13 @@
= spvm.simple_fields_for :hour, Hour.new do |hf|
= hf.input :spv_mission_id, as: :hidden, input_html: { value: spvm.object.id}
h4.m-b-20.m-t-20= "Restliche Stunden in diesem Semester (#{@semester_process_volunteer.semester_period})"
.row
.col-xs-12= hf.input :hours, label: "Restliche Stunden in diesem Semester #{@semester_process_volunteer.semester_period}",
.col-xs-2= hf.input :hours, label: 'Stunden',
input_html: { value: f.object.hours == 0 ? '' : f.object.hours, min: 0},
required: false,
disabled: disabled
.col-xs-10= hf.input :activity, disabled: disabled
h3 Spesen
= f.simple_fields_for :volunteer, @volunteer do |vf|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment