Sha256: c5a183ec02863f2d4bdfe6c8a5f6ef6fa5fe7d92a0dcae2ac46a4a61afe5a88c

Contents?: true

Size: 1.31 KB

Versions: 10

Compression:

Stored size: 1.31 KB

Contents

<div class="card">
  <div class="card-divider">
    <h2 class="card-title"><%= title %></h2>
  </div>

  <div class="card-section">
    <div class="row column">
      <%= form.text_field :title %>
    </div>

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

    <% if component_settings.geocoding_enabled? %>
      <div class="row column">
        <%= form.text_field :address %>
      </div>
    <% end %>

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

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

    <% if component_settings.attachments_allowed? %>
      <div class="row column">
        <fieldset>
          <legend><%= t(".attachment_legend") %></legend>
          <%= form.fields_for :attachment, @form.attachment do |form| %>
            <div class="row column">
              <%= form.text_field :title %>
            </div>

            <div class="row column">
              <%= form.upload :file, optional: false %>
            </div>
          <% end %>
        </fieldset>
      </div>
    <% end %>
  </div>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
decidim-proposals-0.13.1 app/views/decidim/proposals/admin/proposals/_form.html.erb
decidim-proposals-0.12.2 app/views/decidim/proposals/admin/proposals/_form.html.erb
decidim-proposals-0.13.0 app/views/decidim/proposals/admin/proposals/_form.html.erb
decidim-proposals-0.12.1 app/views/decidim/proposals/admin/proposals/_form.html.erb
decidim-proposals-0.13.0.pre1 app/views/decidim/proposals/admin/proposals/_form.html.erb
decidim-proposals-0.12.0 app/views/decidim/proposals/admin/proposals/_form.html.erb
decidim-proposals-0.11.2 app/views/decidim/proposals/admin/proposals/_form.html.erb
decidim-proposals-0.12.0.pre app/views/decidim/proposals/admin/proposals/_form.html.erb
decidim-proposals-0.11.1 app/views/decidim/proposals/admin/proposals/_form.html.erb
decidim-proposals-0.11.0.pre1 app/views/decidim/proposals/admin/proposals/_form.html.erb