Merge pull request #2989 from hennevogel/bugfix/schedule
Fix selectize input defaults
This commit is contained in:
commit
bb6c68b1c5
2 changed files with 2 additions and 6 deletions
|
|
@ -25,7 +25,7 @@
|
||||||
= f.text_field :website_url, class: 'form-control', required: true, placeholder: 'URL'
|
= f.text_field :website_url, class: 'form-control', required: true, placeholder: 'URL'
|
||||||
.form-group
|
.form-group
|
||||||
= f.label :responsible_ids, 'Responsibles'
|
= f.label :responsible_ids, 'Responsibles'
|
||||||
= f.select :responsible_ids, [], {}, { multiple: true, class: 'form-control', id: 'users_selectize', placeholder: 'Responsibles' }
|
= f.select :responsible_ids, @booth.responsibles.pluck(:username, :id), {}, { multiple: true, class: 'form-control', id: 'users_selectize', placeholder: 'Responsibles' }
|
||||||
%span.help-block
|
%span.help-block
|
||||||
The people responsible for the `t('booth')`. You can only select existing users.
|
The people responsible for the `t('booth')`. You can only select existing users.
|
||||||
.form-group
|
.form-group
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,7 @@
|
||||||
= f.text_field :subtitle, class: 'form-control'
|
= f.text_field :subtitle, class: 'form-control'
|
||||||
.form-group
|
.form-group
|
||||||
= f.label :speaker_ids, 'Speakers'
|
= f.label :speaker_ids, 'Speakers'
|
||||||
- if f.object.speakers.any?
|
= f.select :speaker_ids, f.object.speakers.pluck(:username, :id), {}, { multiple: true, class: "form-control", id: "users_selectize", placeholder: "Speakers" }
|
||||||
%p
|
|
||||||
Current:
|
|
||||||
= f.object.speakers.pluck(:username).join(', ')
|
|
||||||
= f.select :speaker_ids, [], {}, { multiple: true, class: "form-control", id: "users_selectize", placeholder: "Speakers" }
|
|
||||||
%span.help-block
|
%span.help-block
|
||||||
The people responsible for the event, beside you. You can only select existing users.
|
The people responsible for the event, beside you. You can only select existing users.
|
||||||
- if @program.tracks.confirmed.cfp_active.any?
|
- if @program.tracks.confirmed.cfp_active.any?
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue