updates views
This commit is contained in:
@@ -13,30 +13,29 @@
|
||||
<%= @signature_sheet.document_numbers %>
|
||||
</div>
|
||||
|
||||
<% if @signature_sheet.signatures.invalid.any? %>
|
||||
<% if @signature_sheet.signatures.unverified.any? %>
|
||||
<div class="callout success">
|
||||
<strong>
|
||||
<%= t("admin.signature_sheets.show.valid",
|
||||
count: @signature_sheet.signatures.valid.count ) %>
|
||||
<%= t("admin.signature_sheets.show.verified",
|
||||
count: @signature_sheet.signatures.verified.count ) %>
|
||||
</strong>
|
||||
</div>
|
||||
<% @invalid_signatures.each do |error, signatures| %>
|
||||
<div class="callout alert">
|
||||
<p>
|
||||
<strong>
|
||||
<%= t("admin.signature_sheets.show.invalid",
|
||||
count: @signature_sheet.signatures.invalid.count ) %>
|
||||
(<%= error %>)
|
||||
</strong>
|
||||
</p>
|
||||
<%= signatures.map(&:document_number).join(",") %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="callout alert">
|
||||
<p>
|
||||
<strong>
|
||||
<%= t("admin.signature_sheets.show.unverified",
|
||||
count: @signature_sheet.signatures.unverified.count ) %>
|
||||
(No verificadas por el Padrón)
|
||||
</strong>
|
||||
</p>
|
||||
<%= @signature_sheet.signatures.unverified.map(&:document_number).join(",") %>
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="callout success">
|
||||
<strong>
|
||||
<%= t("admin.signature_sheets.show.all_valid",
|
||||
count: @signature_sheet.signatures.valid.count ) %>
|
||||
<%= t("admin.signature_sheets.show.all_verified",
|
||||
count: @signature_sheet.signatures.verified.count ) %>
|
||||
</strong>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -313,9 +313,9 @@ en:
|
||||
created_at: Created
|
||||
author: Author
|
||||
documents: Documents
|
||||
all_valid: "All the signatures (%{count}) are valid"
|
||||
valid: "There are %{count} valid signatures"
|
||||
invalid: "There are %{count} invalid signatures"
|
||||
all_verified: "All the signatures (%{count}) are valid"
|
||||
verified: "There are %{count} valid signatures"
|
||||
unverified: "There are %{count} invalid signatures"
|
||||
loading: "There are still signatures that are being verified by the Census, please refresh the page in a few moments"
|
||||
stats:
|
||||
show:
|
||||
|
||||
@@ -311,9 +311,9 @@ es:
|
||||
created_at: Creado
|
||||
author: Autor
|
||||
documents: Documentos
|
||||
all_valid: "Todas las firmas introducidas (%{count}) son válidas"
|
||||
valid: "Hay %{count} firmas válidas"
|
||||
invalid: "Hay %{count} firmas inválidas"
|
||||
all_verified: "Todas las firmas introducidas (%{count}) son válidas"
|
||||
verified: "Hay %{count} firmas válidas"
|
||||
unverified: "Hay %{count} firmas inválidas"
|
||||
loading: "Aún hay firmas que se están verificando por el Padrón, por favor refresca la página en unos instantes"
|
||||
stats:
|
||||
show:
|
||||
|
||||
@@ -330,7 +330,7 @@ ActiveRecord::Schema.define(version: 20161214233817) do
|
||||
t.integer "signable_id"
|
||||
t.string "signable_type"
|
||||
t.text "document_numbers"
|
||||
t.boolean "processed"
|
||||
t.boolean "processed", default: false
|
||||
t.integer "author_id"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
@@ -340,7 +340,7 @@ ActiveRecord::Schema.define(version: 20161214233817) do
|
||||
t.integer "signature_sheet_id"
|
||||
t.integer "user_id"
|
||||
t.string "document_number"
|
||||
t.string "status"
|
||||
t.boolean "verified", default: false
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user