This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/app/views/admin/v_contacts/_v_contact.html.haml
2021-08-23 10:26:02 +02:00

25 lines
800 B
Plaintext

%tr#v_contact_row{:id => v_contact.id}
-tr = {}
-tr[:codemanaginn] = capture do
%td
=link_to v_contact.codemanaginn, [:admin, v_contact]
-tr[:v_societe] = capture do
%td
=link_to v_contact.cc_centre, [:admin, v_contact.societe] if v_contact.societe
-tr[:actions] = capture do
%td.actions
= link_to i(:"trash-o"), [:admin, v_contact], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cet enregistrement ? ' } , :remote => true if current_admin.super_admin
=# link_to i(:pencil), edit_admin_v_contact_path(v_contact), :remote => true
= link_to i(:"user-edit"), admin_v_contact_path(v_contact), :remote => false
=render :partial => "qi/qi_ordered_table_object", :locals => {:tr => tr, :object => v_contact}