Sha256: e2bb2a1597eadc224198993075d6a927f6426fa0cc0341e44f7d9af68edd3086

Contents?: true

Size: 1.92 KB

Versions: 6

Compression:

Stored size: 1.92 KB

Contents

<div class="form__wrapper">
  <div class="card pt-4">
    <div class="card-section debate-fields">
       <div class="row column">
        <%= form.translated :text_field, :title, autofocus: true, class: "js-hashtags", hashtaggable: true, aria: { label: :title } %>
      </div>

       <div class="row column">
        <%= form.translated :editor, :description, hashtaggable: true, aria: { label: :description } %>
      </div>

      <div class="row column">
        <%= form.translated :editor, :instructions, aria: { label: :instructions } %>
      </div>

      <div class="row column">
        <%= form.translated :editor, :information_updates, aria: { label: :information_updates } %>
      </div>

      <div class="row column">
        <%= label_tag :debate_type, t(".debate_type") %>
        <div>
          <%= form.collection_radio_buttons(:finite, [[t(".finite"), true], [t(".open"), false]], :last, :first) do |builder|
            builder.label(class: "form__wrapper-checkbox-label") { builder.radio_button + builder.text } end %>
        </div>
      </div>

      <div class="row column debate-fields--finite">
        <div class="column">
          <%= form.datetime_field :start_time %>
        </div>
        <div class="column">
          <%= form.datetime_field :end_time %>
        </div>
      </div>

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

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

      <div class="row column">
        <%= form.check_box :comments_enabled, label: t("enabled", scope: "decidim.comments.admin.shared.availability_fields") %>
      </div>
    </div>
  </div>
</div>

<%= append_javascript_pack_tag "decidim_debates_admin" %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-debates-0.29.1 app/views/decidim/debates/admin/debates/_form.html.erb
decidim-debates-0.29.0 app/views/decidim/debates/admin/debates/_form.html.erb
decidim-debates-0.29.0.rc4 app/views/decidim/debates/admin/debates/_form.html.erb
decidim-debates-0.29.0.rc3 app/views/decidim/debates/admin/debates/_form.html.erb
decidim-debates-0.29.0.rc2 app/views/decidim/debates/admin/debates/_form.html.erb
decidim-debates-0.29.0.rc1 app/views/decidim/debates/admin/debates/_form.html.erb