Adds missing i18n
This commit is contained in:
@@ -1,20 +1,20 @@
|
|||||||
<h2 class="inline-block">Documentos</h2>
|
<h2 class="inline-block"><%= t("admin.documents.index.title") %></h2>
|
||||||
|
|
||||||
<%= link_to t("admin.documents.index.new_link"),
|
<%= link_to t("admin.documents.index.new_link"),
|
||||||
new_admin_site_customization_document_path,
|
new_admin_site_customization_document_path,
|
||||||
class: "button float-right" %>
|
class: "button float-right" %>
|
||||||
|
|
||||||
|
<% if @documents.any? %>
|
||||||
<h3><%= page_entries_info @documents %></h3>
|
<h3><%= page_entries_info @documents %></h3>
|
||||||
|
|
||||||
<% if @documents.any? %>
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">Title</th>
|
<th scope="col"><%= t("admin.shared.title") %></th>
|
||||||
<th scope="col">Format</th>
|
<th scope="col"><%= t("admin.documents.index.format") %></th>
|
||||||
<th scope="col">Size</th>
|
<th scope="col"><%= t("admin.documents.index.size") %></th>
|
||||||
<th scope="col">Url</th>
|
<th scope="col"><%= t("admin.documents.index.url") %></th>
|
||||||
<th scope="col">Actions</th>
|
<th scope="col"><%= t("admin.shared.actions") %></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="documents">
|
<tbody id="documents">
|
||||||
@@ -26,10 +26,10 @@
|
|||||||
<td><%= link_to document.title, document.attachment.url, target: :blank %></td>
|
<td><%= link_to document.title, document.attachment.url, target: :blank %></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="small-12 medium-6 column">
|
<div class="small-12 medium-6 column">
|
||||||
<%= link_to "Destroy",
|
<%= link_to t("admin.shared.delete"),
|
||||||
admin_site_customization_document_path(document),
|
admin_site_customization_document_path(document),
|
||||||
method: :delete,
|
method: :delete,
|
||||||
data: { confirm: t('admin.actions.confirm') } %>
|
data: { confirm: t("admin.actions.confirm") } %>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -79,6 +79,9 @@ en:
|
|||||||
site_customization/content_block:
|
site_customization/content_block:
|
||||||
one: Custom content block
|
one: Custom content block
|
||||||
other: Custom content blocks
|
other: Custom content blocks
|
||||||
|
document:
|
||||||
|
one: Document
|
||||||
|
other: Documents
|
||||||
legislation/process:
|
legislation/process:
|
||||||
one: "Process"
|
one: "Process"
|
||||||
other: "Processes"
|
other: "Processes"
|
||||||
|
|||||||
@@ -441,11 +441,15 @@ en:
|
|||||||
documents:
|
documents:
|
||||||
new:
|
new:
|
||||||
title: "Upload a document"
|
title: "Upload a document"
|
||||||
file_field_text: "Choose document"
|
label_attachment: "Choose document"
|
||||||
submit_button: "Upload"
|
submit_button: "Upload"
|
||||||
index:
|
index:
|
||||||
new_link: "Add new document"
|
new_link: "Add new document"
|
||||||
no_documents: "There are no documents."
|
no_documents: "There are no documents."
|
||||||
|
title: "Documents"
|
||||||
|
format: "Format"
|
||||||
|
size: "Size"
|
||||||
|
url: "URL"
|
||||||
create:
|
create:
|
||||||
success_notice: "Document uploaded succesfully"
|
success_notice: "Document uploaded succesfully"
|
||||||
unable_notice: "Invalid document"
|
unable_notice: "Invalid document"
|
||||||
|
|||||||
@@ -79,6 +79,9 @@ es:
|
|||||||
site_customization/content_block:
|
site_customization/content_block:
|
||||||
one: Bloque
|
one: Bloque
|
||||||
other: Bloques
|
other: Bloques
|
||||||
|
document:
|
||||||
|
one: Documento
|
||||||
|
other: Documentos
|
||||||
legislation/process:
|
legislation/process:
|
||||||
one: "Proceso"
|
one: "Proceso"
|
||||||
other: "Procesos"
|
other: "Procesos"
|
||||||
|
|||||||
@@ -441,13 +441,18 @@ es:
|
|||||||
documents:
|
documents:
|
||||||
new:
|
new:
|
||||||
title: "Subir un documento"
|
title: "Subir un documento"
|
||||||
|
label_attachment: "Selecciona un documento"
|
||||||
submit_button: "Subir documento"
|
submit_button: "Subir documento"
|
||||||
index:
|
index:
|
||||||
|
title: "Documentos"
|
||||||
new_link: "Subir un documento"
|
new_link: "Subir un documento"
|
||||||
no_documents: "No hay documentos."
|
no_documents: "No hay documentos."
|
||||||
|
format: "Formato"
|
||||||
|
size: "Tamaño"
|
||||||
|
url: "URL"
|
||||||
create:
|
create:
|
||||||
success_notice: "Documento creado correctamente"
|
success_notice: "Documento creado correctamente"
|
||||||
unable_notice: "Document inválido"
|
unable_notice: "Documento inválido"
|
||||||
destroy:
|
destroy:
|
||||||
success_notice: "Documento borrado correctamente"
|
success_notice: "Documento borrado correctamente"
|
||||||
hidden_users:
|
hidden_users:
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ feature 'Documents' do
|
|||||||
visit admin_site_customization_documents_path
|
visit admin_site_customization_documents_path
|
||||||
|
|
||||||
within("#document_#{document.id}") do
|
within("#document_#{document.id}") do
|
||||||
accept_confirm { click_link "Destroy" }
|
accept_confirm { click_link "Delete" }
|
||||||
end
|
end
|
||||||
|
|
||||||
expect(page).to have_content "Document deleted succesfully"
|
expect(page).to have_content "Document deleted succesfully"
|
||||||
|
|||||||
Reference in New Issue
Block a user