mmsc_app/app/views/admin/m_odrs/_m_odr.html.haml
Nicolas Bally a6aa1f6074 Initial
2020-05-25 11:40:11 +02:00

23 lines
997 B
Plaintext

%tr#m_odr_row{:id => m_odr.id}
%td= m_odr.p_customer.show_name if m_odr.p_customer
%td= m_odr.name
%td
=link_to public_m_odr_path(m_odr.slug, :lang => nil), public_m_odr_path(m_odr.slug, :lang => nil), :target => "_blank"
%br
=link_to public_m_odr_path(m_odr.slug, :lang => nil, :force => true), public_m_odr_path(m_odr.slug, :lang => nil, :force => true), :target => "_blank"
-m_odr.m_odr_trackers.each do |mot|
%br
=link_to public_m_odr_path(m_odr.slug, :t => mot.token, :lang => nil), public_m_odr_path(m_odr.slug, :t => mot.token, :lang => nil), :target => "_blank"
%td= m_odr.start_at
%td= m_odr.end_at
%td= m_odr.public_end
%td.actions
=# link_to i(:"trash-o"), [:admin, m_odr], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cet enregistrement ? ' } , :remote => true
= link_to i(:pencil), edit_admin_m_odr_path(m_odr), :remote => false
= link_to i(:"bar-chart"), admin_m_odr_path(m_odr), :remote => false