clarion/app/views/management/conferences/_conference.html.slim

22 lines
1.3 KiB
Plaintext
Raw Normal View History

2014-10-14 20:34:33 +03:00
tr
td = conference.title
2014-10-14 21:58:13 +03:00
td.hidden-xs.hidden-sm = l conference.start_date.to_date, format: :long
td.hidden-xs.hidden-sm = l conference.end_date.to_date, format: :long
td.action
- if conference.call_for_papers_open?
= link_to '#', method: :delete, class: 'btn btn-sm btn-success cfp-toggle', remote: true, onclick: '$(".cfp-toggle").addClass("disabled")'
2015-04-09 00:10:04 +03:00
= icon 'dot-circle-o', '', class: 'fa-fw'
2014-10-14 21:58:13 +03:00
- else
= link_to '#', method: :post, class: 'btn btn-sm btn-warning cfp-toggle', remote: true, onclick: '$(".cfp-toggle").addClass("disabled")'
2015-04-09 00:10:04 +03:00
= icon 'circle-o', class: 'fa-fw'
2014-10-14 21:58:13 +03:00
2014-10-14 20:34:33 +03:00
td = conference.events.count
td.actions
div.btn-group.btn-group-sm
= link_to management_conference_path(conference), title: t('actions.view.button', model: Conference.model_name.human), class: 'btn btn-info'
2015-04-09 00:10:04 +03:00
= icon :eye
2014-10-14 20:34:33 +03:00
= link_to edit_management_conference_path(conference), title: t('actions.edit.button', model: Conference.model_name.human), class: 'btn btn-primary'
2015-04-09 00:10:04 +03:00
= icon :edit
2014-10-14 23:55:17 +03:00
= link_to management_conference_path(conference), title: t('actions.destroy.button', model: Conference.model_name.human), class: ['btn', 'btn-danger', conference.events.any? ? 'disabled' : nil], remote: true, method: :delete, data: {confirm: t('actions.are_you_sure')}
2015-04-09 00:10:04 +03:00
= icon :trash