'>
<% labelled_form_for 'article', @article, :html => { :multipart => true } do |f| %>
<%= hidden_field_tag("type", @type) if @type %>
<%= hidden_field_tag('parent_id', @parent_id) if @parent_id %>
<%= hidden_field_tag('back_to', @back_to) %>
<%= render :partial => partial_for_class(@article.class), :locals => { :f => f } %>
<% if environment.is_portal_community?(profile) %>
<%= check_box(:article, :highlighted) %>
<% end %>
<% button_bar do %>
<%= submit_button :save, _('Save') %>
<% end %>
<%= lightbox_button :help, _('Why categorize?'), :action => 'why_categorize' %>
<%= select_categories(:article, _('Categorize your article')) %>
<%= f.text_field('tag_list', :size => 64) %>
<%= content_tag( 'small', _('Separate tags with commas') ) %>
<%= options_for_article(@article) %>
<% button_bar do %>
<%= submit_button :save, _('Save') %>
<% if @back_url %>
<%= button :cancel, _('Cancel'), @back_url %>
<% elsif @parent_id || @article.parent %>
<%= button :cancel, _('Cancel'), :action => 'view', :id => @parent_id || @article.parent %>
<% else %>
<%= button :cancel, _('Cancel'), :action => 'index' %>
<% end %>
<% end %>
<% end %>
<% if environment.enabled?('media_panel') && [TinyMceArticle, Event, EnterpriseHomepage].any?{|klass| @article.kind_of?(klass)} %>
<%= render :partial => 'media_listing' %>
<% end %>