-if(accepted_offer.documents_completed?)
  -class_name="success"
-else
  -class_name="warning"



%tr{class: class_name}
  %td
    =link_to accepted_offer.offer.need.title, public_need_path(accepted_offer.offer.need)
  %td
    =number_to_currency(accepted_offer.offer.price, locale: :fr)
  %td
    =accepted_offer.qte
  %td
    =number_to_currency(accepted_offer.total, locale: :fr)
    
  %td{style: 'text-align:center'}
    =accepted_offer.human_state
  %td{style: 'text-align:right'}
    =link_to i(:"file") + " #{accepted_offer.documents.where(state: :document_verified).count} / #{accepted_offer.documents.count}", public_accepted_offer_documents_path(accepted_offer), class: "btn btn-sm btn-primary"
