Sha256: 7427d36219e2a6889dde3e53fb42f57a62c9315eea4d0cb6dc2fc3b45d01cd89

Contents?: true

Size: 953 Bytes

Versions: 34

Compression:

Stored size: 953 Bytes

Contents

<%= decidim_form_for(@form, html: { class: "form edit_assembly" }) 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 can? :publish, 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 can? :destroy, 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

34 entries across 34 versions & 2 rubygems

Version Path
decidim-assemblies-0.10.1 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.10.0 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.9.3 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.9.2 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.9.1 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.9.0 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.8.4 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.8.3 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.8.2 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.8.1 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.8.0 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.7.4 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.7.3 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.7.2 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.7.1 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.7.0 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.6.8 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-0.6.8 decidim-assemblies/app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.6.7 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-0.6.7 decidim-assemblies/app/views/decidim/assemblies/admin/assemblies/edit.html.erb