-if @newsletter.block
  #toolbar-text
  %div{:style => "margin-right:330px;margin-top:45px;"}
    .newsletter_block_edit
      #menu_item_block_edit
 
        =render :partial => "admin/blocks/block", :locals => {:block => @newsletter.block, :sortable => true} 
  
  
  %br
  %br
  %br
  %br
  %br
  %br
  %br
  %br
  %br
  %br
  %br
  #menu_item_inspector_container
  
  
  
  
  
  
  
    #menu_item_informations
      %h4
        Infos sur la newsletter
    
    
      .panel#collapseOne{:style => "display:none;"}
        =render :partial => "form"    
        
      %h4 éléments
    
      .panel#collapse2
        .block_portlets_sortable#content_types
          -@newsletter.alloweds_types.each do |slug, name|
 
            .content_type{:id => slug, :"data-type" => slug}
              =#i slug.to_s.constantize.picto
              =image_tag("admin/content_type/type_"+slug.to_s+".png", :alt => name, :title => name, :class => "handle")
      

      #collapse3{:style => "display:none;"}
        %h4 Modifier l'élément
    
    
        .panel
          #element_form
    
          %div#element_form_action
            %a.move.btn.btn-default.portlet_handle{:href => "#", :data => {:portlet_id => nil}}
              %span.move_message
                =ic :arrows
                &nbsp;
                déplacer
              %span.cancel_message
                =ic :ban
                &nbsp;
                annuler
          
            =link_to ic(:"trash-o"), "#", :method => :delete, :data => { :confirm => "Etes-vous sûr ?"}, :remote => true, :class => "btn btn-danger trash"
        
            %button.save.btn.btn-primary
              =ic(:"floppy-o")
              &nbsp;
              Sauvegarder
        




-else

  =raw @newsletter.content

  


    
  
