Add information about content blocks

This commit is contained in:
Fernando Blat
2017-04-06 08:37:46 +02:00
committed by Amaia Castro
parent 3a275ea850
commit e126a2ded0
3 changed files with 24 additions and 1 deletions

View File

@@ -15,7 +15,6 @@
<% end %> <% end %>
<div class="small-12 medium-6 column"> <div class="small-12 medium-6 column">
<%= f.label :name %> <%= f.label :name %>
<%= f.select :name, SiteCustomization::ContentBlock::VALID_BLOCKS, label: false %> <%= f.select :name, SiteCustomization::ContentBlock::VALID_BLOCKS, label: false %>
@@ -32,3 +31,17 @@
</div> </div>
<% end %> <% end %>
<h4><%= t('.content_blocks_information') %></h4>
<p><%= t('.content_block_about') %></p>
<p><%= t('.content_block_top_links_html') %></p>
<pre>
&lt;li&gt;&lt;a href=&quot;http://site1.com&quot;&gt;Site 1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://site2.com&quot;&gt;Site 2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://site3.com&quot;&gt;Site 3&lt;/a&gt;&lt;/li&gt;
</pre>
<br>
<p><%= t('.content_block_footer_html') %></p>

View File

@@ -481,6 +481,11 @@ en:
title: Incomplete verifications title: Incomplete verifications
site_customization: site_customization:
content_blocks: content_blocks:
form:
content_blocks_information: Information about content blocks
content_block_about: You can create HTML content blocks to be inserted in the header or the footer of your Consul.
content_block_top_links_html: "<strong>Header blocks (top_links)</strong> are blocks of links that must have this format:"
content_block_footer_html: "<strong>Footer blocks</strong> can have any format and can be used to insert Javascript, CSS or custom HTML."
create: create:
notice: Content block created successfully notice: Content block created successfully
error: Content block couldn't be created error: Content block couldn't be created

View File

@@ -481,6 +481,11 @@ es:
title: Verificaciones incompletas title: Verificaciones incompletas
site_customization: site_customization:
content_blocks: content_blocks:
form:
content_blocks_information: Información sobre los bloques de texto
content_block_about: Puedes crear bloques de HTML que se incrustarán en la cabecera o el pie de tu Cónsul.
content_block_top_links_html: "Los <strong>bloques de la cabecera (top_links)</strong> son bloques de enlaces que deben crearse con este formato:"
content_block_footer_html: "Los <strong>bloques del pie (footer)</strong> pueden tener cualquier formato y se pueden utilizar para guardar huellas Javascript, contenido CSS o contenido HTML personalizado."
create: create:
notice: Bloque creado correctamente notice: Bloque creado correctamente
error: No se ha podido crear el bloque error: No se ha podido crear el bloque