Skip to content

Instantly share code, notes, and snippets.

@kexline4710
Created April 22, 2014 19:42
Show Gist options
  • Select an option

  • Save kexline4710/11191818 to your computer and use it in GitHub Desktop.

Select an option

Save kexline4710/11191818 to your computer and use it in GitHub Desktop.

Revisions

  1. kexline4710 created this gist Apr 22, 2014.
    7 changes: 7 additions & 0 deletions order_item.haml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    %span.btn-group.add-item-expanded
    = link_to 'View', account_select_event_item_path(item.account, item.select_event, item), method: :get, :class => "btn fooda-white"
    = form_for [:checkout, ], url: checkout_items_path, method: :post do |f|
    = f.hidden_field :parent_id, value: @menu_page.select_event.id
    = f.hidden_field :parent_type, value: 'SelectEvent'
    = f.hidden_field :selection, value: item.inventory_item
    = f.submit 'Buy Now', :class => "btn fooda-blue"