clarion/app/views/management/propositions/index.html.slim

32 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

.row
.col-lg-12
.panel.panel-default
.panel-heading
h2.panel-title= Event.model_name.human(count: 2).mb_chars.capitalize
.panel-body
table.table.table-striped.table-hover.record-table
thead
tr
th = Event.human_attribute_name :title
th = Event.human_attribute_name :subtitle
th = Event.human_attribute_name :length
th = Event.human_attribute_name :language
th.actions
tbody
2015-07-26 14:55:01 +03:00
- @events_by_proposer.each do |proposer, events|
2015-08-20 00:55:47 +03:00
- profile = proposer.find_or_build_personal_profile(@conference)
tr
2015-08-20 00:55:47 +03:00
th[colspan="5"]= profile.try(:name) || proposer.email
2015-07-26 14:55:01 +03:00
- events.each do |event|
tr
td= event.title
td= event.subtitle
td #{event.length} minutes
td= event.language
td.actions
div.btn-group.btn-group-sm
= action_buttons(@conference, event, [:show, :edit, :destroy])