
%tr#m_odr_rep_rib_row{:id => m_odr_rep_rib.id}
  -tr = {}
  
  -tr[:p_customer] = capture do
    %td
      =link_to m_odr_rep_rib.p_customer.show_name, [:admin, m_odr_rep_rib.p_customer] if m_odr_rep_rib.p_customer

  -tr[:admin_ok] = capture do
    %td
      -if m_odr_rep_rib.admin_ok
        =state_helper("Validé")
      -elsif m_odr_rep_rib.admin_ok == false
        =state_helper("Refusé")


  -tr[:actions] = capture do
    %td.actions
      = link_to i(:"trash-o"), [:admin, m_odr_rep_rib], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cet enregistrement ? ' } , :remote => true
      = link_to i(:pencil), edit_admin_m_odr_rep_rib_path(m_odr_rep_rib), :remote => true
      = link_to i(:eye), admin_m_odr_rep_rib_path(m_odr_rep_rib), :remote => true



  =render :partial => "qi/qi_ordered_table_object", :locals => {:tr => tr, :object => m_odr_rep_rib}
    
  
  
  