Sha256: a7765d476bb724633289754251b6704697f64c13258b6f0691b6c5f2eba110dd

Contents?: true

Size: 966 Bytes

Versions: 1

Compression:

Stored size: 966 Bytes

Contents

= haml "orders/menu".to_sym

%h1 Link order from #{@order.updated_at} to a remote order

%center
  %table.pure-table.pure-table-striped
    %thead
      %tr
        %th Date
        %th Volume
        %th Order ID
        %th State
        %th Action
    %tbody
      - @last_orders.each do |remote_order|
        %form.pure-form(method="post")
          %input(type="hidden" name="remote_order_link" value="#{remote_order[2]}")
          %input(type="hidden" name="remote_order_id"   value="#{remote_order[3]}")
          %tr
            %td=remote_order[0]
            %td=remote_order[1]
            %td=remote_order[3]
            %td=remote_order[4]
            %td
              %a(href="#{remote_order[2]}" target="remote_shop")
                Visit remote shop
              %br
              %button.pure-button.pure-button-primary(type="submit" href="/remote_order/#{remote_order[2][/\d+/]}")
                = add_icon
                Link to this order

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rawbotz-0.2.0 lib/rawbotz/views/order/link_to_remote.haml