edit.rhtml
868 Bytes
<%= error_messages_for 'article' %>
<% 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 %>
<%= 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) +
content_tag( 'small', _('Separate tags with commas') )
%>
<% button_bar do %>
<%= submit_button :save, _('Save') %>
<% if @parent_id || @article.parent %>
<%= button :cancel, _('Cancel'), :action => 'view', :id => @parent_id || @article.parent %>
<% else %>
<%= button :cancel, _('Cancel'), :action => 'index' %>
<% end %>
<% end %>
<% end %>