From 3c0412bfaa3c2dc3fff319af0c812f7a9fb286a3 Mon Sep 17 00:00:00 2001 From: Kyle Wilkinson Date: Tue, 21 Jun 2011 02:48:48 -0700 Subject: Add tab field for the custom teaser. Currently, width is set to zero for teaser editor... need to debug. --- app/views/admin/blog/posts/_form.html.erb | 8 ++++++++ app/views/admin/blog/posts/_teaser_part.html.erb | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 app/views/admin/blog/posts/_teaser_part.html.erb (limited to 'app/views/admin') diff --git a/app/views/admin/blog/posts/_form.html.erb b/app/views/admin/blog/posts/_form.html.erb index abff4f2..4eb4cf4 100644 --- a/app/views/admin/blog/posts/_form.html.erb +++ b/app/views/admin/blog/posts/_form.html.erb @@ -16,6 +16,9 @@
  • <%= link_to "Body", "#page_part_body" %>
  • +
  • + <%= link_to "Teaser", "#page_part_teaser" %> +
  • <% Refinery::Blog.tabs.each_with_index do |tab, tab_index| %>
  • <%= link_to tab.name.titleize, "#custom_tab_#{tab_index}" %> @@ -31,6 +34,11 @@ :f => f, :part_index => (part_index += 1), } -%> + <%= render :partial => 'teaser_part', + :locals => { + :f => f, + :part_index => (part_index += 1), + } -%> <% Refinery::Blog.tabs.each_with_index do |tab, tab_index| %>
    <%= render :partial => tab.partial, :locals => {:f => f} %> diff --git a/app/views/admin/blog/posts/_teaser_part.html.erb b/app/views/admin/blog/posts/_teaser_part.html.erb new file mode 100644 index 0000000..22711a9 --- /dev/null +++ b/app/views/admin/blog/posts/_teaser_part.html.erb @@ -0,0 +1,4 @@ +
    + <%= f.text_area :custom_teaser, :rows => 20, :class => 'wymeditor widest' -%> +
    + -- cgit v1.2.3