add update_category as option

This commit is contained in:
viehlieb 2023-03-29 16:16:54 +02:00
parent 109286f0d7
commit 317379ed40
5 changed files with 54 additions and 4 deletions

View file

@ -2,4 +2,9 @@
- if FoodsoftArticleImport.enabled?
%label(for="articles_file")
%strong="select the file type you are about to upload"
=f.collection_select :type, FoodsoftArticleImport::FORMATS , :to_s, :to_s
=f.collection_select :type, FoodsoftArticleImport::FORMATS , :to_s, :to_s
/ insert_before 'erb:contains("articles_outlist_absent")'
-if FoodsoftArticleImport.enabled?
%label(for="articles_update_category")
= f.check_box "update_category"
= t 'Kategorien aus der Datei übernehmen und erstellen.'