Skip to content

Commit

Permalink
checkout テンプレート
Browse files Browse the repository at this point in the history
  • Loading branch information
kyanny committed Jan 22, 2010
1 parent 3330b84 commit 064c0df
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions depot/app/views/store/checkout.html.erb
@@ -0,0 +1,25 @@
<div class="depot-form">
<%= error_messages_for "order" %>
<% form_for :order, :url => { :action => :save_order } do |form| %>
<fieldset>
<legend>あなたの詳細情報をご記入ください</legend>
<div>
<%= form.label :name, "お名前:" %>
<%= form.text_field, :name, :size => 40 %>
</div>
<div>
<%= form.label :address, "ご住所:" %>
<%= form.text_area, :address, :rows => 3, :cols => 40 %>
</div>
<div>
<%= form.label :email, "Eメール:" %>
<%= form.text_field :email, :size => 40 %>
</div>
<div>
<%= form.label :pay_type, "お支払い:" %>
<%= form.select :pay_type, Order::PAYMENT_TYPES, :prompt => "お支払い方法を選択してください" %>
</div>
<%= submit_tag "注文する", :class => "submit" %>
</fieldset>
<% end %>
</div>

0 comments on commit 064c0df

Please sign in to comment.