2017-08-31 17:20:58 +01:00
|
|
|
<form role="form" method="POST" action="{{ url('/register') }}">
|
2017-03-23 04:29:29 +00:00
|
|
|
{{ csrf_field() }}
|
|
|
|
|
2017-09-12 20:23:48 +01:00
|
|
|
<div class="form-group row">
|
2017-03-23 04:29:29 +00:00
|
|
|
<label for="name" class="col-md-4 col-form-label text-md-right">@lang('forms.realname_label')</label>
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
2017-09-12 20:23:48 +01:00
|
|
|
<input id="name" type="text" class="form-control{{ $errors->has('name') ? ' is-invalid' : '' }}" name="name" value="{{ old('name') }}" autofocus>
|
2017-03-23 04:29:29 +00:00
|
|
|
|
|
|
|
@if ($errors->has('name'))
|
2017-09-12 20:23:48 +01:00
|
|
|
<div class="invalid-feedback">
|
2017-03-23 04:29:29 +00:00
|
|
|
<strong>{{ $errors->first('name') }}</strong>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-09-12 20:23:48 +01:00
|
|
|
<div class="form-group row">
|
2017-03-23 04:29:29 +00:00
|
|
|
<label for="email" class="col-md-4 col-form-label text-md-right">@lang('forms.email_label')</label>
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
2017-09-12 20:23:48 +01:00
|
|
|
<input id="email" type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" name="email" value="{{ old('email') }}">
|
2017-03-23 04:29:29 +00:00
|
|
|
|
|
|
|
@if ($errors->has('email'))
|
2017-09-12 20:23:48 +01:00
|
|
|
<div class="invalid-feedback">
|
2017-03-23 04:29:29 +00:00
|
|
|
<strong>{{ $errors->first('email') }}</strong>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-09-12 20:23:48 +01:00
|
|
|
<div class="form-group row">
|
2017-03-23 04:29:29 +00:00
|
|
|
<label for="password" class="col-md-4 col-form-label text-md-right">@lang('forms.password_label')</label>
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
2017-09-12 20:23:48 +01:00
|
|
|
<input id="password" type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" name="password">
|
2017-03-23 04:29:29 +00:00
|
|
|
|
|
|
|
@if ($errors->has('password'))
|
2017-09-12 20:23:48 +01:00
|
|
|
<div class="invalid-feedback">
|
2017-03-23 04:29:29 +00:00
|
|
|
<strong>{{ $errors->first('password') }}</strong>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-09-12 20:23:48 +01:00
|
|
|
<div class="form-group row">
|
2017-03-23 04:29:29 +00:00
|
|
|
<label for="password-confirm" class="col-md-4 col-form-label text-md-right">@lang('forms.password_confirm_label')</label>
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
2017-09-12 20:23:48 +01:00
|
|
|
<input id="password-confirm" type="password" class="form-control{{ $errors->has('password_confirmation') ? ' is-invalid' : '' }}" name="password_confirmation">
|
2017-03-23 04:29:29 +00:00
|
|
|
|
|
|
|
@if ($errors->has('password_confirmation'))
|
2017-09-12 20:23:48 +01:00
|
|
|
<div class="invalid-feedback">
|
2017-03-23 04:29:29 +00:00
|
|
|
<strong>{{ $errors->first('password_confirmation') }}</strong>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@if (UserConfig::get('recaptcha_enabled_registration'))
|
|
|
|
<div class="form-group row">
|
|
|
|
@if ($errors->has('recaptcha'))
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="alert alert-danger">
|
|
|
|
<i class="fa fa-fw fa-warning"></i>
|
|
|
|
{{ $errors->first('recaptcha') }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2017-09-10 21:33:13 +01:00
|
|
|
<div class="col-md-2"><!-- --></div>
|
|
|
|
<div class="col-md-8">
|
2017-03-23 04:29:29 +00:00
|
|
|
<div class="g-recaptcha" data-sitekey="{{ UserConfig::get('recaptcha_site_key') }}"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<div class="form-group row">
|
2017-09-10 21:33:13 +01:00
|
|
|
<div class="col-md-2"><!-- --></div>
|
|
|
|
<div class="col-md-8 text-right">
|
2017-03-23 04:29:29 +00:00
|
|
|
<a href="{{ route('home') }}" class="btn btn-link">@lang('forms.cancel_action')</a>
|
|
|
|
<button type="submit" class="btn btn-success"><i class="fa fa-fw fa-check"></i> @lang('forms.register_action')</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
@if (UserConfig::get('recaptcha_enabled_registration'))
|
|
|
|
@push('scripts')
|
|
|
|
<script src="https://www.google.com/recaptcha/api.js"></script>
|
|
|
|
@endpush
|
|
|
|
@endif
|