29 lines
921 B
Plaintext
29 lines
921 B
Plaintext
%tr#v_bda_row{:id => v_bda.id}
|
|
-tr = {}
|
|
|
|
-tr[:v_contact] = capture do
|
|
%td
|
|
-if v_bda.v_contact
|
|
=link_to [:admin, v_bda.v_contact] do
|
|
=v_bda.v_contact.codemanaginn
|
|
="-"
|
|
=v_bda.v_contact.nom
|
|
=v_bda.v_contact.prenom
|
|
|
|
-tr[:actions] = capture do
|
|
%td.actions
|
|
=# link_to i(:"trash-o"), [:admin, v_bda], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cet enregistrement ? ' } , :remote => true
|
|
=# link_to i(:pencil), edit_admin_v_bda_path(v_bda), :remote => true
|
|
|
|
-if v_bda.bda_type == "bda"
|
|
= link_to i(:eye), admin_v_bda_path(v_bda), :remote => false
|
|
-if !v_bda.sended
|
|
=link_to "Envoyer le mail", send_mail_admin_v_bda_path(v_bda), :remote => true, :class => "btn btn-primary"
|
|
|
|
|
|
|
|
=render :partial => "qi/qi_ordered_table_object", :locals => {:tr => tr, :object => v_bda}
|
|
|
|
|
|
|
|
|