-p_document = form.object.p_document
%tr.p_payment_document_form.field
  %td{:style => "width:30px;text-align:center;"}=ic :check if p_document.paid 
  %td{:style => "width:100px"}=l p_document.created_at, :format => "%y/%m/%Y"
  %td{:style => "width:90px"}
    =link_to p_document.element.id, [:admin,p_document.element], :target => "_blank" if p_document.element
  %td
    =link_to p_document.d_number, admin_p_document_path(:id => p_document.token), :target => "_blank"
    = form.hidden_field :p_document_id
  %td.numeraire{:style => "width:120px"}=number_to_currency p_document.cache_total_ttc
  
  %td.numeraire{:style => "width:120px"}
    =number_to_currency(p_document.total_ttc.to_f - p_document.total_paid.to_f)
  %td.numeraire{:style => "width:120px"}
    = form.input :amount, :label => false, :placeholder => "Montant"
  %td{:style => "width:30px;text-align:center;"}
    =link_to_remove_fields ic(:"trash-o"), form

