Merge pull request #907 from sonalkr132/proposal-test

Proposal controller improvements and test
This commit is contained in:
Henne Vogelsang 2016-04-01 14:49:50 +02:00
commit f56fc0052f
6 changed files with 617 additions and 43 deletions

View file

@ -87,7 +87,7 @@
method: :patch, class: 'btn btn-mini btn-success', id: "confirm_proposal_#{event.id}"
- if event.transition_possible? :withdraw
= link_to 'Withdraw', conference_program_proposal_path(@conference.short_title, event.id), method: :delete,
= link_to 'Withdraw', withdraw_conference_program_proposal_path(@conference.short_title, event.id), method: :patch,
data: { confirm: 'Are you sure you want to withdraw this proposal?' }, class: 'btn btn-mini btn-warning',
id: "delete_proposal_#{event.id}"
- if event.state == 'withdrawn' || event.state == 'rejected'