Skip to content

Commit

Permalink
Use Slug as urlname field label
Browse files Browse the repository at this point in the history
The value entered in this field is the slug.
  • Loading branch information
tvdeyen committed Jun 2, 2020
1 parent e75927f commit 40ce6ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/alchemy/admin/pages/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</div>

<%= f.input :name, autofocus: true %>
<%= f.input :urlname, as: 'string', input_html: {value: @page.slug} %>
<%= f.input :urlname, as: 'string', input_html: {value: @page.slug}, label: Alchemy::Page.human_attribute_name(:slug) %>
<%= f.input :title,
input_html: {'data-alchemy-char-counter' => 60} %>

Expand Down
1 change: 1 addition & 0 deletions config/locales/alchemy.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,7 @@ en:
title: "Title"
updated_at: "Updated at"
urlname: "Urlname"
slug: "Slug"
visible: "visible in navigation"
alchemy/picture:
image_file_name: "Filename"
Expand Down

0 comments on commit 40ce6ae

Please sign in to comment.