aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/admin/blog/posts/_form.html.erb9
-rw-r--r--config/locales/en.yml4
2 files changed, 12 insertions, 1 deletions
diff --git a/app/views/admin/blog/posts/_form.html.erb b/app/views/admin/blog/posts/_form.html.erb
index c0467fd..abff4f2 100644
--- a/app/views/admin/blog/posts/_form.html.erb
+++ b/app/views/admin/blog/posts/_form.html.erb
@@ -73,6 +73,15 @@
</ul>
<h3><%= t('.published_at') %></h3>
<%= f.datetime_select :published_at %>
+
+ <div class='field'>
+ <span class='label_with_help'>
+ <%= f.label :custom_url, t('.custom_url') %>
+ <%= refinery_help_tag t('.custom_url_help') %>
+ </span>
+ <%= f.text_field :custom_url, :class => "widest" %>
+ </div>
+
</div>
<div class='hemisquare right_side'>
<%= render :partial => '/seo_meta/form', :locals => {:form => f} %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index eb886a9..a4ad0fd 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -38,6 +38,8 @@ en:
toggle_advanced_options: Click to access meta tag settings and menu options
save_as_draft: Save as Draft
published_at: Publish Date
+ custom_url: Custom Url
+ custom_url_help: Generate the url for the blog post from this text instead of the title.
index:
no_items_yet: 'There are no Blog Posts yet. Click "%{create}" to add your first blog post.'
uncategorized:
@@ -150,4 +152,4 @@ en:
message: Message
blog_post:
title: Title
- body: Body \ No newline at end of file
+ body: Body