2022-02-23 17:52:16 +01:00
|
|
|
= form_for(@booth, url: @url) do |f|
|
|
|
|
|
.form-group
|
|
|
|
|
= f.label :title, 'Title'
|
|
|
|
|
%abbr{title: 'This field is required'} *
|
|
|
|
|
= f.text_field :title, autofocus: true, required: true, class: 'form-control', placeholder: 'Title'
|
|
|
|
|
.form-group
|
|
|
|
|
= f.label :description, 'Description'
|
|
|
|
|
%abbr{title: 'This field is required'} *
|
|
|
|
|
= f.text_area :description, rows: 5, data: { provide: 'markdown' }, required: true, class: 'form-control'
|
|
|
|
|
%span.help-block
|
|
|
|
|
This field becomes public upon request acceptance
|
|
|
|
|
.form-group
|
|
|
|
|
= f.label :reasoning, 'How it fits the conference'
|
|
|
|
|
%abbr{title: 'This field is required'} *
|
|
|
|
|
= f.text_area :reasoning, rows: 5, data: { provide: 'markdown' }, required: true, class: 'form-control'
|
|
|
|
|
.form-group
|
|
|
|
|
= f.label :submitter_relationship, 'Submitter\'s relation'
|
|
|
|
|
%abbr{title: 'This field is required'} *
|
|
|
|
|
= f.text_field :submitter_relationship, rows: 5, required: true, class: 'form-control'
|
|
|
|
|
%span.help-block
|
2025-10-15 11:15:47 +00:00
|
|
|
e.g. employee, community manager, etc
|
2022-02-23 17:52:16 +01:00
|
|
|
.form-group
|
|
|
|
|
= f.label :website_url, 'Website URL'
|
|
|
|
|
%abbr{title: 'This field is required'} *
|
|
|
|
|
= f.text_field :website_url, class: 'form-control', required: true, placeholder: 'URL'
|
|
|
|
|
.form-group
|
2022-03-02 18:03:53 +01:00
|
|
|
= f.label :responsible_ids, 'Responsibles'
|
2022-05-06 13:19:33 +02:00
|
|
|
= f.select :responsible_ids, @booth.responsibles.pluck(:username, :id), {}, { multiple: true, class: 'form-control', id: 'users_selectize', placeholder: 'Responsibles' }
|
2022-02-23 17:52:16 +01:00
|
|
|
%span.help-block
|
|
|
|
|
The people responsible for the `t('booth')`. You can only select existing users.
|
|
|
|
|
.form-group
|
|
|
|
|
= image_tag f.object.picture.thumb.url if f.object.picture?
|
|
|
|
|
= f.label :picture, 'Picture'
|
|
|
|
|
= f.file_field :picture
|
|
|
|
|
%p.text-right
|
|
|
|
|
%button{type: 'submit', class: 'btn btn-success'}
|
|
|
|
|
- if @booth.new_record?
|
|
|
|
|
Create `(t'booth').capitalize` Request
|
|
|
|
|
- else
|
|
|
|
|
Update `(t'booth').capitalize` Request
|
2017-07-20 14:20:46 +03:00
|
|
|
|
2022-03-02 18:03:53 +01:00
|
|
|
= render partial: 'shared/user_selectize'
|
|
|
|
|
|