From ba88f4d7cd207014e497bec1234bdc572e45273c Mon Sep 17 00:00:00 2001 From: rgarcia Date: Mon, 26 Dec 2016 12:04:14 +0100 Subject: [PATCH] takes into account asincronos processing --- .../admin/signature_sheets/show.html.erb | 38 ++++++++----------- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/app/views/admin/signature_sheets/show.html.erb b/app/views/admin/signature_sheets/show.html.erb index dfae240a2..d84284179 100644 --- a/app/views/admin/signature_sheets/show.html.erb +++ b/app/views/admin/signature_sheets/show.html.erb @@ -13,32 +13,24 @@ <%= @signature_sheet.document_numbers %> -<% if @signature_sheet.signatures.unverified.any? %> -
- - <%= t("admin.signature_sheets.show.verified", - count: @signature_sheet.signatures.verified.count ) %> - -
-
-

- - <%= t("admin.signature_sheets.show.unverified", - count: @signature_sheet.signatures.unverified.count ) %> - (No verificadas por el PadrĂ³n) - -

- <%= @signature_sheet.signatures.unverified.map(&:document_number).join(",") %> -
-<% else %> -
+
+ + <%= t("admin.signature_sheets.show.verified", + count: @signature_sheet.signatures.verified.count ) %> + +
+ +
+

- <%= t("admin.signature_sheets.show.all_verified", - count: @signature_sheet.signatures.verified.count ) %> + <%= t("admin.signature_sheets.show.unverified", + count: @signature_sheet.signatures.unverified.count ) %> + <%= t("admin.signature_sheets.show.unverified_error") %> -

-<% end %> +

+ <%= @signature_sheet.signatures.unverified.map(&:document_number).join(",") %> +
<% unless @signature_sheet.processed? %>