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

44 lines
2.6 KiB
Plaintext
Raw Permalink Normal View History

2014-10-14 20:34:33 +03:00
tr
2016-10-07 04:42:01 +03:00
td
.conference-title
= conference.title
.conference-actions
.visible-xs.dropdown
.button.btn.btn-primary.dropdown-toggle type="button" data-toggle="dropdown"
= icon 'ellipsis-v'
ul.dropdown-menu.dropdown-menu-right
li
= link_to management_conference_path(conference)
= icon 'line-chart', t('actions.view.button', model: Conference.model_name.human)
li
= link_to [:management, conference, :events] do
=> icon 'file-text', Event.model_name.human(count: 2).mb_chars.capitalize
li
= link_to [:management, conference, :volunteers] do
=> icon 'hand-stop-o', t('activerecord.models.volunteer', count: 2).mb_chars.capitalize
li
= link_to [:management, conference, :personal_profiles] do
=> icon 'user', t('activerecord.models.personal_profile', count: 2).mb_chars.capitalize
li.divider
li
= link_to edit_management_conference_path(conference)
= icon :edit, t('actions.edit.button', model: Conference.model_name.human)
li
= link_to management_conference_path(conference), class: [conference.events.any? ? 'disabled' : nil], method: :delete, data: {confirm: t('actions.are_you_sure')}
= icon :trash, t('actions.destroy.button', model: Conference.model_name.human)
2014-10-14 21:58:13 +03:00
2016-10-07 04:42:01 +03:00
.hidden-xs.btn-group
= link_to management_conference_path(conference), class: 'btn btn-success'
= icon 'line-chart', t('actions.view.button', model: Conference.model_name.human)
= link_to [:management, conference, :events], class: 'btn btn-success' do
=> icon 'file-text', Event.model_name.human(count: 2).mb_chars.capitalize
= link_to [:management, conference, :volunteers], class: 'btn btn-success' do
=> icon 'hand-stop-o', t('activerecord.models.volunteer', count: 2).mb_chars.capitalize
= link_to [:management, conference, :personal_profiles], class: 'btn btn-success' do
=> icon 'user', t('activerecord.models.personal_profile', count: 2).mb_chars.capitalize
.hidden-xs.btn-group<
= link_to edit_management_conference_path(conference), title: t('actions.edit.button', model: Conference.model_name.human), class: 'btn btn-warning'
= 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