66 lines
2.1 KiB
Plaintext
66 lines
2.1 KiB
Plaintext
<%= form_for(@investment, url: form_url, method: :post) do |f| %>
|
|
<%= render 'shared/errors', resource: @investment %>
|
|
|
|
<div class="row">
|
|
<div class="small-12 column">
|
|
<%= f.select :heading_id, budget_heading_select_options(@budget), include_blank: true %>
|
|
</div>
|
|
|
|
<div class="small-12 column">
|
|
<%= f.text_field :title, maxlength: SpendingProposal.title_max_length %>
|
|
</div>
|
|
|
|
<%= f.invisible_captcha :subtitle %>
|
|
|
|
<div class="ckeditor small-12 column">
|
|
<%= f.cktext_area :description, maxlength: SpendingProposal.description_max_length, ckeditor: { language: I18n.locale } %>
|
|
</div>
|
|
|
|
<div class="small-12 column">
|
|
<%= f.text_field :external_url %>
|
|
</div>
|
|
|
|
<div class="small-12 column">
|
|
<%= f.text_field :location %>
|
|
</div>
|
|
|
|
<div class="small-12 column">
|
|
<%= f.label :tag_list, t("budget.investments.form.tags_label") %>
|
|
<p class="note"><%= t("budget.investments.form.tags_instructions") %></p>
|
|
|
|
<div id="category_tags" class="tags">
|
|
<%= f.label :category_tag_list, t("budget.investments.form.tag_category_label") %>
|
|
<% @categories.each do |tag| %>
|
|
<a class="js-add-tag-link"><%= tag.name %></a>
|
|
<% end %>
|
|
</div>
|
|
|
|
<br>
|
|
<%= f.text_field :tag_list, value: @investment.tag_list.to_s,
|
|
label: false,
|
|
placeholder: t("budget.investments.form.tags_placeholder"),
|
|
class: 'js-tag-list' %>
|
|
</div>
|
|
|
|
|
|
<% unless current_user.manager? %>
|
|
|
|
<div class="small-12 column">
|
|
<%= f.label :terms_of_service do %>
|
|
<%= f.check_box :terms_of_service, title: t('form.accept_terms_title'), label: false %>
|
|
<span class="checkbox">
|
|
<%= t("form.accept_terms",
|
|
policy: link_to(t("form.policy"), "/privacy", target: "blank"),
|
|
conditions: link_to(t("form.conditions"), "/conditions", target: "blank")).html_safe %>
|
|
</span>
|
|
<% end %>
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<div class="actions small-12 column">
|
|
<%= f.submit(nil, class: "button") %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|