diff --git a/app/views/booths/_form.html.haml b/app/views/booths/_form.html.haml index e9a7735f..7796149d 100644 --- a/app/views/booths/_form.html.haml +++ b/app/views/booths/_form.html.haml @@ -25,7 +25,7 @@ = f.text_field :website_url, class: 'form-control', required: true, placeholder: 'URL' .form-group = 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 The people responsible for the `t('booth')`. You can only select existing users. .form-group diff --git a/app/views/proposals/_proposal_form.html.haml b/app/views/proposals/_proposal_form.html.haml index 9986e519..940cd286 100644 --- a/app/views/proposals/_proposal_form.html.haml +++ b/app/views/proposals/_proposal_form.html.haml @@ -11,11 +11,7 @@ = f.text_field :subtitle, class: 'form-control' .form-group = f.label :speaker_ids, 'Speakers' - - if f.object.speakers.any? - %p - Current: - = f.object.speakers.pluck(:username).join(', ') - = f.select :speaker_ids, [], {}, { multiple: true, class: "form-control", id: "users_selectize", placeholder: "Speakers" } + = f.select :speaker_ids, f.object.speakers.pluck(:username, :id), {}, { multiple: true, class: "form-control", id: "users_selectize", placeholder: "Speakers" } %span.help-block The people responsible for the event, beside you. You can only select existing users. - if @program.tracks.confirmed.cfp_active.any?