From b69308b770781e054ec4c5c67b49b0ce6b54d5e9 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Thu, 28 Jul 2016 13:04:30 +0200 Subject: [PATCH] Adds example content for admin budget new --- app/assets/stylesheets/admin.scss | 5 + app/controllers/admin/budgets_controller.rb | 3 + app/views/admin/budgets/new.html.erb | 137 ++++++++++++++++++++ config/locales/admin.es.yml | 16 +++ 4 files changed, 161 insertions(+) create mode 100644 app/views/admin/budgets/new.html.erb diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index cd8241fca..11a481c1e 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -36,6 +36,11 @@ body.admin { input[type="text"], textarea { width: 100%; } + + .input-group input[type="text"] { + border-radius: 0; + margin-bottom: 0 !important; + } } table { diff --git a/app/controllers/admin/budgets_controller.rb b/app/controllers/admin/budgets_controller.rb index a2f92a39e..7953aae75 100644 --- a/app/controllers/admin/budgets_controller.rb +++ b/app/controllers/admin/budgets_controller.rb @@ -6,4 +6,7 @@ class Admin::BudgetsController < Admin::BaseController @budgets = Budget.send(@current_filter).order(created_at: :desc).page(params[:page]) end + def new + end + end diff --git a/app/views/admin/budgets/new.html.erb b/app/views/admin/budgets/new.html.erb new file mode 100644 index 000000000..66484f7b4 --- /dev/null +++ b/app/views/admin/budgets/new.html.erb @@ -0,0 +1,137 @@ +
+
+

<%= t("admin.budgets.new.title") %>

+ +
+ + "> + + +
+
+ +
+
+ +
+
+ " class="button success"> +
+
+
+ +
+ + +
+
+

Nombre del budget

+ + <%= link_to t("admin.budgets.new.add_group"), "#", class: "button float-right" %> + +
+ + "> +
+
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Nombre del grupo + <%= link_to t("admin.budgets.new.add_heading"), "#", class: "button float-right" %> +
<%= t("admin.budgets.new.table_heading") %><%= t("admin.budgets.new.table_amount") %><%= t("admin.budgets.new.table_geozone") %>
+
+ <%= t("admin.budgets.new.no_heading") %> +
+
+
+
+ + + + "> +
+ ", class="button success"> +
+
+
+
+ Heading 1 name + + 9999€ + + +
+ Heading 2 name + + 24000000€ + + +
+ Heading 3 name + + 1265000€ + + +
+
+
diff --git a/config/locales/admin.es.yml b/config/locales/admin.es.yml index c5f0df247..0045eebfe 100644 --- a/config/locales/admin.es.yml +++ b/config/locales/admin.es.yml @@ -65,6 +65,22 @@ es: filters: open: Abiertos finished: Terminados + new: + title: Nuevo presupuesto ciudadano + create: Crear presupuesto + name: Nombre del presupuesto + description: Descripción + phase: Fase + currency: Divisa + group: Nombre del grupo + add_group: Añadir nuevo grupo + heading: Nombre de la partida + add_heading: Añadir partida + save_heading: Guardar partida + no_heading: Este grupo no tiene ninguna partida asignada. + table_heading: Partida + table_amount: Cantidad + table_geozone: Ámbito de actuación comments: index: filter: Filtro