app/views/decidim/accountability/admin/results/_form.html.erb in decidim-accountability-0.9.3 vs app/views/decidim/accountability/admin/results/_form.html.erb in decidim-accountability-0.10.0
- old
+ new
@@ -52,14 +52,12 @@
</div>
</div>
<div class="row column">
<% if @form.proposals %>
- <%= form.select :proposal_ids,
- @form.proposals,
- {},
- { multiple: true, class: "chosen-select" }
- %>
+ <% picker_options = { id: "decidim_accountability_proposals", class: "picker-multiple", name: 'result[proposal_ids]', multiple: true }
+ prompt_params= { url: 'proposals', text: t(".add_proposal") } %>
+ <%= form.data_picker(:proposals, picker_options, prompt_params) {|item| { url: 'proposals', text: "##{item.id}- #{item.title}" }} %>
<% end %>
</div>
<div class="row column">
<% if @form.projects %>