% if @article.text_coding == Article::CODING_HTML %> <%= render :partial => "javascripts/mce_full" %> <% end %>
<%= f.label :title %>
<%= f.text_field :title %>
<%= f.label :status %>
<%= f.select :status, @article.statuses.invert %>
<%= f.label :text_coding %>
<%= f.select :text_coding, @article.codings.invert %>
<%= f.label :category_id %>
<%= f.select :category_id, Category.ordered.collect{|c| ["#{c.domains[c.domain]} - #{c}", c.id]} %>
<%= f.label :text %>
<%= f.text_area :text, :rows => 30, :cols => 80 %>
<%= f.submit %>
<% end %><%= f.file_field :name %> <%= f.submit 'Create' %>
<% end %>