Sha256: 00bf2a6df91017ba8285f478943b1e20d90fe3bb694b97866e59f4409f4c4993
Contents?: true
Size: 1.01 KB
Versions: 12
Compression:
Stored size: 1.01 KB
Contents
<%= decidim_form_for(@form, html: { class: "form edit_participatory_process" }) do |f| %> <%= render partial: 'form', object: f %> <div class="button--double form-general-submit"> <%= f.submit t(".update"), class: "button" %> <% if can? :publish, current_participatory_process %> <% if current_participatory_process.published? %> <%= link_to t("actions.unpublish", scope: "decidim.admin"), participatory_process_publish_path(current_participatory_process), method: :delete, class: "button muted" %> <% else %> <%= link_to t("actions.publish", scope: "decidim.admin"), participatory_process_publish_path(current_participatory_process), method: :post, class: "button hollow" %> <% end %> <% end %> <% if can? :destroy, current_participatory_process %> <%= link_to t("decidim.admin.actions.destroy"), current_participatory_process, method: :delete, class: "alert button", data: { confirm: t("decidim.admin.actions.confirm_destroy") } %> <% end %> </div> <% end %>
Version data entries
12 entries across 12 versions & 2 rubygems