clarion/app/views/workshops/_form.html.slim
Petko Bordjukov ab1ce49c29 UX tweaks
2014-09-07 00:06:50 +03:00

16 lines
612 B
Plaintext

== simple_form_for @workshop do |form|
p
= form.error_notification
.form-inputs
= form.input :title, autofocus: true
= form.input :subtitle
= form.input :track_id, collection: Conference.current.tracks.map { |track| [track.name, track.id, {title: track.description}] }, required: true
= form.input :length, input_html: {value: 60}
= form.input :language, collection: I18n.available_locales, include_blank: false, default: I18n.locale
= form.input :abstract
= form.input :description
= form.input :notes
= form.input :agreement, as: :boolean
= form.button :submit