質問編集履歴
1
new.html.erbの詳細
test
CHANGED
File without changes
|
test
CHANGED
@@ -60,10 +60,82 @@
|
|
60
60
|
|
61
61
|
|
62
62
|
|
63
|
+
<%= form_with model: @order, url: end_users_confirm_path, method: :post,local: true do |f| %>
|
64
|
+
|
65
|
+
<%= f.label :payment, "支払い方法" %>
|
66
|
+
|
67
|
+
<br>
|
68
|
+
|
69
|
+
<%= f.radio_button :payment,:クレジットカード, checked: "checked" %>
|
70
|
+
|
71
|
+
<%= f.label :payment, "クレジットカード" %>
|
72
|
+
|
73
|
+
<br>
|
74
|
+
|
75
|
+
<%= f.radio_button :payment, :銀行振込 %>
|
76
|
+
|
77
|
+
<%= f.label :payment, "銀行振込" %>
|
78
|
+
|
79
|
+
<br>
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
<%= f.label :address, "お届け先" %>
|
84
|
+
|
85
|
+
<br>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
<%= f.radio_button :address_option, 0, checked: "checked" %>
|
90
|
+
|
91
|
+
<%= f.label :order_address, "ご自身の住所" %>
|
92
|
+
|
93
|
+
<%= @end_user.postal_code %>
|
94
|
+
|
95
|
+
<%= @end_user.address %>
|
96
|
+
|
97
|
+
<br>
|
98
|
+
|
63
|
-
<%= f.radio_button :address_option, 1 %>
|
99
|
+
<%= f.radio_button :address_option, 1 %>
|
64
100
|
|
65
101
|
<%= f.label :order_address, "登録済住所から選択" %>
|
66
102
|
|
67
103
|
<%= f.collection_select :order_address , current_end_user.addresses, :id, :address , :include_blank => "選択してください" %>
|
68
104
|
|
105
|
+
|
106
|
+
|
107
|
+
<br>
|
108
|
+
|
109
|
+
<%= f.radio_button :address_option, 2 %>
|
110
|
+
|
111
|
+
<%= f.label :order_address, "新しいお届け先" %>
|
112
|
+
|
113
|
+
<br>
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
<%= f.label :postal_code, "郵便番号" %>
|
118
|
+
|
119
|
+
<%= f.text_field :postal_code %>
|
120
|
+
|
121
|
+
<br>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
<%= f.label :order_address, "住所" %>
|
126
|
+
|
127
|
+
<%= f.text_field :order_address %>
|
128
|
+
|
129
|
+
<br>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<%= f.submit "確認画面へ進む" , class:"btn btn-primary" %>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
<% end %>
|
138
|
+
|
139
|
+
|
140
|
+
|
69
141
|
```
|