Sha256: 130c26488ddcee6e059bc471e4ff4677aa3eddbe3e1d4dc53a14426b585bac9b

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

<!--
 ! Excerpted from "Agile Web Development with Rails, 2nd Ed."
 ! We make no guarantees that this code is fit for any purpose.
 ! Visit http://www.pragmaticprogrammer.com/titles/rails2 for more book information.
-->
<<div.depot-form<

  %= error_messages_for 'order'

  <<fieldset<
    <legend>Please Enter Your Details</legend>

    <%
      form = amrita_define_form(
        :order,
        :url => { :action => :save_order },
        :amrita_format => :as_label_field_hash) do |f|
        f.text_field :name, :size => 40
        f.text_area  :address, :rows => 3, :cols => 40
        f.text_field :email, :size => 40
        f.select     :pay_type,
                     Order::PAYMENT_TYPES,
                     :prompt => "Select a payment method"
      end
     %>

    <<:form | AcceptData[:hook] <
      <<p :name<
        <<label :label | Attr[:for] <
          <<:text | :capitalize >>:
        <<:field>>
      <<p :address<
        <<label :label | Attr[:for] <
          <<:text | :capitalize >>:
        <<:field>>
      <<p :email<
        <<label :label | Attr[:for] <
          E-Mail:
        <<:field>>
      <<p :pay_type<
        <<label :label | Attr[:for] <
          Pay with:
        <<:field>>

      %= submit_tag "Place Order", :class => "submit"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amrita2-2.0.2 sample/depot/app/views/store/checkout.html.a2