decidim-admin/app/views/decidim/admin/participatory_processes/edit.html.erb in decidim-0.0.6 vs decidim-admin/app/views/decidim/admin/participatory_processes/edit.html.erb in decidim-0.0.7
- old
+ new
@@ -1,21 +1,19 @@
-<div class="actions">
- <% if can? :publish, participatory_process %>
- <% if participatory_process.published? %>
- <%= link_to t("actions.unpublish", scope: "decidim.admin"), participatory_process_publish_path(participatory_process), method: :delete, class: "small button secondary" %>
- <% else %>
- <%= link_to t("actions.publish", scope: "decidim.admin"), participatory_process_publish_path(participatory_process), method: :post, class: "small button secondary" %>
- <% end %>
- <% end %>
-
- <% if can? :destroy, participatory_process %>
- <%= link_to t("decidim.admin.actions.destroy"), participatory_process, method: :delete, class: "alert button", data: { confirm: t("decidim.admin.actions.confirm_destroy") } %>
- <% end %>
-</div>
-
-<%= decidim_form_for(@form) do |f| %>
+<%= 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" %>
- <div class="actions">
- <%= f.submit t(".update") %>
+ <% if can? :publish, participatory_process %>
+ <% if participatory_process.published? %>
+ <%= link_to t("actions.unpublish", scope: "decidim.admin"), participatory_process_publish_path(participatory_process), method: :delete, class: "button muted" %>
+ <% else %>
+ <%= link_to t("actions.publish", scope: "decidim.admin"), participatory_process_publish_path(participatory_process), method: :post, class: "button hollow" %>
+ <% end %>
+ <% end %>
+
+ <% if can? :destroy, participatory_process %>
+ <%= link_to t("decidim.admin.actions.destroy"), participatory_process, method: :delete, class: "alert button", data: { confirm: t("decidim.admin.actions.confirm_destroy") } %>
+ <% end %>
</div>
<% end %>
+