decidim-budgets/app/views/decidim/budgets/admin/projects/_form.html.erb in decidim-0.4.4 vs decidim-budgets/app/views/decidim/budgets/admin/projects/_form.html.erb in decidim-0.5.0
- old
+ new
@@ -14,13 +14,13 @@
<div class="row column" >
<%= form.number_field :budget %>
</div>
- <% if !current_participatory_process.scope %>
+ <% if current_participatory_process.has_subscopes? %>
<div class="row column" >
- <%= form.collection_select :decidim_scope_id, organization_scopes, :id, :name %>
+ <%= form.scopes_select :decidim_scope_id, prompt: I18n.t("decidim.scopes.global"), remote_path: decidim.scopes_search_path(root: current_participatory_process.scope) %>
</div>
<% end %>
<div class="row column" >
<%= form.categories_select :decidim_category_id, current_participatory_process.categories, include_blank: true, disable_parents: false %>
@@ -34,6 +34,6 @@
{ multiple: true, class: "chosen-select" }
%>
<% end %>
</div>
</div>
-</div>
\ No newline at end of file
+</div>