app/views/decidim/debates/admin/debates/_form.html.erb in decidim-debates-0.23.6 vs app/views/decidim/debates/admin/debates/_form.html.erb in decidim-debates-0.24.0.rc1
- old
+ new
@@ -1,11 +1,11 @@
<div class="card">
<div class="card-divider">
<h2 class="card-title"><%= title %></h2>
</div>
- <div class="card-section">
+ <div class="card-section debate-fields">
<div class="row column hashtags__container">
<%= form.translated :text_field, :title, autofocus: true, class: "js-hashtags", hashtaggable: true %>
</div>
<div class="row column hashtags__container">
@@ -18,19 +18,32 @@
<div class="row column">
<%= form.translated :editor, :information_updates %>
</div>
- <div class="row">
+ <div class="row column">
+ <%= label_tag :debate_type, t(".debate_type") %>
+ <%= form.collection_radio_buttons(:finite, [[t(".finite"), true], [t(".open"), false]], :last, :first) %>
+ </div>
+
+ <div class="row debate-fields--finite">
<div class="column xlarge-6">
<%= form.datetime_field :start_time %>
</div>
<div class="column xlarge-6">
<%= form.datetime_field :end_time %>
</div>
</div>
+ <% if current_component.has_subscopes? %>
+ <div class="row column">
+ <%= scopes_picker_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>
</div>
+
+<%= javascript_include_tag "decidim/debates/admin/debates" %>