- <%= f.select :heading_id, budget_heading_select_options(budget), { include_blank: true } %>
-
+ <%= f.select :heading_id, budget_heading_select_options(budget), { include_blank: true } %>
+
-
- <%= render "shared/globalize_locales", resource: investment %>
-
+
+ <%= render "shared/globalize_locales", resource: investment %>
+
+
+ <%= f.translatable_fields do |translations_form| %>
+
+ <%= translations_form.text_field :title,
+ maxlength: Budget::Investment.title_max_length,
+ data: suggest_data(investment) %>
+
+
+
+
+ <%= translations_form.text_area :description,
+ maxlength: Budget::Investment.description_max_length,
+ class: "html-area" %>
+
+ <% end %>
+
+ <%= f.invisible_captcha :subtitle %>
+
+ <% if feature?(:allow_images) %>
+
+ <%= render "images/nested_image", imageable: investment, f: f %>
+
+ <% end %>
+
+ <% if feature?(:allow_attached_documents) %>
+
+ <%= render "documents/nested_documents", documentable: investment, f: f %>
+
+ <% end %>
+
+ <% if feature?(:map) %>
+
+ <%= render "map_locations/form_fields",
+ form: f,
+ map_location: investment.map_location || MapLocation.new,
+ label: t("budgets.investments.form.map_location"),
+ help: t("budgets.investments.form.map_location_instructions"),
+ remove_marker_label: t("budgets.investments.form.map_remove_marker"),
+ parent_class: "budget_investment",
+ i18n_namespace: "budgets.investments" %>
+
+ <% end %>
+
+
+ <%= f.text_field :location %>
+
+
+
+ <%= f.text_field :organization_name %>
+
+
+
+ <%= f.label :tag_list, t("budgets.investments.form.tags_label") %>
+
<%= t("budgets.investments.form.tags_instructions") %>
+
+
- <%= f.translatable_fields do |translations_form| %>
-
- <%= translations_form.text_field :title,
- maxlength: Budget::Investment.title_max_length,
- data: suggest_data(investment) %>
-
-
+
+ <%= f.text_field :tag_list, value: investment.tag_list.to_s,
+ label: false,
+ placeholder: t("budgets.investments.form.tags_placeholder"),
+ aria: { describedby: "tags-list-help-text" },
+ class: "js-tag-list tag-autocomplete",
+ data: { js_url: suggest_tags_path } %>
+
-
- <%= translations_form.text_area :description,
- maxlength: Budget::Investment.description_max_length,
- class: "html-area" %>
-
- <% end %>
+ <%= render SDG::RelatedListSelectorComponent.new(f) %>
- <%= f.invisible_captcha :subtitle %>
-
- <% if feature?(:allow_images) %>
-
- <%= render "images/nested_image", imageable: investment, f: f %>
-
- <% end %>
-
- <% if feature?(:allow_attached_documents) %>
-
- <%= render "documents/nested_documents", documentable: investment, f: f %>
-
- <% end %>
-
- <% if feature?(:map) %>
-
- <%= render "map_locations/form_fields",
- form: f,
- map_location: investment.map_location || MapLocation.new,
- label: t("budgets.investments.form.map_location"),
- help: t("budgets.investments.form.map_location_instructions"),
- remove_marker_label: t("budgets.investments.form.map_remove_marker"),
- parent_class: "budget_investment",
- i18n_namespace: "budgets.investments" %>
-
- <% end %>
-
-
- <%= f.text_field :location %>
+ <% unless current_user.manager? %>
+
+ <%= f.check_box :terms_of_service,
+ title: t("form.accept_terms_title"),
+ label: t("form.accept_terms",
+ policy: link_to(t("form.policy"), "/privacy", target: "blank"),
+ conditions: link_to(t("form.conditions"), "/conditions", target: "blank")
+ ) %>
+ <% end %>
-
- <%= f.text_field :organization_name %>
-
-
-
- <%= f.label :tag_list, t("budgets.investments.form.tags_label") %>
-
<%= t("budgets.investments.form.tags_instructions") %>
-
-
-
-
- <%= f.text_field :tag_list, value: investment.tag_list.to_s,
- label: false,
- placeholder: t("budgets.investments.form.tags_placeholder"),
- aria: { describedby: "tags-list-help-text" },
- class: "js-tag-list tag-autocomplete",
- data: { js_url: suggest_tags_path } %>
-
-
- <%= render SDG::RelatedListSelectorComponent.new(f) %>
-
- <% unless current_user.manager? %>
-
-
- <%= f.check_box :terms_of_service,
- title: t("form.accept_terms_title"),
- label: t("form.accept_terms",
- policy: link_to(t("form.policy"), "/privacy", target: "blank"),
- conditions: link_to(t("form.conditions"), "/conditions", target: "blank")
- ) %>
-
-
- <% end %>
-
-
- <%= f.submit(nil, class: "button expanded") %>
-
+
+ <%= f.submit(nil, class: "button expanded") %>
<% end %>