diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2013-12-23 20:25:47 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2013-12-23 20:25:47 +0100 |
commit | 595b16a783b7a99cadbf7cd61086ead32c6298a9 (patch) | |
tree | fcb063b0a4eaf8d138706c9b067d30de00b272bc /app/views | |
parent | 8b8e9cd1224f0f573017bc236d76c0f8ccd657ee (diff) | |
download | hmnoweb-595b16a783b7a99cadbf7cd61086ead32c6298a9.tar.gz hmnoweb-595b16a783b7a99cadbf7cd61086ead32c6298a9.tar.bz2 hmnoweb-595b16a783b7a99cadbf7cd61086ead32c6298a9.zip |
Add sidebar_position field to blog categories.
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/refinery/blog/admin/categories/_form.html.erb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/views/refinery/blog/admin/categories/_form.html.erb b/app/views/refinery/blog/admin/categories/_form.html.erb new file mode 100644 index 0000000..3af3fc9 --- /dev/null +++ b/app/views/refinery/blog/admin/categories/_form.html.erb @@ -0,0 +1,24 @@ +<%= form_for [refinery, :blog_admin, @category] do |f| -%> + <%= render :partial => "/refinery/admin/error_messages", + :locals => { + :object => f.object, + :include_object_name => true + } %> + + <div class='field'> + <%= f.label :title -%> + <%= f.text_field :title, :class => 'larger widest' -%> + </div> + + <div class='field'> + <%= f.label :sidebar_position -%> + <%= f.select :sidebar_position, make_choice_from(t('.sidebar_positions')) -%> + </div> + + <%= render :partial => "/refinery/admin/form_actions", + :locals => { + :f => f, + :continue_editing => false, + :delete_title => t('delete', :scope => 'refinery.blog.admin.categories.category') + } %> +<% end %> |