negos_app/app/views/admin/annonce_accounts/_annonce_account.html.haml
Nicolas Bally 772e87ffb7 initial
2015-11-14 00:08:54 +01:00

27 lines
901 B
Plaintext

%tr#customer_row{:id => customer.id, :class => ("danger" if customer.lock)}
%td
=image_tag(customer.avatar_url, :style => "height:40px;max-width:40px;width:40px !important;border-radius:50%;")
%td
=customer.pseudo_admin
%td
= "Oui" if customer.parent_id
%td
=customer.country
%td=customer.email
%td
=link_to public_customer_path(customer) do
=customer.annonces.count
=ic(:eye)
%td=number_to_currency customer.orders.where(:paid => true).sum(:price_ht)
%td=number_to_currency customer.commissions.sum(:amount)
%td.actions
=# link_to i(:"trash-o"), [:admin, customer], :confirm => 'Voulez-vous vraiment supprimer ce compte utilisateur ?', :method => :delete, :remote => true
= link_to i(:eye), [:admin, customer]
= link_to i(:pencil), edit_admin_customer_path(customer), :remote => true if current_admin.super_admin