<% object ||= :article %> <% abstract_label ||= 'Lead' %> <% abstract_method ||= :abstract %> <% body_label ||= 'Text' %> <% body_method ||= :body %> <% editor_type = defined?(tiny_mce) && tiny_mce ? 'mceEditor' : '' %> <% lead_id ||= 0%> <% f ||= false%>
<%= button :add, _("Lead"), '#', :class => "lead-button", :article_id => "#article-lead-"+lead_id.to_s, :style => "margin-left: 0px;" %> <%= _('Used when a short version of your text is needed.') %>
<% if f %> <%= labelled_form_field(_(abstract_label), f.text_area(abstract_method, :style => 'width: 98%; height: 200px;', :class => editor_type)) %> <% else %> <%= labelled_form_field(_(abstract_label), text_area(object, abstract_method, :style => 'width: 98%; height: 200px;', :class => editor_type)) %> <% end %>
<% if f %> <%= labelled_form_field(_(body_label), f.text_area(body_method, :style => 'width: 98%; height: 400px;', :class => editor_type)) %> <% else %> <%= labelled_form_field(_(body_label), text_area(object, body_method, :style => 'width: 98%; height: 400px;', :class => editor_type)) %> <% end %>
<%= javascript_include_tag 'article'%>