Adds translations and improve example content

This commit is contained in:
Alberto Garcia Cabeza
2016-07-28 19:21:53 +02:00
parent b69308b770
commit 3e892c6e76
4 changed files with 62 additions and 30 deletions

View File

@@ -47,6 +47,10 @@ body.admin {
th { th {
text-align: left; text-align: left;
&.with-button {
line-height: $line-height*2;
}
} }
tr { tr {

View File

@@ -31,9 +31,6 @@
</div> </div>
</div> </div>
<hr>
<!-- When admin created a new budget appears this -->
<div class="row"> <div class="row">
<div class="small-12 column"> <div class="small-12 column">
<h3 class="inline-block">Nombre del budget</h3> <h3 class="inline-block">Nombre del budget</h3>
@@ -41,20 +38,25 @@
<%= link_to t("admin.budgets.new.add_group"), "#", class: "button float-right" %> <%= link_to t("admin.budgets.new.add_group"), "#", class: "button float-right" %>
<form> <form>
<div class="input-group">
<span class="input-group-label">
<label><%= t("admin.budgets.new.group") %></label> <label><%= t("admin.budgets.new.group") %></label>
</span>
<input type="text" placeholder="<%= t("admin.budgets.new.group") %>"> <input type="text" placeholder="<%= t("admin.budgets.new.group") %>">
<div class="input-group-button">
<input type="submit" value="<%= t("admin.budgets.new.create_group") %>", class="button success">
</div>
</div>
</form> </form>
</div> </div>
</div> </div>
<hr>
<div class="row"> <div class="row">
<div class="small-12 column"> <div class="small-12 column">
<table> <table>
<thead> <thead>
<tr> <tr>
<th colspan="3"> <th colspan="3" class="with-button">
Nombre del grupo Nombre del grupo
<%= link_to t("admin.budgets.new.add_heading"), "#", class: "button float-right" %> <%= link_to t("admin.budgets.new.add_heading"), "#", class: "button float-right" %>
</th> </th>
@@ -79,30 +81,37 @@
<tr> <tr>
<td colspan="3"> <td colspan="3">
<form> <form>
<div class="input-group">
<span class="input-group-label">
<label><%= t("admin.budgets.new.heading") %></label> <label><%= t("admin.budgets.new.heading") %></label>
</span>
<input type="text" placeholder="<%= t("admin.budgets.new.heading") %>"> <input type="text" placeholder="<%= t("admin.budgets.new.heading") %>">
<div class="input-group-button">
<div class="row">
<div class="small-12 medium-6 column">
<label><%= t("admin.budgets.new.amount") %></label>
<input type="text" placeholder="<%= t("admin.budgets.new.amount") %>">
</div>
<div class="small-12 medium-6 column">
<label><%= t("admin.budgets.new.geozone") %></label>
<select>
<option><%= t("admin.budgets.new.no_geozone") %></option>
</select>
</div>
</div>
<input type="submit" value="<%= t("admin.budgets.new.save_heading") %>", class="button success"> <input type="submit" value="<%= t("admin.budgets.new.save_heading") %>", class="button success">
</div>
</div>
</form> </form>
</td> </td>
</tr> </tr>
<!-- headings --> <!-- /. new heading form -->
<!-- headings list -->
<tr> <tr>
<td> <td>
Heading 1 name Heading 1 name
</td> </td>
<td> <td>
9999 190.000
</td> </td>
<td> <td>
<select> Geozone B
<option><%= t("admin.budgets.new.table_geozone") %></option>
</select>
</td> </td>
</tr> </tr>
<tr> <tr>
@@ -110,12 +119,10 @@
Heading 2 name Heading 2 name
</td> </td>
<td> <td>
24000000€ 24.000.000€
</td> </td>
<td> <td>
<select> Does not apply
<option><%= t("admin.budgets.new.table_geozone") %></option>
</select>
</td> </td>
</tr> </tr>
<tr> <tr>
@@ -123,14 +130,13 @@
Heading 3 name Heading 3 name
</td> </td>
<td> <td>
1265000€ 1.265.000€
</td> </td>
<td> <td>
<select> Geozone A
<option><%= t("admin.budgets.new.table_geozone") %></option>
</select>
</td> </td>
</tr> </tr>
<!-- /. headings list -->
</tbody> </tbody>
</table> </table>
</div> </div>

View File

@@ -32,8 +32,6 @@ en:
editing: Edit banner editing: Edit banner
form: form:
submit_button: Save changes submit_button: Save changes
errors:
form:
errors: errors:
form: form:
error: error:
@@ -67,6 +65,26 @@ en:
filters: filters:
open: Open open: Open
finished: Finished finished: Finished
new:
title: New participatory budget
create: Create budget
name: Budget's name
description: Description
phase: Phase
currency: Currency
group: Group's name
add_group: Add new group
create_group: Create group
heading: Heading's name
add_heading: Add heading
amount: Amount
save_heading: Save heading
no_heading: This group has no assigned heading.
geozone: Scope of operation
no_geozone: Does not apply
table_heading: Heading
table_amount: Amount
table_geozone: Scope of operation
comments: comments:
index: index:
filter: Filter filter: Filter

View File

@@ -74,10 +74,14 @@ es:
currency: Divisa currency: Divisa
group: Nombre del grupo group: Nombre del grupo
add_group: Añadir nuevo grupo add_group: Añadir nuevo grupo
create_group: Crear grupo
heading: Nombre de la partida heading: Nombre de la partida
add_heading: Añadir partida add_heading: Añadir partida
amount: Cantidad
save_heading: Guardar partida save_heading: Guardar partida
no_heading: Este grupo no tiene ninguna partida asignada. no_heading: Este grupo no tiene ninguna partida asignada.
geozone: Ámbito de actuación
no_geozone: No aplica
table_heading: Partida table_heading: Partida
table_amount: Cantidad table_amount: Cantidad
table_geozone: Ámbito de actuación table_geozone: Ámbito de actuación