Allow submission of proposal only if program has cfp

This commit is contained in:
Aditya Prakash 2016-03-12 21:08:43 +05:30
parent 9e67a1bcd5
commit 3e32c58460
5 changed files with 32 additions and 11 deletions

View file

@ -98,5 +98,5 @@
class: 'btn btn-default', id: "edit_proposal_#{event.id}"
.row
.col-md-12
- if can? :create, @program.events.new
- if can? :create, @event
= link_to "New Proposal", new_conference_program_proposal_path(@conference.short_title), :class => "btn btn-success pull-right"