diff --git a/app/views/admin/spending_proposals/_spending_proposal_data_written_by_valuators.html.erb b/app/views/admin/spending_proposals/_spending_proposal_data_written_by_valuators.html.erb deleted file mode 100644 index e231d1d23..000000000 --- a/app/views/admin/spending_proposals/_spending_proposal_data_written_by_valuators.html.erb +++ /dev/null @@ -1,23 +0,0 @@ -
<%= t("admin.spending_proposals.show.price") %> (<%= t("admin.spending_proposals.show.currency") %>): - <%= @spending_proposal.price.present? ? @spending_proposal.price : t("admin.spending_proposals.show.undefined") %> -
-<%= t("admin.spending_proposals.show.price_first_year") %> (<%= t("admin.spending_proposals.show.currency") %>): - <%= @spending_proposal.price_first_year.present? ? @spending_proposal.price_first_year : t("admin.spending_proposals.show.undefined") %> -
-<%= simple_format(safe_html_with_links(@spending_proposal.price_explanation.html_safe), {}, sanitize: false) if @spending_proposal.price_explanation.present? %> - -<%= t("admin.spending_proposals.show.feasibility") %>: - <%= t("admin.spending_proposals.show.#{@spending_proposal.feasibility}") %> -
-<%= simple_format(safe_html_with_links(@spending_proposal.feasible_explanation.html_safe), {}, sanitize: false) if @spending_proposal.feasible_explanation.present? %> - -<% if @spending_proposal.valuation_finished %> -<%= t("admin.spending_proposals.show.valuation_finished") %> -<% end %> - -<% if @spending_proposal.internal_comments.present? %> -
+ + <%= t("admin.spending_proposals.show.price") %> + (<%= t("admin.spending_proposals.show.currency") %>): + + <% if @spending_proposal.price.present? %> + <%= @spending_proposal.price %> + <% else %> + <%= t("admin.spending_proposals.show.undefined") %> + <% end %> +
+ ++ + <%= t("admin.spending_proposals.show.price_first_year") %> + (<%= t("admin.spending_proposals.show.currency") %>): + + + <% if @spending_proposal.price_first_year.present? %> + <%= @spending_proposal.price_first_year %> + <% else %> + <%= t("admin.spending_proposals.show.undefined") %> + <% end %> +
+ +<%= explanation_field @spending_proposal.price_explanation %> + ++ <%= t("admin.spending_proposals.show.feasibility") %>: + <%= t("admin.spending_proposals.show.#{@spending_proposal.feasibility}") %> +
+ +<%= explanation_field @spending_proposal.feasible_explanation %> + +<% if @spending_proposal.valuation_finished %> ++ <%= t("admin.spending_proposals.show.valuation_finished") %> +
+<% end %> + +<% if @spending_proposal.internal_comments.present? %> +<%= t("valuation.spending_proposals.show.assigned_admin") %>: <% if @spending_proposal.administrator.present? %> - <%= @spending_proposal.administrator.name %> (<%= @spending_proposal.administrator.email %>) + <%= @spending_proposal.administrator.name_and_email %> <% else %> <%= t("valuation.spending_proposals.show.undefined") %> <% end %> @@ -42,7 +42,7 @@
- <%= t("valuation.spending_proposals.show.price") %> (<%= t("valuation.spending_proposals.show.currency") %>): - <%= @spending_proposal.price.presence or t("valuation.spending_proposals.show.undefined") %> + + <%= t("valuation.spending_proposals.show.price") %> + (<%= t("valuation.spending_proposals.show.currency") %>): + + + <% if @spending_proposal.price.present? %> + <%= @spending_proposal.price %> + <% else %> + <% t("valuation.spending_proposals.show.undefined") %> + <% end %>
+- <%= t("valuation.spending_proposals.show.price_first_year") %> (<%= t("valuation.spending_proposals.show.currency") %>): - <%= @spending_proposal.price_first_year.presence or t("valuation.spending_proposals.show.undefined") %> + + <%= t("valuation.spending_proposals.show.price_first_year") %> + (<%= t("valuation.spending_proposals.show.currency") %>): + + + <% if @spending_proposal.price_first_year.present? %> + <%= @spending_proposal.price_first_year %> + <% else %> + <%= t("valuation.spending_proposals.show.undefined") %> + <% end %>
<%= explanation_field @spending_proposal.price_explanation %><%= t("valuation.spending_proposals.show.time_scope") %>: - <%= @spending_proposal.time_scope.presence or t("valuation.spending_proposals.show.undefined") %> + <% if @spending_proposal.time_scope.present? %> + <%= @spending_proposal.time_scope %> + <% else %> + <%= t("valuation.spending_proposals.show.undefined") %> + <% end %>
@@ -81,12 +102,12 @@ <%= explanation_field @spending_proposal.feasible_explanation %> <% if @spending_proposal.valuation_finished %> -
+
<%= t("valuation.spending_proposals.show.valuation_finished") %>
<% end %> <% if @spending_proposal.internal_comments.present? %>