Add help text to slug on admin new site customization pages

This commit is contained in:
decabeza
2019-05-14 11:35:24 +02:00
parent d845c6e973
commit 8fda0bfb6c
3 changed files with 8 additions and 6 deletions

View File

@@ -18,22 +18,22 @@
<hr> <hr>
</div> </div>
<div class="small-12 medium-5 column"> <div class="small-12 medium-4 column">
<h3><%= t("admin.site_customization.pages.form.options") %></h3> <h3><%= t("admin.site_customization.pages.form.options") %></h3>
<%= f.check_box :more_info_flag, class: "small" %>
<%= f.check_box :print_content_flag %>
</div>
<div class="small-12 medium-3 column">
<%= f.label :status %> <%= f.label :status %>
<% ::SiteCustomization::Page::VALID_STATUSES.each do |status| %> <% ::SiteCustomization::Page::VALID_STATUSES.each do |status| %>
<%= f.radio_button :status, status, label: false %> <%= f.radio_button :status, status, label: false %>
<%= f.label "status_#{status}", t("admin.site_customization.pages.page.status_#{status}") %> <%= f.label "status_#{status}", t("admin.site_customization.pages.page.status_#{status}") %>
<br> <br>
<% end %> <% end %>
<%= f.check_box :more_info_flag, class: "small" %>
<%= f.check_box :print_content_flag %>
</div> </div>
<div class="small-12 medium-4 column"> <div class="small-12 medium-6 column">
<%= f.label :slug %> <%= f.label :slug %>
<p class="help-text"><%= t("admin.site_customization.pages.new.slug_help_html") %>
<%= f.text_field :slug, label: false, size: 80, maxlength: 80 %> <%= f.text_field :slug, label: false, size: 80, maxlength: 80 %>
</div> </div>
<div class="small-12 column"> <div class="small-12 column">

View File

@@ -1600,6 +1600,7 @@ en:
see_page: See page see_page: See page
new: new:
title: Create new custom page title: Create new custom page
slug_help_html: "Text to identify this page on URL, for example <code>https://consulproject.org/page-slug</code>"
page: page:
created_at: Created at created_at: Created at
status: Status status: Status

View File

@@ -1599,6 +1599,7 @@ es:
see_page: Ver página see_page: Ver página
new: new:
title: Página nueva title: Página nueva
slug_help_html: "Texto que identifica esta página en la URL, por ejemplo <code>https://consulproject.org/slug-de-pagina</code>"
page: page:
created_at: Creada created_at: Creada
status: Estado status: Estado