質問編集履歴
1
viewのコードを追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -202,6 +202,116 @@
|
|
202
202
|
|
203
203
|
```
|
204
204
|
|
205
|
+
|
206
|
+
|
207
|
+
追記:
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
```
|
212
|
+
|
213
|
+
@extends('layouts.layout')
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
@section('content')
|
218
|
+
|
219
|
+
<header id="">
|
220
|
+
|
221
|
+
<h1>Laravel Project</h1>
|
222
|
+
|
223
|
+
</header>
|
224
|
+
|
225
|
+
<section id="serch">
|
226
|
+
|
227
|
+
<div class="head"><h2>参加者登録</h2></div>
|
228
|
+
|
229
|
+
</section>
|
230
|
+
|
231
|
+
<section id="list-table">
|
232
|
+
|
233
|
+
<form action="new" method="post" enctype="multipart/form-data">
|
234
|
+
|
235
|
+
@csrf
|
236
|
+
|
237
|
+
@method('PATCH')
|
238
|
+
|
239
|
+
<table class="list">
|
240
|
+
|
241
|
+
<div class="@if($errors->has('name')) has-error @endif">
|
242
|
+
|
243
|
+
<tr><th>名前<span>*入力必須</span>@if($errors->has('name'))<span class="text-danger">{{ $errors->first('name') }}</span> @endif</th><td><input type="text" class="form" name="name" value="{{old('name')}}"></td></tr>
|
244
|
+
|
245
|
+
</div>
|
246
|
+
|
247
|
+
<div class="@if($errors->has('email')) has-error @endif">
|
248
|
+
|
249
|
+
<tr><th>Email<span>*入力必須</span>@if($errors->has('email'))<span class="text-danger">{{ $errors->first('email') }}</span> @endif</th><td><input type="text" class="form" name="email" value="{{old('email')}}"></td></tr>
|
250
|
+
|
251
|
+
</div>
|
252
|
+
|
253
|
+
<div class="@if($errors->has('tel')) has-error @endif">
|
254
|
+
|
255
|
+
<tr><th>電話番号<span>*ハイフンなし</span>@if($errors->has('tel'))<span class="text-danger">{{ $errors->first('tel') }}</span> @endif</th><td><input type="text" class="form" name="tel" value="{{old('tel')}}"></td></tr>
|
256
|
+
|
257
|
+
</div>
|
258
|
+
|
259
|
+
<tr><th>出身(都道府県)</th><td><input type="text" class="form" id="addr" name="addr" value="{{old('addr')}}"></td></tr>
|
260
|
+
|
261
|
+
<tr><th>誕生日</th><td><input type="text" class="form" name="birth" placeholder="2000/12/12" value="{{old('birth')}}"></td></tr>
|
262
|
+
|
263
|
+
</table>
|
264
|
+
|
265
|
+
</section>
|
266
|
+
|
267
|
+
<section id="picture">
|
268
|
+
|
269
|
+
<div class="section-wrap">
|
270
|
+
|
271
|
+
<div class="pic-wrap">
|
272
|
+
|
273
|
+
<div class="pic-title">画像</div>
|
274
|
+
|
275
|
+
<div class="pic">
|
276
|
+
|
277
|
+
<input type="file" class="form" name="image">
|
278
|
+
|
279
|
+
</div>
|
280
|
+
|
281
|
+
</div>
|
282
|
+
|
283
|
+
<div class="com-wrap">
|
284
|
+
|
285
|
+
<div class="pic-title">メモ</div>
|
286
|
+
|
287
|
+
<div class="comment">
|
288
|
+
|
289
|
+
<textarea type="text" class="" name="comment" placeholder="" value="{{old('comment')}}"></textarea>
|
290
|
+
|
291
|
+
</div>
|
292
|
+
|
293
|
+
</div>
|
294
|
+
|
295
|
+
</div>
|
296
|
+
|
297
|
+
</section>
|
298
|
+
|
299
|
+
<section id="back">
|
300
|
+
|
301
|
+
<input type="submit" class="btn create-btn" value="登録内容確認">
|
302
|
+
|
303
|
+
</form>
|
304
|
+
|
305
|
+
<a href="{{ action('MemberController@getIndex') }}" class="btn list-btn">一覧へ戻る</a>
|
306
|
+
|
307
|
+
</section>
|
308
|
+
|
309
|
+
@endsection
|
310
|
+
|
311
|
+
```
|
312
|
+
|
313
|
+
|
314
|
+
|
205
315
|
で指定するもnullとなります。
|
206
316
|
|
207
317
|
|