#myModal.modal.fade{"aria-hidden" => "true", "aria-labelledby" => "myModalLabel", :role => "dialog", :tabindex => "-1"}
  

  

  .modal-header
    %button.close{"aria-hidden" => "true", "data-dismiss" => "modal", :type => "button"} ×
    %h3#myModalLabel 
      -if @portfolio.id
        Modifier un portfolio
      -else
        Ajouter un portfolio
  .modal-body

    =semantic_form_for [:admin, @portfolio], :remote => true do |f| 
      = f.inputs do
  
        = f.input :title, :label => "Titre :"
        
        %p Description
        %p
          = f.text_area :description, :class => "redactor_content"
        
        :javascript
    
          $('.redactor_content').redactor({
           
      
            lang: 'fr',
            buttons : ['html', '|', 'formatting', '|', 'bold', 'italic', 'deleted','underline','|', 'alignleft', 'aligncenter', 'alignright', 'justify', '|', 'unorderedlist', 'orderedlist', 'outdent', 'indent', '|', 'table', 'link', '|','fontcolor', 'backcolor','|', 'horizontalrule']
      
    
          });
        

    
        
    
  .modal-footer
    %button.btn{"aria-hidden" => "true", "data-dismiss" => "modal"} Annuler
    %button.btn.btn-primary{"aria-hidden" => "true", "data-dismiss" => "modal", :onclick => "$(this).closest('.modal').find('form').submit();"} Sauvegarder
  