edit.rhtml 754 Bytes
<%= error_messages_for 'article' %>

<% labelled_form_for 'article', @article, :html => { :multipart => true } do |f| %>

  <%= hidden_field_tag("type", params[:type]) if params[:type] %>

  <%= hidden_field_tag('parent_id', params[:parent_id]) if params[:parent_id] %>

  <%= render :partial => partial_for_class(@article.class), :locals => { :f => f } %>

  <%= select_categories(:article) %>

  <%# TODO display the tooltip (title below) in a directly visible way %>
  <%= f.text_field('tag_list', :size => 64, :title => _('Separate tags with commas')) %>

  <%= design_display_button_submit('save', _('Save')) %>
  <%= design_display_button('cancel', _('Cancel'), :action => (@article.parent ? 'view' : 'index'), :id => @article.parent) %>
<% end %>