Sha256: a59305e3777d7cd6b73f30551fe466c6bd97399593dd7c6e48f7c1fcdafb58c5

Contents?: true

Size: 1.45 KB

Versions: 1

Compression:

Stored size: 1.45 KB

Contents

<div class="row columns">
  <%= link_to :back, class: "muted-link" do %>
    <%= icon "chevron-left", class: "icon--small" %>
    <%= t(".back") %>
  <% end %>
  <h2 class="section-heading"><%= t(".title") %></h2>
</div>

<div class="row">
  <div class="columns large-6 medium-centered">
    <div class="card">
      <div class="card__content">
        <%= decidim_form_for(@form) do |form| %>
          <div class="field">
            <%= form.text_field :title %>
          </div>

          <div class="field">
            <%= text_editor_for_debate_description(form) %>
          </div>

          <% if current_participatory_space.categories&.any? %>
            <div class="field">
              <%= form.categories_select :category_id, current_participatory_space.categories, prompt: t(".select_a_category"), disable_parents: false %>
            </div>
          <% end %>

          <% if Decidim::UserGroups::ManageableUserGroups.for(current_user).verified.any? %>
            <div class="field">
              <%= form.select :user_group_id, Decidim::UserGroups::ManageableUserGroups.for(current_user).verified.map{|g| [g.name, g.id]}, prompt: current_user.name %>
            </div>
          <% end %>

          <div class="actions">
            <%= form.submit t(".create"), class: "button expanded", data: { disable: true } %>
          </div>
        <% end %>
      </div>
    </div>
  </div>
</div>

<%= javascript_include_tag "decidim/proposals/add_proposal" %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-debates-0.21.0 app/views/decidim/debates/debates/new.html.erb