1 <% content_for :head do %>
2 <%= javascript_include_tag :defaults %>
3 <%= javascript_include_tag js_url(:action => "application") %>
6 <div class="sectionHeader">お客様情報入力</div>
7 <p><span class="must">※</span>は必ずご入力ください。</p>
10 <p>JavaScriptが利用できない状態です。<br />一部のコンテンツが正常に動作しない可能性があります</p>
14 <%= @temporary_customer && error_messages_for(:temporary_customer) %>
15 <%= @optional_address && error_messages_for(:optional_address) %>
17 <% form_tag({:action => 'delivery'}, {:name=>'form1'}) do %>
18 <% fields_for :temporary_customer do |f| %>
21 <td>お名前<span class="must">※</span></td>
25 姓<%= f.text_field :family_name, {:class=>"form_m m_left",:style=>"ime-mode:active"} %><br />
26 名<%= f.text_field :first_name, {:class=>"form_m m_left",:style=>"ime-mode:active"} %>
30 <td>お名前(フリガナ)<span class="must">※</span></td>
34 セイ<%= f.text_field :family_name_kana, {:class=>"form_m m_left",:style=>"ime-mode:active"} %><br />
35 メイ<%= f.text_field :first_name_kana, {:class=>"form_m m_left",:style=>"ime-mode:active"} %>
39 <td>郵便番号<span class="must">※</span></td>
43 〒<%= f.text_field :zipcode01, {:class=>"form_s m_left",:style=>"ime-mode:inactive"} -%>-<%= f.text_field :zipcode02, {:class=>"form_s m_left",:style=>"ime-mode:inactive"} %>
44 <%= link_to "郵便番号を調べる", "http://search.post.japanpost.jp/zipcode/", :target => "_blank" %><br />
45 <input name="zipcode_input" value="住所自動入力" onclick="address_by_zip('temporary_customer_zipcode01','temporary_customer_zipcode02', null, 'temporary_customer_address_city', 'temporary_customer_address_detail', 'temporary_customer_prefecture_id', 'cart', '<%=h ActionController::Base.relative_url_root %>');" type="button" class="btn_s rounded rosy postCodeButton" />
46 <div>※郵便番号を入力後、クリックしてください。</div>
50 <td>住所:都道府県<span class="must">※</span></td>
53 <td><%= f.collection_select :prefecture_id, Prefecture.find(:all, :order=>:position), :id, :name, :class=>"form_s" %></td>
56 <td>住所:市区町村<span class="must">※</span></td>
59 <td><%= f.text_field :address_city, {:class=>"form_l",:style=>"ime-mode:active"} %><p>(例:千代田区神田神保町)</p></td>
62 <td>住所:番地・ビル名<span class="must">※</span></td>
65 <td><%= f.text_field :address_detail, {:class=>"form_l",:style=>"ime-mode:active"} %><p>(例:1-2-3○○○ビル)</p></td>
68 <td>電話番号<span class="must">※</span></td>
71 <td><%= f.text_field :tel01, {:class=>"form_s",:style=>"ime-mode:inactive"} %>-<%= f.text_field :tel02, {:class=>"form_s m_left",:style=>"ime-mode:inactive"} %>-<%= f.text_field :tel03, {:class=>"form_s m_left",:style=>"ime-mode:inactive"} %></td>
77 <td><%= f.text_field :fax01, {:class=>"form_s",:style=>"ime-mode:inactive"} %>-<%= f.text_field :fax02, {:class=>"form_s m_left",:style=>"ime-mode:inactive"} %>-<%= f.text_field :fax03, {:class=>"form_s m_left",:style=>"ime-mode:inactive"} %></td>
80 <td>メールアドレス<span class="must">※</span></td>
83 <td><%= f.text_field :email, {:class=>"form_m",:style=>"ime-mode:inactive"} %></td>
86 <td>メールアドレス(確認)<span class="must">※</span></td>
89 <td><%= f.text_field :email_confirm, {:class=>"form_m",:style=>"ime-mode:inactive"} %></td>
92 <td>性別<span class="must">※</span></td>
96 <% [System::MALE, System::FEMALE].each do | value | %>
97 <%- if @temporary_customer.sex == value %>
98 <%= f.radio_button :sex, value, :checked => "checked" %>
100 <%= f.radio_button :sex, value %>
102 <%= content_tag :label, System::SEX_NAMES[value], :for => "customer_sex_%d" % value %>
110 <td><%= f.collection_select :occupation_id, Occupation.find(:all, :order=>:position), :id, :name, :class=>"form_m" ,:prompt => "-"%></td>
116 <td><%= f.birthday_select :birthday, :use_month_numbers => true,:start_year =>Time.now.year-70,:end_year=>Time.now.year-10,:default=>{:year=>1980,:montd=>1,:day=>1} %></td>
119 <%= hidden_field_tag "temporary_customer_flag","1"%>
122 <div id="delivery"><span id="bold" class="tb_t">配送先を指定 </span><br/>
123 <div id="deliveryOption" class="m_top m_btm"><%= check_box_tag 'address_enable', "1", ((params[:back] == "1" or @error_back)&& !params[:address_enable].nil?)?true:false %>
124 <em class="required"> ※</em>上記に入力されたご住所と同一の場合はチェックをいれると省略可能です。</div></div>
125 <% fields_for :optional_address do |f| %>
128 <td>お名前<span class="must">※</span></td>
132 姓<%= f.text_field :family_name, {:class=>"form_m m_left",:style=>"ime-mode:active"} %><br />
133 名<%= f.text_field :first_name, {:class=>"form_m m_left",:style=>"ime-mode:active"} %>
137 <td>お名前(フリガナ)<span class="must">※</span></td>
141 セイ<%= f.text_field :family_name_kana, {:class=>"form_m m_left",:style=>"ime-mode:active"} %><br />
142 メイ<%= f.text_field :first_name_kana, {:class=>"form_m m_left",:style=>"ime-mode:active"} %>
146 <td>郵便番号<span class="must">※</span></td>
150 〒<%= f.text_field :zipcode01, {:class=>"form_s m_left",:style=>"ime-mode:inactive"} -%>-<%= f.text_field :zipcode02, {:class=>"form_s m_left",:style=>"ime-mode:inactive"} %>
151 <%= link_to "郵便番号を調べる", "http://search.post.japanpost.jp/zipcode/", :target => "_blank" %><br />
152 <input name="zipcode_input" value="住所自動入力" onclick="address_by_zip('optional_address_zipcode01','optional_address_zipcode02', null, 'optional_address_address_city', 'optional_address_address_detail', 'optional_address_prefecture_id', 'cart', '<%=h ActionController::Base.relative_url_root %>');" type="button" class="btn_s rounded rosy postCodeButton" />
153 <div>※郵便番号を入力後、クリックしてください。</div>
157 <td>住所:都道府県<span class="must">※</span></td>
160 <td><%= f.collection_select :prefecture_id, Prefecture.find(:all, :order=>:position), :id, :name, :class=>"form_s" %></td>
163 <td>住所:市区町村<span class="must">※</span></td>
166 <td><%= f.text_field :address_city, {:class=>"form_l",:style=>"ime-mode:active"} %><p>(例:千代田区神田神保町)</p></td>
169 <td>住所:番地・ビル名<span class="must">※</span></td>
172 <td><%= f.text_field :address_detail, {:class=>"form_l",:style=>"ime-mode:active"} %><p>(例:1-2-3○○○ビル)</p></td>
175 <td>電話番号<span class="must">※</span></td>
178 <td><%= f.text_field :tel01, {:class=>"form_s",:style=>"ime-mode:inactive"} %>-<%= f.text_field :tel02, {:class=>"form_s m_left" ,:style=>"ime-mode:inactive"}%>-<%= f.text_field :tel03, {:class=>"form_s m_left",:style=>"ime-mode:inactive"} %></td>
182 <div class="my_btn4">
183 <%= link_to '戻る', {:action => 'show'}, :class=>'rosy button' %>
184 <%= submit_tag '次へ', :action => 'purchase', :class=>'rosy button' %>