Sort suppliers in dropdown menu for new deliveries

This commit is contained in:
Patrick Gansterer 2020-04-10 23:59:06 +02:00
parent a3defc5463
commit 08065a09ec

View file

@ -50,7 +50,7 @@
= t '.new_delivery' = t '.new_delivery'
%span.caret %span.caret
%ul.dropdown-menu %ul.dropdown-menu
- Supplier.all.each do |supplier| - Supplier.order(:name).each do |supplier|
%li= link_to supplier.name, new_supplier_delivery_path(supplier), tabindex: -1 %li= link_to supplier.name, new_supplier_delivery_path(supplier), tabindex: -1
%table.table.table-hover#articles %table.table.table-hover#articles