clarion/app/views/management/conferences/_conference.html.slim
2015-05-30 17:24:49 +03:00

17 lines
987 B
Plaintext

tr
td = conference.title
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
= render partial: 'management/call_for_participations/status', locals: {conference: conference}
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'
= icon :eye
= link_to edit_management_conference_path(conference), title: t('actions.edit.button', model: Conference.model_name.human), class: 'btn btn-primary'
= icon :edit
= 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], method: :delete, data: {confirm: t('actions.are_you_sure')}
= icon :trash