Sha256: 8bebfea82b96207d49ddc2386b0a4657a5dd20f7167ad1959efa7ccb1f07c792
Contents?: true
Size: 1.49 KB
Versions: 8
Compression:
Stored size: 1.49 KB
Contents
- unless defined?(Cocoon) Please install #{link_to 'cocoon', 'https://github.com/nathanvda/cocoon'} to see this page. - else = simple_form_for [:admin, order], (EffectiveOrders.admin_simple_form_options || {}).merge(url: effective_orders.admin_orders_path) do |f| = f.association :user, label: 'Buyer', required: true, as: (defined?(EffectiveFormInputs) ? :effective_select : :select), collection: @users || User.all.to_a.sort { |user1, user2| user1.to_s <=> user2.to_s } %h3 Order Items .order_items - f.object.order_items.build unless f.object.order_items.present? = f.simple_fields_for :order_items do |order_item| = render 'order_item_fields', f: order_item .links = link_to_add_association '+ Add line item', f, :order_items, partial: 'order_item_fields' = f.input :send_payment_request_to_buyer, as: :boolean, label: 'Yes, send a payment request email to the buyer.', value: (f.object.send_payment_request_to_buyer.nil? ? EffectiveOrders.mailer[:send_payment_request_to_buyer] : f.object.send_payment_request_to_buyer?) %h3 Internal Note = f.input :note_internal, label: 'Internal note', hint: 'For internal admin use only. This note will never be displayed to the buyer.' %p.text-right = f.button :submit, 'Save', data: { disable_with: 'Saving...' } = f.button :submit, 'Save and Add New', data: { disable_with: 'Saving...' } = link_to 'Cancel', effective_orders.admin_orders_path
Version data entries
8 entries across 8 versions & 1 rubygems