<%= link_to "#{t('valuation.spending_proposals.show.heading')} #{@spending_proposal.id}", valuation_spending_proposal_path(@spending_proposal), class: 'back' %>

<%= t("valuation.spending_proposals.edit.dossier") %>

<%= form_for(@spending_proposal, url: valuate_valuation_spending_proposal_path(@spending_proposal), html: {id: "valuation_spending_proposal_edit_form"}) do |f| %> <%= render 'shared/errors', resource: @spending_proposal %>
<%= t('valuation.spending_proposals.edit.feasibility') %>
<%= f.radio_button :feasible, :nil, label: false, checked: @spending_proposal.feasible.nil? %> <%= f.label :feasible_nil, t('valuation.spending_proposals.edit.undefined_feasible') %>
<%= f.radio_button :feasible, true, value: true, label: false %> <%= f.label :feasible_true, t('valuation.spending_proposals.edit.feasible') %>
<%= f.radio_button :feasible, false, value: false, label: false %> <%= f.label :feasible_false, t('valuation.spending_proposals.edit.not_feasible') %>
<%= f.label :feasible_explanation, t("valuation.spending_proposals.edit.feasible_explanation_html") %> <%= f.text_area :feasible_explanation, label: false, rows: 3 %>
<%= f.label :price, "#{t('valuation.spending_proposals.edit.price_html', currency: t('valuation.spending_proposals.edit.currency'))}" %> <%= f.number_field :price, label: false, max: 1000000000000000 %>
<%= f.label :price_first_year, "#{t('valuation.spending_proposals.edit.price_first_year_html', currency: t('valuation.spending_proposals.edit.currency'))}" %> <%= f.number_field :price_first_year, label: false, max: 1000000000000000 %>
<%= f.label :price_explanation, t("valuation.spending_proposals.edit.price_explanation_html") %> <%= f.text_area :price_explanation, label: false, rows: 3 %>
<%= f.label :time_scope, t("valuation.spending_proposals.edit.time_scope_html") %> <%= f.text_field :time_scope, label: false %>
<%= f.label :valuation_finished do %> <%= f.check_box :valuation_finished, title: t('valuation.spending_proposals.edit.valuation_finished'), label: false %> <%= t("valuation.spending_proposals.edit.valuation_finished") %> <% end %>
<%= f.label :internal_comments, t("valuation.spending_proposals.edit.internal_comments_html") %> <%= f.text_area :internal_comments, label: false, rows: 3 %>
<%= f.submit(class: "button expanded large", value: t("valuation.spending_proposals.edit.save")) %>
<% end %>

<%= @spending_proposal.title %>

<%= safe_html_with_links @spending_proposal.description %> <% if @spending_proposal.external_url.present? %>

<%= text_with_links @spending_proposal.external_url %>

<% end %>

<%= t("valuation.spending_proposals.show.info") %>

<%= t("valuation.spending_proposals.show.by") %>: <%= link_to @spending_proposal.author.name, user_path(@spending_proposal.author) %>

<% if @spending_proposal.association_name.present? %>

<%= t("valuation.spending_proposals.show.association_name") %>: <%= @spending_proposal.association_name %>

<% end %>

<%= t("valuation.spending_proposals.show.geozone") %>: <%= geozone_name(@spending_proposal) %>

<%= t("valuation.spending_proposals.show.sent") %>: <%= l @spending_proposal.created_at, format: :datetime %>

<%= t("valuation.spending_proposals.show.responsibles") %>

<%= t("valuation.spending_proposals.show.assigned_admin") %>: <% if @spending_proposal.administrator.present? %> <%= @spending_proposal.administrator.name %> (<%= @spending_proposal.administrator.email %>) <% else %> <%= t("valuation.spending_proposals.show.undefined") %> <% end %>

<%= t("valuation.spending_proposals.show.assigned_valuators") %>: