review_semester.html.slim 1.81 KB
Newer Older
Jiri Strojil's avatar
Jiri Strojil committed
1
2
3
= 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
4
  h1 Halbjahres-Rapporte #{@semester_process_volunteer.semester_t} für #{@semester_process_volunteer.volunteer.contact.full_name}
Jiri Strojil's avatar
Jiri Strojil committed
5
6
7
8
9
10
11
12
13
14

  h2.m-b-20.m-t-30
    'Einsatz
    = link_to @mission.to_label, polymorphic_path([@mission.volunteer, @mission.polymorph_url_object]), target: '_blank'

  = f.simple_fields_for @feedback do |ff|
    - [:goals, :achievements, :future, :comments, :conversation].each do |field|
      .row
        .col-xs-12= ff.input field

15
16
17
  - if @hours.any?
    h3 Stunden
    = render 'hours/last_submitted_hours', hours: @hours
Jiri Strojil's avatar
Jiri Strojil committed
18

Jiri Strojil's avatar
Jiri Strojil committed
19
  = f.simple_fields_for @hour do |hf|
Jiri Strojil's avatar
Jiri Strojil committed
20
    .row
21
22
23
      .col-xs-2= hf.input :hours,
                label: "Restliche Stunden in diesem Semester #{@semester_process_volunteer.semester_period}",
                required: false, input_html: { value: f.object.hours == 0 ? '' : f.object.hours}
Jiri Strojil's avatar
Jiri Strojil committed
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

  h3 Spesen
  = f.simple_fields_for :volunteer, @volunteer do |vf|
    .row.text-left#volunteer-update-waive-and-iban
      .col-xs-12
        = vf.input_field :id, type: :hidden
        = checkbox_toggle_collapse(vf, :waive, '#not-waive-expenses', check_shows: false)
      .col-xs-12#not-waive-expenses
        .row
          .col-xs-4= vf.input :iban
          .col-xs-4= vf.input :bank

  .submit-box
    .col-xs-12
      p Ich bestätige, dass ich alle meine Stunden und Halbjahres-Rapporte bis zum heutigen Datum erfasst habe.
Jiri Strojil's avatar
Jiri Strojil committed
39
40
      - if @semester_process_volunteer.commited_at.present?
        p.text-danger Bestätigt am #{l(@semester_process_volunteer.commited_at.to_date)} durch #{profile_link(@semester_process_volunteer.commited_by)}
Jiri Strojil's avatar
Jiri Strojil committed
41
42
      - else
        = f.submit 'Bestätigen', class: 'btn btn-lg-accepted'