diff options
author | Philip Arndt <parndt@gmail.com> | 2012-01-09 10:38:26 +1300 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2012-01-17 16:56:23 +1300 |
commit | b3a25c1b686d205fc6b8b409a8f90059ae6b934d (patch) | |
tree | b0590a4c85422d000a22423114849fd1679392dd /app/views/refinery/admin/blog/posts/_form.html.erb | |
parent | 2a2fcca64972bc2fb6a3530395366fb2ade42303 (diff) | |
download | refinerycms-blog-b3a25c1b686d205fc6b8b409a8f90059ae6b934d.tar.gz refinerycms-blog-b3a25c1b686d205fc6b8b409a8f90059ae6b934d.tar.bz2 refinerycms-blog-b3a25c1b686d205fc6b8b409a8f90059ae6b934d.zip |
Restructured part of the project to Refinery::Blog::Admin not Refinery::Admin::Blog
Diffstat (limited to 'app/views/refinery/admin/blog/posts/_form.html.erb')
-rw-r--r-- | app/views/refinery/admin/blog/posts/_form.html.erb | 116 |
1 files changed, 0 insertions, 116 deletions
diff --git a/app/views/refinery/admin/blog/posts/_form.html.erb b/app/views/refinery/admin/blog/posts/_form.html.erb deleted file mode 100644 index f20c0cc..0000000 --- a/app/views/refinery/admin/blog/posts/_form.html.erb +++ /dev/null @@ -1,116 +0,0 @@ -<%= form_for [main_app, :refinery_admin, @blog_post] 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'> - <div id='page-tabs' class='clearfix ui-tabs ui-widget ui-widget-content ui-corner-all'> - <ul id='page_parts'> - <li class='ui-state-default ui-state-active'> - <%= link_to t('body', :scope => 'activerecord.attributes.refinery/blog_post'), "#page_part_body" %> - </li> - <li class='ui-state-default'> - <%= link_to t('teaser', :scope => 'activerecord.attributes.refinery/blog_post'), "#page_part_teaser" %> - </li> - <% Refinery::Blog.tabs.each_with_index do |tab, tab_index| %> - <li class='ui-state-default' id="custom_<%= tab.name %>_tab"> - <%= link_to tab.name.titleize, "#custom_tab_#{tab_index}" %> - </li> - <% end %> - </ul> - - <div id='page_part_editors'> - <% part_index = -1 %> - <%= render :partial => 'form_part', - :locals => { - :f => f, - :part_index => (part_index += 1), - } -%> - <%= render :partial => 'teaser_part', - :locals => { - :f => f, - :part_index => (part_index += 1), - } if f.object.respond_to?(:custom_teaser) -%> - <% Refinery::Blog.tabs.each_with_index do |tab, tab_index| %> - <div class='page_part' id='<%= "custom_tab_#{tab_index}" %>'> - <%= render :partial => tab.partial, :locals => {:f => f} %> - </div> - <% end %> - </div> - </div> - </div> - - <div class='field'> - <%= f.label :tag_list, t('refinery.blog.shared.tags.title') -%> - <%= f.text_field :tag_list, :class => 'larger' -%> - </div> - - <div id='more_options_field'> - <p> - <%= link_to t('.advanced_options'), "#", - :id => 'toggle_advanced_options', - :title => t('.toggle_advanced_options') %> - </p> - <span id='draft_field'> - <%= f.check_box :draft %> - <%= f.label :draft, t('.save_as_draft'), :class => "stripped" %> - </span> - </div> - <div id='more_options' style="display:none;"> - <div class="hemisquare"> - <h3><%= t('title', :scope => 'refinery.admin.blog.submenu.categories') %></h3> - <ul class='blog_categories'> - <% @blog_categories.each do |category| %> - <li> - <%= check_box_tag 'blog_post[category_ids][]', category.id, - @blog_post.categories.include?(category), - :id => (id="blog_post_category_ids_#{category.id}") %> - <%= label_tag 'blog_post[category_ids][]', category.title, - :class => 'stripped', - :for => id %> - </li> - <% end %> - </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 class='field'> - <span class='label_with_help'> - <%= f.label :user_id, t('.author') %> - <%= refinery_help_tag t('.author_help') %> - <br/> - <%= f.collection_select :user_id, ::Refinery::User.all, :id, :username %> - </span> - </div> - - </div> - <div class='hemisquare right_side'> - <%= render :partial => '/seo_meta/form', :locals => {:form => f} %> - </div> - </div> - <%= render :partial => "/refinery/admin/form_actions", - :locals => { - :f => f, - :continue_editing => true, - :delete_title => t('delete', :scope => 'refinery.admin.blog.posts.post') - } %> -<% end -%> - -<% content_for :stylesheets, stylesheet_link_tag('refinery/blog/backend') %> -<% content_for :javascripts, javascript_include_tag('refinery/blog/backend') %> -<%= render 'refinery/shared/admin/autocomplete', :dom_id => '#blog_post_tag_list', :url => main_app.tags_refinery_admin_blog_posts_url %> |