Sha256: 87cb506f3ed9179996f94e100d7b461abfadc44722168c4c0b770903cbb114f9

Contents?: true

Size: 1.68 KB

Versions: 2

Compression:

Stored size: 1.68 KB

Contents

<div class="row">
  <%= render partial: "wizard_aside" %>

  <div class="columns large-6">
    <%= render partial: "wizard_header" %>

    <div class="card">
      <div class="card__content">
        <%= decidim_form_for(@form, url: update_draft_proposal_path(@proposal), method: :patch) do |form| %>
          <div class="field">
            <%= form.text_field :title %>
          </div>

          <div class="field">
            <%= form.text_area :body, rows: 10 %>
          </div>

          <% if feature_settings.geocoding_enabled? %>
            <div class="field">
              <%= form.check_box :has_address %>
            </div>
            <div class="field" id="address_input">
              <%= form.text_field :address %>
            </div>
          <% end %>

          <% if @form.categories&.any? %>
            <div class="field">
              <%= form.categories_select :category_id, @form.categories, prompt: t("decidim.proposals.proposals.edit.select_a_category") %>
            </div>
          <% end %>

          <% if current_participatory_space.has_subscopes? %>
            <div class="field">
              <%= scopes_picker_field form, :scope_id %>
            </div>
          <% end %>

          <% if current_user.user_groups.verified.any? %>
            <div class="field">
              <%= user_group_select_field form, :user_group_id %>
            </div>
          <% end %>

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
decidim-proposals-0.10.1 app/views/decidim/proposals/proposals/edit_draft.html.erb
decidim-proposals-0.10.0 app/views/decidim/proposals/proposals/edit_draft.html.erb