Commit e230b14e authored by Chrysanthi Lagodimou's avatar Chrysanthi Lagodimou
Browse files

remove state and affirmation from volunteer show

parent 306e7672
......@@ -137,7 +137,8 @@
}
// # TODO remove when button gets the change status functionality
td.button-acceptance a {
td.button-acceptance a,
li.button-acceptance a {
pointer-events: none;
}
......
h1= @volunteer.contact.full_name
- if @volunteer.rejected?
- if @volunteer.rejection_type.present?
h4= "#{t_attr(:rejection_type)}: #{t("rejection_type.#{@volunteer.rejection_type}")}"
- if @volunteer.rejection_text.present?
h4= "#{t_attr(:rejection_text)}: #{@volunteer.rejection_text}"
nav.navbar.section-navigation
ul.list-inline
......@@ -101,21 +106,6 @@ h3 Persönlicher Hintergrund
tr
td= t_attr(:interests)
td= @volunteer.interests
- if policy(Volunteer).acceptance?
tr
td= t_attr(:acceptance)
td= t(".acceptance.#{@volunteer.acceptance}")
- if policy(Volunteer).state?
tr
td= t_attr(:state)
td= t("state.#{@volunteer.state}")
- if @volunteer.rejected?
tr
td= t_attr(:rejection_type)
td= t("rejection_type.#{@volunteer.rejection_type}") if @volunteer.rejection_type.present?
tr
td= t_attr(:rejection_text)
td= @volunteer.rejection_text
- if @volunteer.internal?
tr
td= t_attr(:bank_details)
......
......@@ -138,8 +138,8 @@ class VolunteersTest < ApplicationSystemTestCase
click_button 'Update Volunteer'
visit volunteer_path(volunteer)
assert page.has_content? 'Reason for rejection Other'
assert page.has_content? 'Explanation for rejection Explanation'
assert page.has_content? 'Reason for rejection: Other'
assert page.has_content? 'Explanation for rejection: Explanation'
end
test 'thead acceptance filter dropdown can switch to all' do
......
Markdown is supported
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