Bootstrap 4への移行完了

This commit is contained in:
shibafu
2017-11-06 00:49:10 +09:00
parent 2038b5e7c3
commit 58258f8fe3
26 changed files with 154 additions and 18972 deletions

View File

@@ -1,66 +1,68 @@
@extends('layouts.base-old')
@extends('layouts.base')
@section('content')
<div class="container">
<h2 class="grey-text">新規登録</h2>
<div class="row">
<form method="post" action="{{ route('register') }}" class="col s12 push-m3 m6">
{{ csrf_field() }}
<h2>新規登録</h2>
<hr>
<div class="row justify-content-center my-5">
<div class="col-lg-6">
<form method="post" action="{{ route('register') }}">
{{ csrf_field() }}
<div class="row">
<h6 class="grey-text col s12">ユーザー情報</h6>
<div class="input-field col s12">
<i class="material-icons prefix">person</i>
<input id="name" name="name" class="validate{{ $errors->has('name') ? ' invalid' : '' }}" type="text" value="{{ old('name') }}" required>
<label for="name">ユーザー名</label>
<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>
@if ($errors->has('name'))
<span class="red-text"><strong>{{ $errors->first('name') }}</strong></span>
<div class="invalid-feedback">{{ $errors->first('name') }}</div>
@endif
</div>
<div class="input-field col s12">
<i class="material-icons prefix">email</i>
<input id="email" name="email" class="validate{{ $errors->has('email') ? ' invalid' : '' }}" type="text" value="{{ old('email') }}" required>
<label for="email">メールアドレス</label>
<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>
@if ($errors->has('email'))
<span class="red-text"><strong>{{ $errors->first('email') }}</strong></span>
<div class="invalid-feedback">{{ $errors->first('email') }}</div>
@endif
</div>
<div class="input-field col s12">
<i class="material-icons prefix">lock</i>
<input id="password" name="password" class="validate{{ $errors->has('password') ? ' invalid' : '' }}" type="password" required>
<label for="password">パスワード</label>
<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>
@if ($errors->has('password'))
<span class="red-text"><strong>{{ $errors->first('password') }}</strong></span>
<div class="invalid-feedback">{{ $errors->first('password') }}</div>
@endif
</div>
<div class="input-field col s12">
<i class="material-icons prefix"></i>
<input id="password-confirm" name="password_confirmation" class="validate" type="password" required>
<div class="form-group">
<label for="password-confirm">パスワードの再入力</label>
<input id="password-confirm" name="password_confirmation" class="form-control" type="password" required>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<h6 class="grey-text">プライバシーに関するオプション (全て任意です)</h6>
<p>
<input id="protected" name="is_protected" class="filled-in" type="checkbox" {{ old('is_protected') ? 'checked' : '' }}>
<label for="protected">チェックイン履歴を非公開にする</label>
</p>
<p>
<input id="accept-analytics" name="accept_analytics" class="filled-in" type="checkbox" {{ old('accept_analytics') ? 'checked' : '' }}>
<label for="accept-analytics">匿名での統計にチェックインデータを利用することに同意します</label>
</p>
<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>
</div>
</div>
<div class="row center">
<div class="input-field col s12">
<button class="btn waves-effect waves-light teal lighten-2" type="submit">登録</button>
<div class="text-center">
<button class="btn btn-primary btn-lg" type="submit">登録</button>
</div>
</div>
</form>
</form>
</div>
</div>
</div>
@endsection