Commit 583a6675 authored by Zsolt Benke's avatar Zsolt Benke
Browse files

Confirmation message before terminating volunteer

parent db1bfe01
Pipeline #18652 failed with stage
in 35 minutes and 31 seconds
......@@ -7,8 +7,9 @@ nav.navbar.section-navigation
- if policy(@volunteer).terminate?
li.button-acceptance = link_to t("volunteer_applications.acceptance.#{@volunteer.acceptance}"), '#',
class: "btn btn-acceptance-#{@volunteer.acceptance}"
li= link_to navigation_glyph(:terminate), terminate_volunteer_path(@volunteer), class: 'btn btn-default',
title: 'Beenden', method: :put unless @volunteer.resigned?
li= link_to navigation_glyph(:terminate), terminate_volunteer_path(@volunteer),
class: 'btn btn-default', title: 'Beenden', method: :put,
data: { confirm: t('messages.confirm_terminate_volunteer') } unless @volunteer.resigned?
- if @volunteer.internal_and_started_assignments?
li = button_link navigation_glyph(:hours), volunteer_hours_path(@volunteer), title: t('volunteer_applications.show.hour_reports')
- if policy(Volunteer).superadmin_privileges?
......
......@@ -164,6 +164,7 @@ de:
confirm_delete: "Wirklich %{model} %{record} löschen?"
confirm_record_delete: '%{model} wirklich löschen?'
select_prompt: "%{model} wählen"
confirm_terminate_volunteer: "Wollen Sie den Freiwilligen wirklich beenden?"
rejection_type: &id-rejection-types
her: von Freiwillige/r vor / nach Erstgespräch
other: Anderer Grund
......
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