tissue/resources/views/auth/register.blade.php

68 lines
3.6 KiB
PHP
Raw Normal View History

2017-11-06 00:49:10 +09:00
@extends('layouts.base')
2017-08-27 04:44:53 +09:00
@section('content')
<div class="container">
2017-11-06 00:49:10 +09:00
<h2>新規登録</h2>
<hr>
<div class="row justify-content-center my-5">
<div class="col-lg-6">
<form method="post" action="{{ route('register') }}">
{{ csrf_field() }}
2017-08-27 04:44:53 +09:00
2017-11-06 00:49:10 +09:00
<div class="form-group">
<label for="name"><span class="oi oi-person"></span> ユーザー名</label>
<input id="name" name="name" class="form-control{{ $errors->has('name') ? ' is-invalid' : '' }}" type="text" value="{{ old('name') }}" required>
2017-08-27 04:44:53 +09:00
@if ($errors->has('name'))
2017-11-06 00:49:10 +09:00
<div class="invalid-feedback">{{ $errors->first('name') }}</div>
2017-08-27 04:44:53 +09:00
@endif
</div>
2017-11-06 00:49:10 +09:00
<div class="form-group">
<label for="email"><span class="oi oi-envelope-closed"></span> メールアドレス</label>
<input id="email" name="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" type="text" value="{{ old('email') }}" required>
2017-08-27 04:44:53 +09:00
@if ($errors->has('email'))
2017-11-06 00:49:10 +09:00
<div class="invalid-feedback">{{ $errors->first('email') }}</div>
2017-08-27 04:44:53 +09:00
@endif
</div>
2017-11-06 00:49:10 +09:00
<div class="form-group">
<label for="password"><span class="oi oi-key"></span> パスワード</label>
<input id="password" name="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" type="password" required>
2017-08-27 04:44:53 +09:00
@if ($errors->has('password'))
2017-11-06 00:49:10 +09:00
<div class="invalid-feedback">{{ $errors->first('password') }}</div>
2017-08-27 04:44:53 +09:00
@endif
</div>
2017-11-06 00:49:10 +09:00
<div class="form-group">
2017-08-27 04:44:53 +09:00
<label for="password-confirm">パスワードの再入力</label>
2017-11-06 00:49:10 +09:00
<input id="password-confirm" name="password_confirmation" class="form-control" type="password" required>
2017-08-27 04:44:53 +09:00
</div>
2017-11-06 00:49:10 +09:00
<div class="form-row ml-1 mt-4">
<h6 class="mb-3">プライバシーに関するオプション (全て任意です)</h6>
<div class="form-group">
<div class="form-check">
<label class="custom-control custom-checkbox">
<input id="protected" name="is_protected" class="custom-control-input" type="checkbox" {{ old('is_protected') ? 'checked' : '' }}>
<span class="custom-control-indicator"></span>
<span class="custom-control-description">全てのチェックイン履歴を非公開にする</span>
</label>
</div>
<div class="form-check">
<label class="custom-control custom-checkbox">
<input id="accept-analytics" name="accept_analytics" class="custom-control-input" type="checkbox" {{ old('accept_analytics') ? 'checked' : '' }}>
<span class="custom-control-indicator"></span>
<span class="custom-control-description">匿名での統計にチェックインデータを利用することに同意します</span>
</label>
</div>
</div>
2017-08-27 04:44:53 +09:00
</div>
2017-11-06 00:49:10 +09:00
<div class="text-center">
<button class="btn btn-primary btn-lg" type="submit">登録</button>
2017-08-27 04:44:53 +09:00
</div>
2017-11-06 00:49:10 +09:00
</form>
</div>
2017-08-27 04:44:53 +09:00
</div>
</div>
@endsection