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/p_articles/_p_article.html.haml

45 lines
1.2 KiB
Plaintext

%tr#p_article_row{:id => p_article.id}
-tr = {}
-tr[:p_product_ref_ref] = capture do
%td
= p_article.p_product_ref.ref
-tr[:p_grade] = capture do
%td
-if p_article.p_grade
= p_article.p_grade.grade
-tr[:color] = capture do
%td
=# p_article.p_product_ref.p_product_color.color
-tr[:p_product_ref] = capture do
%td
= p_article.p_product_ref.p_product.name
\-
= p_article.p_product_ref.ct_sub_name
\-
=# p_article.p_product_ref.p_product_color.name
-tr[:p_article_serial_nums] = capture do
%td
- p_article.p_article_serial_nums.each do |sn|
= sn.p_serial_num_type.name + " : " + sn.value
%br
-tr[:actions] = capture do
%td.actions
= link_to i(:"trash-o"), [:admin, p_article], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cet enregistrement ? ' } , :remote => true
= link_to i(:pencil), edit_admin_p_article_path(p_article), :remote => true
=# link_to i(:eye), admin_p_article_path(p_article), :remote => true
=render :partial => "qi/qi_ordered_table_object", :locals => {:tr => tr, :object => p_article}