Sha256: 2effa1b5ae2e8865fa4048202e7462ac91768e9e2b1065f1b6ec8a53c366ae8e

Contents?: true

Size: 1 KB

Versions: 14

Compression:

Stored size: 1 KB

Contents

<%= decidim_form_for(@form, html: { class: "form edit_assembly assembly_form_admin" }) do |f| %>
  <%= render partial: "form", object: f %>
  <div class="button--double form-general-submit">
    <%= f.submit t("assemblies.edit.update", scope: "decidim.admin"), class: "button" %>

    <% if allowed_to? :publish, :assembly, assembly: current_assembly %>
      <% if current_assembly.published? %>
        <%= link_to t("actions.unpublish", scope: "decidim.admin"), assembly_publish_path(current_assembly), method: :delete, class: "button muted" %>
      <% else %>
        <%= link_to t("actions.publish", scope: "decidim.admin"), assembly_publish_path(current_assembly), method: :post, class: "button hollow" %>
      <% end %>
    <% end %>

    <% if allowed_to? :destroy, :assembly, assembly: current_assembly %>
      <%= link_to t("decidim.admin.actions.destroy"), current_assembly, method: :delete, class: "alert button", data: { confirm: t("decidim.admin.actions.confirm_destroy") } %>
    <% end %>
  </div>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
decidim-assemblies-0.15.2 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.15.1 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.15.0 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.14.4 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.14.3 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.14.2 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.14.1 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.13.1 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.12.2 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.13.0 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.12.1 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.13.0.pre1 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.12.0 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.12.0.pre app/views/decidim/assemblies/admin/assemblies/edit.html.erb