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({ $('#new_stock_article').removeAttr('disabled').select2({
tags: true, tags: true,
placeholder: '#{t '.create_stock_article'}', 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) { createTag: function(data) {
return { return {
id: 'new', id: 'new',

View file

@ -4,7 +4,7 @@
%tr{:id => "stock_article_#{article.id}", :class => css_class} %tr{:id => "stock_article_#{article.id}", :class => css_class}
%td= article.name %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.unit
%td= article.article_category.name %td= article.article_category.name
%td %td