Commit 8a40344c authored by Chrysanthi Lagodimou's avatar Chrysanthi Lagodimou
Browse files

fix back not authorized and button labels

parent 4f8665ea
......@@ -2,6 +2,10 @@ h1= t_title(:edit)
= simple_form_for(@volunteer) do |f|
= render 'volunteers/form', f: f, volunteer: @volunteer
= f.button :submit, class: 'btn btn-success'
- if current_user.volunteer?
= f.button :submit, t('update_profile'), class: 'btn btn-success'
- else
= f.button :submit, class: 'btn btn-success'
= form_navigation_btn :back
- unless current_user.volunteer?
= form_navigation_btn :back
......@@ -144,5 +144,8 @@ h3= t('volunteer_availability')
h3= t('assignments')
= render 'assignments/volunteer_index', assignments: @volunteer.assignments
= form_navigation_btn :edit
= form_navigation_btn :back
- if current_user.volunteer?
= button_link t('edit_profile'), edit_volunteer_path(@volunteer)
- else
= form_navigation_btn :edit
= form_navigation_btn :back
......@@ -573,6 +573,7 @@ de:
afternoon: Nachmittag
evening: Abend
morning: Morgen
update_profile: Profil aktualisieren
user_destroyed: 'Benutzer %{email} wurde erfolgreich gelöscht.'
users: Benutzer/in
voluntary_platform: Freiwilligen Plattform
......
......@@ -418,6 +418,7 @@ en:
afternoon: afternoon
evening: evening
morning: morning
update_profile: Update profile
user_destroyed: 'User %{email} was successfully deleted.'
users: Users
voluntary_platform: Voluntaries Platform
......
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