25 lines
800 B
Plaintext
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}
|
|
|
|
|
|
|
|
|