Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
aoz-003
Commits
583a6675
Commit
583a6675
authored
May 02, 2018
by
Zsolt Benke
Browse files
Confirmation message before terminating volunteer
parent
db1bfe01
Pipeline
#18652
failed with stage
in 35 minutes and 31 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/views/volunteers/_buttons.html.slim
View file @
583a6675
...
...
@@ -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?
...
...
config/locales/de.yml
View file @
583a6675
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment