Order items in select boxes
This commit is contained in:
parent
4e35e2d58e
commit
b30b4e46d8
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@
|
|||
= Invoice.human_attribute_name(:created_by)
|
||||
.controls.control-text#article_fc_price
|
||||
= show_user @invoice.created_by
|
||||
= f.association :supplier, hint: false
|
||||
= f.association :supplier, collection: Supplier.order(:name), hint: false
|
||||
= f.input :number
|
||||
= f.input :date, as: :date_picker
|
||||
- if current_user.role_finance?
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
- unless local_assigns[:periodic]
|
||||
= form.input :user_list, :as => :string, :input_html => { 'data-pre' => form.object.users.map(&:token_attributes).to_json }
|
||||
= form.input :required_users
|
||||
= form.association :workgroup
|
||||
= form.association :workgroup, collection: Workgroup.order(:name)
|
||||
= form.input :due_date, as: :date_picker
|
||||
- unless local_assigns[:periodic]
|
||||
= form.input :done
|
||||
|
|
Loading…
Reference in a new issue