
.center.white.row
  
  .row
    %h1
      = ic(:"comments") + " Conversation avec "
      = link_to @customer.fullname,edit_admin_customer_path(@customer)
    = semantic_form_for [:admin, ContactMessage.new], :html => {id: :contact_message_form, :method => :post } do |f|

      %h4 Répondre
      = f.inputs do
        = f.input :content, as: :text, label: false, rows: 5, :input_html => {:style => "height:100px;"}
        = f.input :contact_id, as: :hidden, value: @customer.id
      = f.submit "Envoyer", :class => "btn btn-square btn-primary pull-right"

  .row{style:"margin-top:20px;"}
    .padding
      =render collection: @contact_messages, partial: 'contact_message'

  .pull-right
    .pagination= paginate @contact_messages
