=semantic_form_for [:admin, @mail_type], :remote => true do |form|

  .content
  
    -if current_admin.id == 1

      =# form.input :circuit, :label => "Circuit :"
    
      =form.input :slug, :label => "Référence mail :"
    


    -if form.object.mail_contents.size == 0
      -LangSite.all.each do |ls|
        -form.object.mail_contents.build(:lang_site_id => ls.id, :content_type => "text")

    =form.semantic_fields_for :mail_contents do |form|
      
      
      = form.input :subject
      = form.input :message
      = form.hidden_field :lang_site_id
      
      -if false
        -if current_admin.id == 1
          = form.input :tags
        -else
          %p
            -form.object.tags.split(",").each do |t|
              ="[#{t}]"


  .actions=form.submit "sauvegarder", :class => "btn btn-primary"

  