2017-05-31 21:03:15 +03:00
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
.page-header
|
2018-10-18 11:56:36 -07:00
|
|
|
%h1 Calls for Content
|
2017-05-31 21:03:15 +03:00
|
|
|
%p.text-muted
|
2018-10-18 11:56:36 -07:00
|
|
|
Ask people to submit content to your conference,
|
|
|
|
|
within defined timeframes.
|
2017-05-31 21:03:15 +03:00
|
|
|
- if @program.cfps
|
|
|
|
|
.row
|
|
|
|
|
.col-md-12
|
2017-12-21 18:16:09 +02:00
|
|
|
%table.table.table-hover#tickets
|
2017-05-31 21:03:15 +03:00
|
|
|
%thead
|
|
|
|
|
%th Type
|
|
|
|
|
%th Start Date
|
|
|
|
|
%th End Date
|
2017-09-05 18:15:46 +05:30
|
|
|
%th Description
|
2017-05-31 21:03:15 +03:00
|
|
|
%th Days Left
|
|
|
|
|
%th Actions
|
|
|
|
|
%tbody
|
|
|
|
|
- @program.cfps.each do |cfp|
|
|
|
|
|
%tr
|
|
|
|
|
%td
|
2018-10-17 16:44:08 -07:00
|
|
|
= link_to cfp.cfp_type.capitalize,
|
|
|
|
|
admin_conference_program_cfp_path(@conference, cfp)
|
2017-05-31 21:03:15 +03:00
|
|
|
%td
|
|
|
|
|
= cfp.start_date.strftime('%A, %B %-d. %Y')
|
|
|
|
|
%td
|
|
|
|
|
= cfp.end_date.strftime('%A, %B %-d. %Y')
|
2017-09-05 18:15:46 +05:30
|
|
|
%td
|
|
|
|
|
%p
|
2017-12-09 17:36:33 -02:00
|
|
|
= truncate(cfp.description)
|
2017-05-31 21:03:15 +03:00
|
|
|
%td
|
|
|
|
|
= pluralize(cfp.remaining_days, 'day')
|
|
|
|
|
%td
|
|
|
|
|
.btn-group
|
2018-10-17 16:44:08 -07:00
|
|
|
= 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?' }
|
2017-06-19 17:35:46 +03:00
|
|
|
- if can? :new, @program.cfps.new
|
2017-05-31 21:03:15 +03:00
|
|
|
.row
|
|
|
|
|
.col-md-12.text-right
|
2018-10-18 12:00:20 -07:00
|
|
|
.btn-group
|
|
|
|
|
%button.btn.btn-primary.dropdown-toggle{ type: 'button',
|
|
|
|
|
data: { toggle: 'dropdown' } }
|
|
|
|
|
Add Call for...
|
|
|
|
|
%span.caret
|
|
|
|
|
%ul.dropdown-menu
|
|
|
|
|
- @program.remaining_cfp_types.each do |cfp_type|
|
|
|
|
|
%li
|
|
|
|
|
= link_to cfp_type.capitalize,
|
|
|
|
|
new_admin_conference_program_cfp_path(@conference,
|
|
|
|
|
cfp: { cfp_type: cfp_type })
|