negos_app/app/views/admin/customers/_customer.html.haml

29 lines
979 B
Plaintext
Executable File

-css_class = ""
-css_class "danger" if customer.lock
%tr#customer_row{:id => customer.id, :class => css_class}
%td
=customer.organisation
%td
=customer.name
=customer.firstname
%td
-if customer.phone?
= i("phone") + " #{customer.phone}"
%td
=customer.city
%td
= "Oui" if customer.enabled
= "Non" if !customer.enabled
%td
=link_to customer.email, "mailto:#{customer.email}"
%td.actions{:style => "width:150px;text-align:right;"}
=link_to i(:"comments"), admin_conversation_path(customer)
= link_to i(:"trash-o"), [:admin, customer], :data => {: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)
= link_to i(:check), validate_admin_customer_path(customer), :data => {:confirm => "Voulez-vous vraiment valider ce compte ?"} if !customer.account_validated