clarion/lib/initfest/views/public/events/_form.slim

20 lines
870 B
Plaintext
Raw Permalink Normal View History

2015-08-15 08:52:41 +03:00
= simple_form_for @event, wrapper: :default do |form|
= form.input :event_type_id, as: :hidden, wrapper: false
p
= form.error_notification
.form-inputs
= form.input :title, autofocus: true
= form.input :subtitle
2015-08-15 08:56:50 +03:00
= form.association :track, wrapper: :default, collection: current_conference.tracks.map { |track| [track.name, track.id, {title: track.description}] }
2015-08-20 00:24:22 +03:00
= form.input :length, hint: t('simple_form.hints.event.length', type: @event.event_type.name.mb_chars.downcase, min: @event.event_type.minimum_length, max: @event.event_type.maximum_length)
2015-08-21 20:05:00 +03:00
= form.input :language, as: :radio_buttons, collection: locale_collection, include_blank: false, wrapper: :default
2015-08-15 08:52:41 +03:00
= form.input :abstract
= form.input :description
= form.input :notes
= form.input :agreement, as: :boolean, wrapper: :default
= form.button :submit