clarion/app/views/management/events/edit.html.slim

34 lines
1.1 KiB
Plaintext
Raw Normal View History

- content_for :title
= t('.edit', event_type: @event.event_type.try(:name).try(:mb_chars).try(:downcase), event_title: @event.title)
2015-07-14 21:00:02 +03:00
.row
.col-xs-12
h1.page-header
= @event.title
small<
= @event.subtitle
2015-07-14 21:00:02 +03:00
.col-lg-12
= simple_nested_form_for [:management, @conference, @event], wrapper: :horizontal_form, html: { class: 'form-horizontal' } do |f|
= f.input :title
= f.input :subtitle
= f.association :event_type, collection: current_conference.event_types
= f.association :track, collection: current_conference.tracks.map { |track| [track.name, track.id, {title: track.description}] }
= f.input :length
= f.input :language, collection: locale_collection, include_blank: false
= f.input :abstract
= f.input :description
= f.input :notes
hr
.row
.col-lg-12
h2 = Participation.model_name.human(count: 2).mb_chars.capitalize
.row
= render partial: 'form_participations', locals: {form: f}
2015-07-14 21:00:02 +03:00
.text-right
.btn-group
= action_buttons(@conference, @event, [:index, :show])
= f.submit class: 'btn btn-warning'
2016-10-09 02:48:35 +03:00
hr