Rework cfp abilities

This commit is contained in:
AEtherC0r3 2017-06-19 17:35:46 +03:00 committed by Stella Rouzi
parent 5f3b48c9f7
commit f37d3095e1
4 changed files with 20 additions and 4 deletions

View file

@ -30,7 +30,7 @@
.btn-group
= link_to 'Edit', edit_admin_conference_program_cfp_path(@conference.short_title, cfp.id), method: :get, class: 'btn btn-primary'
= link_to 'Delete', admin_conference_program_cfp_path(@conference.short_title, cfp.id), method: 'delete', class: 'btn btn-danger', data: { confirm: 'Are you sure you want to delete the CfP?' }
- if @program.remaining_cfp_types.length > 0
- if can? :new, @program.cfps.new
.row
.col-md-12.text-right
= link_to 'Create Call for Papers', new_admin_conference_program_cfp_path(@conference.short_title), class: 'btn btn-primary'