Skip to content

Commit

Permalink
Fix to show editor, not front end form
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Aug 18, 2010
1 parent 73255af commit e6ef4c9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions vendor/modules/blog/app/views/blog/manage/post.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -81,21 +81,22 @@
<%= f.text_field :author, :vertical => true, :style=>'width:100%' %>
<%= f.editor_area :body, :vertical => true, :required => true, :rows => 35, :style=>'width:100%', :content_filter => @blog.content_filter %>
<%= f.header "Additional Fields" %>
<%= f.text_field :preview_title, :vertical => true, :size => 80, :label => 'Preview Title (Optional)' %>
<%= f.editor_area :preview, :vertical => true, :rows => 12, :label => 'Preview (Optional)', :style=>'width:100%', :content_filter => @blog.content_filter %>
<%= f.text_field :keywords, :vertical => true, :style=>'width:100%' %>
<%= f.filemanager_file :media_file_id, :vertical => true, :label => 'Local Media (.mp3 or .flv file)' %>
<%= f.text_field :embedded_media, :vertical => true, :label => 'Embedded Media (Paste entire <object ...> block)', :style => 'width:100%' %>
<% if @blog.content_model -%>
<%= f.header "Custom Fields (%s)" / @blog.content_model.name %>
<% cms_subfields_for 'entry[data_model]', @entry.data_model do |cf| -%>
<% @blog.content_model.content_model_fields.each do |field| -%>
<%= field.form_field(cf, :vertical => true) %>
<%= field.form_field(cf, :vertical => true, :editor => true) %>
<% end -%>
<% end -%>
<% end -%>
<%= f.header "Additional Fields" %>
<%= f.text_field :preview_title, :vertical => true, :size => 80, :label => 'Preview Title (Optional)' %>
<%= f.editor_area :preview, :vertical => true, :rows => 12, :label => 'Preview (Optional)', :style=>'width:100%', :content_filter => @blog.content_filter %>
<%= f.text_field :keywords, :vertical => true, :style=>'width:100%' %>
<%= f.filemanager_file :media_file_id, :vertical => true, :label => 'Local Media (.mp3 or .flv file)' %>
<%= f.text_field :embedded_media, :vertical => true, :label => 'Embedded Media (Paste entire <object ...> block)', :style => 'width:100%' %>
<%= f.submit_tag @entry.id ? 'Update Entry' : 'Create Entry' %>
</table>
</td>
Expand Down

0 comments on commit e6ef4c9

Please sign in to comment.