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