Commit 27489452 authored by Jiri Strojil's avatar Jiri Strojil
Browse files

Feedback review_semester form done

parent d95ffd5c
Pipeline #30053 passed with stage
in 35 minutes and 39 seconds
......@@ -34,8 +34,7 @@ module AssignmentCommon
def label_parts
@label_parts ||= [
I18n.t('activerecord.models.assignment'),
client.contact.full_name,
period_start && I18n.l(period_start)
client.contact.full_name
]
end
end
......
= simple_form_for(@semester_process_volunteer, html: { class: 'col-xs-12 '},
url: submit_review_semester_process_volunteer_path(@semester_process_volunteer)) do |f|
= simple_error_notice f
h1 Zuletzt übermittelte Stunden und Halbjahres-Rapporte
h1 Halbjahres-Rapporte #{@semester_process_volunteer.semester_t} für #{@semester_process_volunteer.volunteer.contact.full_name}
h2.m-b-20.m-t-30
'Einsatz
= link_to @mission.to_label, polymorphic_path([@mission.volunteer, @mission.polymorph_url_object]), target: '_blank'
h3 Halbjahres-Rapporte
= f.simple_fields_for @feedback do |ff|
- [:goals, :achievements, :future, :comments, :conversation].each do |field|
.row
.col-xs-12= ff.input field
h3 Stunden
= render 'hours/last_submitted_hours', hours: @hours
- if @hours.any?
h3 Stunden
= render 'hours/last_submitted_hours', hours: @hours
= f.simple_fields_for @hour do |hf|
.row
.col-xs-2.float-right= hf.input :hours, required: false, input_html: { value: f.object.hours == 0 ? '' : f.object.hours}
.col-xs-2= hf.input :hours, label: 'Restliche Stunden in diesem Semester' ,required: false, input_html: { value: f.object.hours == 0 ? '' : f.object.hours}
h3 Spesen
= f.simple_fields_for :volunteer, @volunteer do |vf|
......
Supports Markdown
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