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/mail_hists/_mail_hist.html.haml
2021-08-23 10:26:02 +02:00

26 lines
899 B
Plaintext

%tr#mail_hist_row{:id => mail_hist.id}
-tr = {}
-tr[:mail_type] = capture do
%td
=mail_hist.mail_type.slug if mail_hist.mail_type
-tr[:w_biker] = capture do
%td
=link_to mail_hist.w_biker.name, [:admin, mail_hist.w_biker] if mail_hist.w_biker
-tr[:circuit] = capture do
%td
=link_to mail_hist.circuit.name, [:admin, mail_hist.circuit] if mail_hist.circuit
-tr[:actions] = capture do
%td.actions
-if false
= link_to i(:"trash-o"), [:admin, mail_hist], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cet enregistrement ? ' } , :remote => true
= link_to i(:pencil), edit_admin_mail_hist_path(mail_hist), :remote => true
= link_to i(:eye), admin_mail_hist_path(mail_hist), :remote => false
=render :partial => "qi/qi_ordered_table_object", :locals => {:tr => tr, :object => mail_hist}