Sha256: 6592080bfdfe22737287ca6252e0e22e353b08a660cb7e612f8b2f705c28d1b8

Contents?: true

Size: 762 Bytes

Versions: 58

Compression:

Stored size: 762 Bytes

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 %>
  </div>
<% end %>

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
decidim-assemblies-0.27.9 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.27.8 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.27.7 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.27.6 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.26.10 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.26.9 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.27.5 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.26.8 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.27.4 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.27.3 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.26.7 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.26.5 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.27.2 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.27.1 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.26.4 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.27.0 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.26.3 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.27.0.rc2 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.27.0.rc1 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.26.2 app/views/decidim/assemblies/admin/assemblies/edit.html.erb