From 8a1704ad861a2f005b30a4d7bbccb43317c28f45 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Thu, 24 Sep 2015 10:54:28 +0200 Subject: [PATCH] displays phone not given [#500] --- app/views/admin/verifications/index.html.erb | 4 ++++ config/locales/admin.en.yml | 1 + config/locales/admin.es.yml | 1 + 3 files changed, 6 insertions(+) diff --git a/app/views/admin/verifications/index.html.erb b/app/views/admin/verifications/index.html.erb index ddd31d339..6921f16a7 100644 --- a/app/views/admin/verifications/index.html.erb +++ b/app/views/admin/verifications/index.html.erb @@ -19,6 +19,10 @@ <%= link_to user.name, admin_user_path(user) %> <% if !user.residence_verified? %> <%= render partial: 'failed_census_call', collection: user.failed_census_calls %> + <% elsif !user.verification_sms_sent? %> +
+ <%= t("admin.verifications.index.phone_not_given") %> +
<% end %> <% end %> diff --git a/config/locales/admin.en.yml b/config/locales/admin.en.yml index 43bafed70..e1d2a7305 100644 --- a/config/locales/admin.en.yml +++ b/config/locales/admin.en.yml @@ -103,6 +103,7 @@ en: title: Incomplete verifications search_placeholder: 'Search user by name or email' search: Search + phone_not_given: Phone not given 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 f52be0ae1..f126e2ecd 100644 --- a/config/locales/admin.es.yml +++ b/config/locales/admin.es.yml @@ -103,6 +103,7 @@ es: title: Verificaciones incompletas search_placeholder: 'Buscar usuario por nombre o email' search: Buscar + phone_not_given: No ha dado su teléfono officials: level_0: "No es cargo público" level_1: Nivel 1