From 83b44fd53aba3879b73ce2905a9f8cb617f045f4 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Sat, 5 Sep 2015 00:34:18 +0200 Subject: [PATCH] Improves layout, adds link to checkbox's label --- app/views/debates/_form.html.erb | 9 ++++++++- app/views/layouts/_admin_header.html.erb | 2 +- app/views/pages/more_information.html.erb | 2 +- config/locales/en.yml | 6 ++++-- config/locales/es.yml | 6 ++++-- 5 files changed, 18 insertions(+), 7 deletions(-) diff --git a/app/views/debates/_form.html.erb b/app/views/debates/_form.html.erb index 334c444cf..313ec29a3 100644 --- a/app/views/debates/_form.html.erb +++ b/app/views/debates/_form.html.erb @@ -25,7 +25,12 @@
<% if @debate.new_record? %> - <%= f.check_box :terms_of_service, label: t("form.accept_terms") %> + <%= f.label :terms_of_service do %> + <%= f.check_box :terms_of_service, label: false %> + <%= t("form.accept_terms", + policy: link_to(t("form.policy"), "/privacy", target: "blank"), conditions: link_to(t("form.conditions"), "/conditions", target: "blank")).html_safe + %> + <% end %> <% end %>
@@ -38,3 +43,5 @@ <% end %> + + diff --git a/app/views/layouts/_admin_header.html.erb b/app/views/layouts/_admin_header.html.erb index fdc1d6c6e..a39906aa7 100644 --- a/app/views/layouts/_admin_header.html.erb +++ b/app/views/layouts/_admin_header.html.erb @@ -14,7 +14,7 @@ <%= t("layouts.header.open_gov", open: "#{t('layouts.header.open')}").html_safe %> | <%= t("admin.dashboard.index.title") %> <% end %> - +
diff --git a/app/views/pages/more_information.html.erb b/app/views/pages/more_information.html.erb index 12bf34085..55cc19541 100644 --- a/app/views/pages/more_information.html.erb +++ b/app/views/pages/more_information.html.erb @@ -1,6 +1,6 @@
-
+

Más información