Order items in select boxes

This commit is contained in:
Patrick Gansterer 2016-02-25 13:16:48 +01:00 committed by wvengen
parent 4e35e2d58e
commit b30b4e46d8
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@
= Invoice.human_attribute_name(:created_by) = Invoice.human_attribute_name(:created_by)
.controls.control-text#article_fc_price .controls.control-text#article_fc_price
= show_user @invoice.created_by = show_user @invoice.created_by
= f.association :supplier, hint: false = f.association :supplier, collection: Supplier.order(:name), hint: false
= f.input :number = f.input :number
= f.input :date, as: :date_picker = f.input :date, as: :date_picker
- if current_user.role_finance? - if current_user.role_finance?

View file

@ -5,7 +5,7 @@
- unless local_assigns[:periodic] - unless local_assigns[:periodic]
= form.input :user_list, :as => :string, :input_html => { 'data-pre' => form.object.users.map(&:token_attributes).to_json } = form.input :user_list, :as => :string, :input_html => { 'data-pre' => form.object.users.map(&:token_attributes).to_json }
= form.input :required_users = form.input :required_users
= form.association :workgroup = form.association :workgroup, collection: Workgroup.order(:name)
= form.input :due_date, as: :date_picker = form.input :due_date, as: :date_picker
- unless local_assigns[:periodic] - unless local_assigns[:periodic]
= form.input :done = form.input :done