From dec2762b184ffefa7f37cc926b51340e095207b0 Mon Sep 17 00:00:00 2001 From: Florian Lentsch Date: Fri, 26 Jul 2024 11:37:45 +0200 Subject: [PATCH] Fixes #85 --- app/views/articles/_edit_all_table.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/articles/_edit_all_table.html.haml b/app/views/articles/_edit_all_table.html.haml index 58951db7..14bda1a9 100644 --- a/app/views/articles/_edit_all_table.html.haml +++ b/app/views/articles/_edit_all_table.html.haml @@ -68,7 +68,7 @@ = form.text_field 'price', class: 'input-mini', style: 'width: 45px' .input.d-flex.gap-1.control-group %label=t('articles.form.per') - = form.select :price_unit, [], {include_blank: false}, {class: 'input-medium'} + = form.input :price_unit, as: :select, collection: [], input_html: {'data-initial-value': article.price_unit, class: 'input-medium'}, label: false, wrapper: false, include_blank: false %td= form.text_field 'order_number', class: 'input-mini' %td= form.text_field 'note', class: 'input-medium' %td= form.collection_select 'article_category_id', @article_categories,