Sha256: ea12f7f522fb6bbeaebde37fac26a45fed0ec389a338cf59b82d5e02e23addad

Contents?: true

Size: 1.61 KB

Versions: 4

Compression:

Stored size: 1.61 KB

Contents

<h1>Address Information</h1>
<br/>
<% form_for :order, @order, :url => { :action => :addresses } do |f| %>
    <table id="user">
      <tr>
        <th>Email</th>
      </tr>
      <% fields_for :user, @user do |u| %>
        <tr>
          <td width="150">Email Address</td>
          <td><%= u.text_field :email -%></td>
          <td><%= error_message_on :user, :email -%></td>
        </tr>
      <% end %>
    </table>
  	<table id="bill_address">
      <tr>
        <th>Billing Address</th>
      </tr>
  	  <%= render :partial => 'address', :locals => {:address_type => 'bill', :address => @bill_address} -%>
      <tr>
        <td colspan="3">
          <div style="line-height:1em;"><label><%= check_box_tag "different_shipping", "1", @different_shipping, :onchange => "Element.toggle($('ship_address'));" %>&nbsp;Use Different Shipping Address</label></div>        
        </td>
      </tr>
    </table>
  	<table id="ship_address" <%= "style='display:none;'" unless @different_shipping %>>
      <tr>
        <th>Shipping Address</th>
      </tr>
  	  <%= render :partial => 'address', :locals => {:address_type => 'ship', :address => @ship_address} -%>
  	</table>
    <% if (Order::ShipMethod.constants.size > 1) %>
      <table id="ship_method">
        <tr>
          <th>Shipping</th>
        </tr>
        <tr>
          <td width="150">
            Shipping Method
          </td>
          <td colspan="2">
            <%= f.collection_select :ship_method, Order::ShipMethod.constants, :id, :title, {}, {:style => "width:200px"}%> 
          </td>
        </tr>
      </table>
    <% end %>      
	<%= submit_tag "Next" %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
railscart-0.0.1 starter-app/vendor/plugins/railscart/app/views/checkout/addresses.rhtml
railscart-0.0.2 starter_app/vendor/plugins/railscart/app/views/checkout/addresses.rhtml
railscart-0.0.3 starter_app/vendor/plugins/railscart/app/views/checkout/addresses.rhtml
railscart-0.0.4 starter_app/vendor/plugins/railscart/app/views/checkout/addresses.rhtml