app/views/decidim/proposals/admin/participatory_texts/index.html.erb in decidim-proposals-0.28.1 vs app/views/decidim/proposals/admin/participatory_texts/index.html.erb in decidim-proposals-0.28.2

- old
+ new

@@ -13,21 +13,24 @@ <div class="form__wrapper"> <div class="card"> <div class="row column"> <p class="mt-3"><%= t(".info_1") %></p> <ul id="participatory-text" class="draggable-list js-connect js-list-actives accordion mb-m mt-2.5 ml-2.5 mr-2.5" + data-component="accordion" data-accordion data-sort-url="#" data-multi-expand="true" data-allow-all-closed="true"> <%= form.fields_for(:proposals) do |prop_form| %> <% proposal = @drafts[prop_form.index] %> - <li class="py-4 draggable-content <%= proposal.article? ? "is-active" : nil %>" data-accordion-item draggable="true"> - <a href="#" class="accordion-title font-bold mt-5"><%= preview_participatory_text_section_title(proposal) %> + <li class="draggable-content is-active" data-accordion-item draggable="true"> + <a data-open="true" data-controls="article-<%= proposal.id %>"> + <%= icon "arrow-right-s-line" %> + <%= preview_participatory_text_section_title(proposal) %> <span class="mr-m"><%= icon "menu-line", class: "fill-black" %></span> </a> - <div class="accordion-content" data-tab-content> + <div data-tab-content id="article-<%= proposal.id %>"> <%= render "article-preview", { form: prop_form, proposal: } %> </div> </li> <% end %> </ul>