Sha256: c67873e09cc40aa221bf132fe1b719ab22e54be8412624d59ed050a54ac29ee6

Contents?: true

Size: 1.27 KB

Versions: 3

Compression:

Stored size: 1.27 KB

Contents

<% add_decidim_page_title(t("info", scope: "decidim.admin.menu.assemblies_submenu")) %>
<div class="item_show__header">
  <h2 class="item_show__header-title">
    <%= t("info", scope: "decidim.admin.menu.assemblies_submenu") %>
  </h2>
</div>

<div class="item__edit item__edit-1col">
  <div class="item__edit-form">
    <%= decidim_form_for(@form, html: { class: "form form-defaults edit_assembly assembly_form_admin" }) do |f| %>
      <%= render partial: "form", object: f %>
      <div class="item__edit-sticky">
        <div class="item__edit-sticky-container">
          <%= f.submit t("assemblies.edit.update", scope: "decidim.admin"), class: "button button__sm button__secondary" %>

          <% 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 button__sm button__secondary" %>
            <% else %>
              <%= link_to t("actions.publish", scope: "decidim.admin"), assembly_publish_path(current_assembly), method: :post, class: "button button__sm button__secondary" %>
            <% end %>
          <% end %>
        </div>
      </div>
    <% end %>

  </div>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-assemblies-0.28.0 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.28.0.rc5 app/views/decidim/assemblies/admin/assemblies/edit.html.erb
decidim-assemblies-0.28.0.rc4 app/views/decidim/assemblies/admin/assemblies/edit.html.erb