aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Wilkinson <kai@wikyd.org>2011-06-21 02:48:48 -0700
committerKyle Wilkinson <kai@wikyd.org>2011-06-21 02:48:48 -0700
commit3c0412bfaa3c2dc3fff319af0c812f7a9fb286a3 (patch)
treee9990e3da58248df07f6118b2313734a510f03b4
parent610cd865f27c458921e76ab340de41a642823cba (diff)
downloadrefinerycms-blog-3c0412bfaa3c2dc3fff319af0c812f7a9fb286a3.tar.gz
refinerycms-blog-3c0412bfaa3c2dc3fff319af0c812f7a9fb286a3.tar.bz2
refinerycms-blog-3c0412bfaa3c2dc3fff319af0c812f7a9fb286a3.zip
Add tab field for the custom teaser. Currently, width is set to zero for teaser editor... need to debug.
-rw-r--r--app/views/admin/blog/posts/_form.html.erb8
-rw-r--r--app/views/admin/blog/posts/_teaser_part.html.erb4
2 files changed, 12 insertions, 0 deletions
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 @@
<li class='ui-state-default'>
<%= link_to "Body", "#page_part_body" %>
</li>
+ <li class='ui-state-default'>
+ <%= link_to "Teaser", "#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}" %>
@@ -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| %>
<div class='page_part' id='<%= "custom_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 @@
+<div class='page_part' id='page_part_teaser'>
+ <%= f.text_area :custom_teaser, :rows => 20, :class => 'wymeditor widest' -%>
+</div>
+