mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
20 lines
826 B
Text
20 lines
826 B
Text
= form_for(@lodging, url: (@lodging.new_record? ? admin_conference_lodgings_path : admin_conference_lodging_path(@conference.short_title, @lodging))) do |f|
|
|
.form-group
|
|
= f.label :name
|
|
%abbr{title: 'This field is required'} *
|
|
= f.text_field :name, require: true, autofocus: true, class: 'form-control'
|
|
.form-group
|
|
= f.label :website_link
|
|
= f.url_field :website_link, class: 'form-control'
|
|
.form-group
|
|
= f.label :description
|
|
= f.text_area :description, rows: 5, cols: 20, data: { provide: 'markdown' }, class: 'form-control'
|
|
%span.help-block
|
|
= markdown_hint
|
|
.form-group
|
|
- if @lodging.picture?
|
|
= image_tag @lodging.picture.thumb.url
|
|
= f.label :picture
|
|
= f.file_field :picture, class: 'form-control'
|
|
%p.text-right
|
|
= f.submit nil, { class: 'btn btn-primary' }
|