Sha256: 2ce5060b778dc9b4cd59e1c7a5e4f8c4aa95a9f4100d9dfd90ad1f6c382a5438

Contents?: true

Size: 1.99 KB

Versions: 31

Compression:

Stored size: 1.99 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.translated :text_field, :title, autofocus: true %>
    </div>

    <div class="row column">
      <%= form.translated :editor, :description %>
    </div>

    <% if @form.parent_id %>

      <div class="row column">
        <%= form.select :parent_id, parent_results.map{|result| [translated_attribute(result.title), result.id] }, include_blank: true %>
      </div>

    <% else %>

      <% if current_component.has_subscopes? %>
        <div class="row column">
          <%= scopes_picker_field form, :decidim_scope_id, root: current_component.scope %>
        </div>
      <% end %>

      <div class="row column">
        <%= form.categories_select :decidim_category_id, current_participatory_space.categories, include_blank: true, disable_parents: false %>
      </div>

    <% end %>

    <div class="row">
      <div class="columns xlarge-6">
        <%= form.date_field :start_date %>
      </div>

      <div class="columns xlarge-6">
        <%= form.date_field :end_date %>
      </div>
    </div>

    <div class="row">
      <div class="columns xlarge-6">
        <%= form.select :decidim_accountability_status_id, statuses.map{|status| [translated_attribute(status.name), status.id, { "data-progress" => status.progress }] }, include_blank: true %>
      </div>

      <div class="columns xlarge-6">
        <%= form.number_field :progress %>
      </div>
    </div>

    <% if Decidim::Accountability.enable_proposal_linking %>
      <div class="row column">
        <%= proposals_picker(form, :proposals, proposals_picker_results_path) %>
      </div>
    <% end %>

    <div class="row column">
      <% if @form.projects %>
        <%= form.select :project_ids,
                        @form.projects,
                        {},
                        { multiple: true, class: "chosen-select" } %>
      <% end %>
    </div>

  </div>
</div>

Version data entries

31 entries across 31 versions & 1 rubygems

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