improves valuation budget investment form

This commit is contained in:
Alberto Garcia Cabeza
2017-04-24 13:03:09 +02:00
parent d8bc2ef67d
commit 13c5eb9812
3 changed files with 9 additions and 9 deletions

View File

@@ -8,7 +8,7 @@
<%= form_for(@investment, url: valuate_valuation_budget_budget_investment_path(@budget, @investment), html: {id: "valuation_budget_investment_edit_form"}) do |f| %> <%= form_for(@investment, url: valuate_valuation_budget_budget_investment_path(@budget, @investment), html: {id: "valuation_budget_investment_edit_form"}) do |f| %>
<%= render 'shared/errors', resource: @investment %> <%= render 'shared/errors', resource: @investment %>
<div class="row"> <div class="row">
<div class="small-12 medium-8 column"> <div class="small-12 column">
<fieldset class="fieldset"> <fieldset class="fieldset">
<legend><%= t('valuation.budget_investments.edit.feasibility') %></legend> <legend><%= t('valuation.budget_investments.edit.feasibility') %></legend>
<div class="small-4 column"> <div class="small-4 column">
@@ -38,7 +38,7 @@
<div id="unfeasible_fields" > <div id="unfeasible_fields" >
<div class="row"> <div class="row">
<div class="small-12 medium-8 column"> <div class="small-12 column">
<%= f.label :unfeasibility_explanation, t("valuation.budget_investments.edit.feasible_explanation_html") %> <%= f.label :unfeasibility_explanation, t("valuation.budget_investments.edit.feasible_explanation_html") %>
<%= f.text_area :unfeasibility_explanation, label: false, rows: 3 %> <%= f.text_area :unfeasibility_explanation, label: false, rows: 3 %>
</div> </div>
@@ -49,26 +49,26 @@
<div id="feasible_fields"> <div id="feasible_fields">
<div class="row"> <div class="row">
<div class="small-12 medium-4 column"> <div class="small-12 medium-6 column">
<%= f.label :price, "#{t('valuation.budget_investments.edit.price_html', currency: @budget.currency_symbol)}" %> <%= f.label :price, "#{t('valuation.budget_investments.edit.price_html', currency: @budget.currency_symbol)}" %>
<%= f.number_field :price, label: false, max: 1000000000000000 %> <%= f.number_field :price, label: false, max: 1000000000000000 %>
</div> </div>
<div class="small-12 medium-4 column end"> <div class="small-12 medium-6 column end">
<%= f.label :price_first_year, "#{t('valuation.budget_investments.edit.price_first_year_html', currency: @budget.currency_symbol)}" %> <%= f.label :price_first_year, "#{t('valuation.budget_investments.edit.price_first_year_html', currency: @budget.currency_symbol)}" %>
<%= f.number_field :price_first_year, label: false, max: 1000000000000000 %> <%= f.number_field :price_first_year, label: false, max: 1000000000000000 %>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="small-12 medium-8 column"> <div class="small-12 column">
<%= f.label :price_explanation, t("valuation.budget_investments.edit.price_explanation_html") %> <%= f.label :price_explanation, t("valuation.budget_investments.edit.price_explanation_html") %>
<%= f.text_area :price_explanation, label: false, rows: 3 %> <%= f.text_area :price_explanation, label: false, rows: 3 %>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="small-12 medium-8 column"> <div class="small-12 medium-6 column">
<%= f.label :duration, t("valuation.budget_investments.edit.duration_html") %> <%= f.label :duration, t("valuation.budget_investments.edit.duration_html") %>
<%= f.text_field :duration, label: false %> <%= f.text_field :duration, label: false %>
</div> </div>
@@ -86,7 +86,7 @@
</div> </div>
<div class="row"> <div class="row">
<div class="small-12 medium-8 column"> <div class="small-12 column">
<%= f.label :internal_comments, t("valuation.budget_investments.edit.internal_comments_html") %> <%= f.label :internal_comments, t("valuation.budget_investments.edit.internal_comments_html") %>
<%= f.text_area :internal_comments, label: false, rows: 3 %> <%= f.text_area :internal_comments, label: false, rows: 3 %>
</div> </div>

View File

@@ -61,7 +61,7 @@ en:
edit: edit:
dossier: Dossier dossier: Dossier
price_html: "Price (%{currency})" price_html: "Price (%{currency})"
price_first_year_html: "Cost during the first year (%{currency})" price_first_year_html: "Cost during the first year (%{currency}) <small>(optional, data not public)</small>"
price_explanation_html: Price explanation price_explanation_html: Price explanation
feasibility: Feasibility feasibility: Feasibility
feasible: Feasible feasible: Feasible

View File

@@ -61,7 +61,7 @@ es:
edit: edit:
dossier: Informe dossier: Informe
price_html: "Coste (%{currency}) <small>(dato público)</small>" price_html: "Coste (%{currency}) <small>(dato público)</small>"
price_first_year_html: "Coste en el primer año (%{currency}) <small>(opcional, privado)</small>" price_first_year_html: "Coste en el primer año (%{currency}) <small>(opcional, dato no público)</small>"
price_explanation_html: "Informe de coste <small>(opcional, dato público)</small>" price_explanation_html: "Informe de coste <small>(opcional, dato público)</small>"
feasibility: Viabilidad feasibility: Viabilidad
feasible: Viable feasible: Viable