Unlint CfP views #BetterPlace
This commit is contained in:
parent
195d7e08ac
commit
21c5b842b1
11 changed files with 89 additions and 55 deletions
|
|
@ -19,8 +19,8 @@
|
|||
- @program.cfps.each do |cfp|
|
||||
%tr
|
||||
%td
|
||||
= link_to(admin_conference_program_cfp_path(@conference.short_title, cfp.id)) do
|
||||
= cfp.cfp_type.capitalize
|
||||
= link_to cfp.cfp_type.capitalize,
|
||||
admin_conference_program_cfp_path(@conference, cfp)
|
||||
%td
|
||||
= cfp.start_date.strftime('%A, %B %-d. %Y')
|
||||
%td
|
||||
|
|
@ -32,9 +32,16 @@
|
|||
= pluralize(cfp.remaining_days, 'day')
|
||||
%td
|
||||
.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?' }
|
||||
= link_to 'Edit',
|
||||
edit_admin_conference_program_cfp_path(@conference, cfp),
|
||||
method: :get, class: 'btn btn-primary'
|
||||
= link_to 'Delete',
|
||||
admin_conference_program_cfp_path(@conference, cfp),
|
||||
method: 'delete', class: 'btn btn-danger',
|
||||
data: { confirm: 'Are you sure?' }
|
||||
- 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'
|
||||
= link_to 'Create Call for Papers',
|
||||
new_admin_conference_program_cfp_path(@conference),
|
||||
class: 'btn btn-primary'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue