Merge pull request #1499 from consul/budgets-design

Budgets design
This commit is contained in:
Juanjo Bazán
2017-04-24 13:51:43 +02:00
committed by GitHub
6 changed files with 13 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
<table> <table>
<thead> <thead>
<tr> <tr>
<th colspan="3" class="with-button"> <th colspan="2" class="with-button">
<%= group.name %> <%= group.name %>
<%= link_to t("admin.budgets.form.add_heading"), "#", class: "button float-right js-toggle-link", data: { "toggle-selector" => "#group-#{group.id}-new-heading-form" } %> <%= link_to t("admin.budgets.form.add_heading"), "#", class: "button float-right js-toggle-link", data: { "toggle-selector" => "#group-#{group.id}-new-heading-form" } %>
</th> </th>

View File

@@ -1,9 +1,5 @@
<%= back_link_to admin_budgets_path %> <%= back_link_to admin_budgets_path %>
<div class="row"> <h2><%= t("admin.budgets.edit.title") %></h2>
<div class="small-12 medium-9 column">
<h2><%= t("admin.budgets.edit.title") %></h2>
<%= render '/admin/budgets/form' %> <%= render '/admin/budgets/form' %>
</div>
</div>

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

@@ -215,7 +215,7 @@ es:
proposals: Propuestas proposals: Propuestas
poll_questions: Votaciones poll_questions: Votaciones
see_all: Ver propuestas see_all: Ver propuestas
budgets: Presupuestos ciudadanos budgets: Presupuestos participativos
spending_proposals: "Propuestas de inversión" spending_proposals: "Propuestas de inversión"
legislation: legislation:
help: help:

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