質問編集履歴

2

HTMLの追加

2020/05/17 13:00

投稿

miSaito
miSaito

スコア16

test CHANGED
File without changes
test CHANGED
@@ -45,3 +45,175 @@
45
45
  ↓このページです
46
46
 
47
47
  http://localhost:3000/player/new/vocal
48
+
49
+ このページのHTML
50
+
51
+ ```ここに言語を入力
52
+
53
+ <div class="wrapper-new">
54
+
55
+ <%=render "header"%>
56
+
57
+ <div class="main-new">
58
+
59
+ <div class="box-form">
60
+
61
+ <div class="new-titles">
62
+
63
+ <h2>フォーム入力【ボーカル】</h2>
64
+
65
+ <div class="progress">
66
+
67
+ <div class="progress-bar1">
68
+
69
+ <h5>カテゴリー選択</h5>
70
+
71
+ <div class="progress-bar-circle1"><i class="fas fa-check"></i></div>
72
+
73
+ <p>フォーム入力</p>
74
+
75
+ <div class="progress-bar-circle2"></div>
76
+
77
+ </div>
78
+
79
+ <div class="progress-bar2">
80
+
81
+ <p>掲載完了</p>
82
+
83
+ <div class="progress-bar-circle3">
84
+
85
+ </div>
86
+
87
+ </div>
88
+
89
+ </div>
90
+
91
+ <%=form_with(scope: :vocal, model: @vocal, url: player_new_vocal_path, local: true) do |f| %>
92
+
93
+ <% if @vocal.errors.any? %>
94
+
95
+ <div class = "alert alert-warning">
96
+
97
+ <ul>
98
+
99
+ <% @vocal.errors.full_messages.each do |message| %>
100
+
101
+ <li><i class="fas fa-exclamation-circle"></i><p><%= message %></p></li>
102
+
103
+ <% end %>
104
+
105
+ </ul>
106
+
107
+ </div>
108
+
109
+ <% end %>
110
+
111
+ <div class="form-name" ontouchstart="">
112
+
113
+ <h3>名前 / ペンネーム<span>必須</span></h3>
114
+
115
+ <%= f.text_field :name, placeholder: "例: taro takuroku", class: "name-field" %>
116
+
117
+ </div>
118
+
119
+ <div class="form-style">
120
+
121
+ <h3>演奏スタイル/ジャンル<span>必須</span></h3>
122
+
123
+ <%= f.text_area :style, placeholder: "例:Rock、R&B、Irish", class: "style-area" %>
124
+
125
+ </div>
126
+
127
+ <div class="form-daw">
128
+
129
+ <h3>DAW<span>必須</span></h3>
130
+
131
+ <%= f.text_area :daw, placeholder: "例:Logic Pro X、Pro Tools", class: "daw-area" %>
132
+
133
+ </div>
134
+
135
+ <div class="form-gender">
136
+
137
+ <h3>性別<span>必須</span></h3>
138
+
139
+ <%= f.select :gender, [ ["男性"], ["女性"], ["その他"]], prompt: "--" %>
140
+
141
+ </div>
142
+
143
+ <div class="form-keyrange">
144
+
145
+ <h3>キーレンジ<span>任意</span></h3>
146
+
147
+ <%= f.text_area :keyrange, placeholder: "例:地声:A3〜D5 裏声:C5〜E5", class: "keyrange-area" %>
148
+
149
+ </div>
150
+
151
+ <div class="form-equipment">
152
+
153
+ <h3>録音機材<span>必須</span></h3>
154
+
155
+ <%= f.text_area :equipment, placeholder: "例:【マイク】NEUMANN U87Ai、【I/O】FireFaceUCX、【マイクプリ】NEVE 1073", class: "equipment-area" %>
156
+
157
+ </div>
158
+
159
+ <div class="form-sns">
160
+
161
+ <h3>SNSアカウント<span>どちらか必須</span></h3>
162
+
163
+ <%= f.text_field :sns, placeholder: "例:https://twitter.com/Remote__Rec", class: "sns-field" %>
164
+
165
+ </div>
166
+
167
+ <div class="form-contact">
168
+
169
+ <h3>連絡先<span>どちらか必須</span></h3>
170
+
171
+ <%= f.text_field :contact, placeholder: "例:xxxxx@gmail.com", class: "contact-field" %>
172
+
173
+ </div>
174
+
175
+ <div class="form-language">
176
+
177
+ <h3>言語<span>必須</span></h3>
178
+
179
+ <%= f.text_field :language, placeholder: "例:日本語、英語(UK)", class: "language-field" %>
180
+
181
+ </div>
182
+
183
+ <div class="form-sample">
184
+
185
+ <h3>サンプル<span>任意</span></h3>
186
+
187
+ <%= f.text_field :sample, placeholder: "例:https://recording", class: "sample-field" %>
188
+
189
+ </div>
190
+
191
+ <div class="form-comment">
192
+
193
+ <h3>コメント<span>必須</span></h3>
194
+
195
+ <%= f.text_area :comment, placeholder: "例:納期:即日〜3日 ご依頼時にご相談ください。メジャーでの演奏経験あり!どんなジャンルでもお任せください。", class: "comment-area" %>
196
+
197
+ </div>
198
+
199
+ <div class="form-submit">
200
+
201
+ <label>
202
+
203
+ <%= f.submit "確認ページへ", class: "submit-btn"%>
204
+
205
+ <i class="fas fa-arrow-circle-right"></i>
206
+
207
+ </label>
208
+
209
+ </div>
210
+
211
+ <% end %>
212
+
213
+ </div>
214
+
215
+ </div>
216
+
217
+ </div>
218
+
219
+ ```

1

URLの追記

2020/05/17 13:00

投稿

miSaito
miSaito

スコア16

test CHANGED
File without changes
test CHANGED
@@ -41,3 +41,7 @@
41
41
  ### 補足
42
42
 
43
43
  発火出来るようになったら「URLに"new"が入っていたら一度リロードする」というようにしたいと思っています。
44
+
45
+ ↓このページです
46
+
47
+ http://localhost:3000/player/new/vocal