Update Haml files for usage with version 5

This commit is contained in:
Patrick Gansterer 2020-03-23 15:24:49 +01:00
parent e606f606da
commit 526ea51eac
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@
$('#new_stock_article').removeAttr('disabled').select2({
tags: true,
placeholder: '#{t '.create_stock_article'}',
data: #{articles_for_select2(@supplier.articles).to_json},
data: #{raw articles_for_select2(@supplier.articles).to_json},
createTag: function(data) {
return {
id: 'new',

View File

@ -4,7 +4,7 @@
%tr{:id => "stock_article_#{article.id}", :class => css_class}
%td= article.name
%td{:data => {:toggle => :tooltip, :title => render(:partial => 'shared/article_price_info', :locals => {:article => article})}}= number_to_currency article.price
%td{:data => {:toggle => :tooltip, :title => "#{render(:partial => 'shared/article_price_info', :locals => {:article => article})}"}}= number_to_currency article.price
%td= article.unit
%td= article.article_category.name
%td