diff options
author | Kyle Wilkinson <kai@wikyd.org> | 2011-06-16 22:48:30 -0700 |
---|---|---|
committer | Kyle Wilkinson <kai@wikyd.org> | 2011-06-16 22:52:40 -0700 |
commit | e1390a0d72e2dc35f1306d11e1e756c138903572 (patch) | |
tree | c636f7d56e9c9d03c987d0a54a77af8238383739 | |
parent | ec405cdbea1d286da947b3b134dbc156b3e88f8e (diff) | |
download | refinerycms-blog-e1390a0d72e2dc35f1306d11e1e756c138903572.tar.gz refinerycms-blog-e1390a0d72e2dc35f1306d11e1e756c138903572.tar.bz2 refinerycms-blog-e1390a0d72e2dc35f1306d11e1e756c138903572.zip |
Add field to edit custom url on BlogPosts.
-rw-r--r-- | app/views/admin/blog/posts/_form.html.erb | 9 | ||||
-rw-r--r-- | config/locales/en.yml | 4 |
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 |