Add pickup date to order select box in Messages#new
This commit is contained in:
parent
5b04b65cd8
commit
7fcfd75fe3
3 changed files with 4 additions and 1 deletions
|
|
@ -104,7 +104,8 @@
|
|||
#messagegroup
|
||||
= f.input :messagegroup_id, :as => :select, include_blank: false, :collection => Messagegroup.undeleted.order(:name)
|
||||
#order
|
||||
= f.input :order_id, :as => :select, include_blank: false, :collection => Order.finished_not_closed.order('pickup DESC').includes(:supplier).limit(25)
|
||||
= f.input :order_id, :as => :select, include_blank: false, :collection => Order.finished_not_closed.order('pickup DESC').includes(:supplier).limit(25),
|
||||
:label_method => ->(obj){ t('.order_item', supplier_name: obj.supplier.name, pickup: format_date(obj.pickup)) }, :input_html => {class: 'input-xxlarge'}
|
||||
#recipients
|
||||
= f.input :recipient_tokens, :input_html => { 'data-pre' => User.where(id: @message.recipients_ids).map(&:token_attributes).to_json }
|
||||
= f.input :private, inline_label: t('.hint_private')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue