%= form_for(@investment, url: form_url, method: :post, html: { multipart: true }) do |f| %>
<%= render 'shared/errors', resource: @investment %>
<%= f.select :heading_id, budget_heading_select_options(@budget), {include_blank: true, } %>
<%= f.text_field :title, maxlength: SpendingProposal.title_max_length, data: { js_suggest_result: "js_suggest_result", js_suggest: "#js-suggest", js_url: suggest_budget_investments_path(@budget) }%>
<%= f.invisible_captcha :subtitle %>
<%= f.cktext_area :description, maxlength: SpendingProposal.description_max_length, ckeditor: { language: I18n.locale } %>
<%= f.text_field :external_url %>
<%= render 'documents/nested_documents', documentable: @investment %>
<%= 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.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} %>
<%= f.file_field :image, accept: 'image/jpeg' %>
<%= f.text_field :image_description %>
<% unless current_user.manager? %>
<%= f.label :terms_of_service do %>
<%= f.check_box :terms_of_service, title: t('form.accept_terms_title'), label: false %>
<%= t("form.accept_terms",
policy: link_to(t("form.policy"), "/privacy", target: "blank"),
conditions: link_to(t("form.conditions"), "/conditions", target: "blank")).html_safe %>
<% end %>
<% end %>
<%= f.submit(nil, class: "button expanded") %>
<% end %>