FEATURE #2047: use laravel's authorization
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageHeading', trans('register.heading'))
|
||||
|
||||
@section('page')
|
||||
<div class="auth">
|
||||
<div class="auth-container">
|
||||
<div class="card">
|
||||
<header class="auth-header">
|
||||
<h1 class="auth-title">
|
||||
@lang('register.heading')
|
||||
</h1>
|
||||
</header>
|
||||
<div class="auth-content">
|
||||
<form class="form-horizontal" method="POST" action="{{ route('register') }}">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
|
||||
<label for="name">@lang('register.name')</label>
|
||||
|
||||
<input id="name" type="text" class="form-control underlined" name="name"
|
||||
value="{{ old('name') }}" placeholder="@lang('register.name')"
|
||||
required autofocus>
|
||||
|
||||
@if ($errors->has('name'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('name') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
|
||||
<label for="email">@lang('register.email')</label>
|
||||
|
||||
<input id="email" type="email" class="form-control underlined" name="email"
|
||||
placeholder="@lang('admin/loginForm.yourEmail')"
|
||||
value="{{ old('email') }}" required>
|
||||
|
||||
@if ($errors->has('email'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('email') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
|
||||
<label for="password">@lang('register.password')</label>
|
||||
|
||||
<input id="password" type="password" class="form-control underlined" name="password"
|
||||
required>
|
||||
|
||||
@if ($errors->has('password'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('password') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password-confirm">@lang('register.passwordConfirm')</label>
|
||||
<input id="password-confirm" type="password" class="form-control underlined"
|
||||
name="password_confirmation" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{!! \Greggilbert\Recaptcha\Facades\Recaptcha::render() !!}
|
||||
|
||||
@if ($errors->has('g-recaptcha-response'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('g-recaptcha-response') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-primary btn-block">
|
||||
@lang('register.register')
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user