From f37cf1fc6334b14a921da9626add17cd5bf9f791 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Thu, 24 Sep 2015 11:01:39 +0200 Subject: [PATCH] displays missing confirmation code [#500] --- app/views/admin/verifications/index.html.erb | 7 +++++++ config/locales/admin.en.yml | 5 +++-- config/locales/admin.es.yml | 5 +++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/app/views/admin/verifications/index.html.erb b/app/views/admin/verifications/index.html.erb index 6921f16a7..ffeb4ebca 100644 --- a/app/views/admin/verifications/index.html.erb +++ b/app/views/admin/verifications/index.html.erb @@ -23,6 +23,13 @@
<%= t("admin.verifications.index.phone_not_given") %>
+ <% elsif !user.sms_verified? %> +
+ <%= user.unconfirmed_phone %> +
+
+ <%= t("admin.verifications.index.sms_code_not_confirmed") %> +
<% end %> <% end %> diff --git a/config/locales/admin.en.yml b/config/locales/admin.en.yml index e1d2a7305..4173e0f7e 100644 --- a/config/locales/admin.en.yml +++ b/config/locales/admin.en.yml @@ -102,8 +102,9 @@ en: index: title: Incomplete verifications search_placeholder: 'Search user by name or email' - search: Search - phone_not_given: Phone not given + search: 'Search' + phone_not_given: 'Phone not given' + sms_code_not_confirmed: 'Has not confirmed the sms code' officials: level_0: Not an official level_1: Level 1 diff --git a/config/locales/admin.es.yml b/config/locales/admin.es.yml index f126e2ecd..1c168c4f3 100644 --- a/config/locales/admin.es.yml +++ b/config/locales/admin.es.yml @@ -102,8 +102,9 @@ es: index: title: Verificaciones incompletas search_placeholder: 'Buscar usuario por nombre o email' - search: Buscar - phone_not_given: No ha dado su teléfono + search: 'Buscar' + phone_not_given: 'No ha dado su teléfono' + sms_code_not_confirmed: 'No ha introducido su código de seguridad' officials: level_0: "No es cargo público" level_1: Nivel 1