%br
%br
-if @topic.id
  %h1 Modifier ce fil de discussion
-else
  %h1 Créer un nouveau fil de discussion
  
= semantic_form_for [:forum, @topic] do |f| 
  =f.inputs do
    -if moderator?
      =f.input :enabled, :label => "Publié ?"
    =f.input :category, :label => "Catégorie", :include_blank => false
    =f.input :title, :label => "Titre : "




  -if !@topic.id
    =f.semantic_fields_for :forum_messages do |f|
      =render :partial => "forum/forum_messages/form", :locals => {:f => f}
  -else
    %center
      =f.submit "Sauvegarder", :class => "btn btn-primary"
  




