TOS on register site
This commit is contained in:
parent
ab26a20dde
commit
81662b8e17
|
@ -67,6 +67,9 @@ class RegisterController extends Controller
|
||||||
if (config('SETTINGS::RECAPTCHA:ENABLED') == 'true') {
|
if (config('SETTINGS::RECAPTCHA:ENABLED') == 'true') {
|
||||||
$validationRules['g-recaptcha-response'] = ['required', 'recaptcha'];
|
$validationRules['g-recaptcha-response'] = ['required', 'recaptcha'];
|
||||||
}
|
}
|
||||||
|
if (config('SETTINGS::SYSTEM:SHOW_TOS') == 'true') {
|
||||||
|
$validationRules['terms'] = ['required'];
|
||||||
|
}
|
||||||
|
|
||||||
if (config('SETTINGS::SYSTEM:REGISTER_IP_CHECK', 'true') == 'true') {
|
if (config('SETTINGS::SYSTEM:REGISTER_IP_CHECK', 'true') == 'true') {
|
||||||
|
|
||||||
|
|
|
@ -3,184 +3,193 @@
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<body class="hold-transition dark-mode register-page">
|
<body class="hold-transition dark-mode register-page">
|
||||||
<div class="register-box">
|
<div class="register-box">
|
||||||
<div class="card card-outline card-primary">
|
<div class="card card-outline card-primary">
|
||||||
<div class="card-header text-center">
|
<div class="card-header text-center">
|
||||||
<a href="{{ route('welcome') }}" class="h1"><b
|
<a href="{{ route('welcome') }}" class="h1"><b
|
||||||
class="mr-1">{{ config('app.name', 'Laravel') }}</b></a>
|
class="mr-1">{{ config('app.name', 'Laravel') }}</b></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
@if (!config('SETTINGS::SYSTEM:CREATION_OF_NEW_USERS'))
|
@if (!config('SETTINGS::SYSTEM:CREATION_OF_NEW_USERS'))
|
||||||
<div class="alert alert-warning p-2 m-2">
|
<div class="alert alert-warning p-2 m-2">
|
||||||
<h5><i class="icon fas fa-exclamation-circle"></i> {{ __('Warning!') }}</h5>
|
<h5><i class="icon fas fa-exclamation-circle"></i> {{ __('Warning!') }}</h5>
|
||||||
{{ __('The system administrator has blocked the registration of new users') }}
|
{{ __('The system administrator has blocked the registration of new users') }}
|
||||||
</div>
|
</div>
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<a class="btn btn-primary" href="{{ route('login') }}">{{ __('Back') }}</a>
|
<a class="btn btn-primary" href="{{ route('login') }}">{{ __('Back') }}</a>
|
||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
<p class="login-box-msg">{{ __('Register a new membership') }}</p>
|
<p class="login-box-msg">{{ __('Register a new membership') }}</p>
|
||||||
|
|
||||||
<form method="POST" action="{{ route('register') }}">
|
<form method="POST" action="{{ route('register') }}">
|
||||||
|
|
||||||
@error('ip')
|
@error('ip')
|
||||||
<span class="text-danger" role="alert">
|
<span class="text-danger" role="alert">
|
||||||
<small><strong>{{ $message }}</strong></small>
|
<small><strong>{{ $message }}</strong></small>
|
||||||
</span>
|
</span>
|
||||||
@enderror
|
@enderror
|
||||||
|
|
||||||
@error('registered')
|
@error('registered')
|
||||||
<span class="text-danger" role="alert">
|
<span class="text-danger" role="alert">
|
||||||
<small><strong>{{ $message }}</strong></small>
|
<small><strong>{{ $message }}</strong></small>
|
||||||
</span>
|
</span>
|
||||||
@enderror
|
@enderror
|
||||||
@if ($errors->has('ptero_registration_error'))
|
@if ($errors->has('ptero_registration_error'))
|
||||||
@foreach ($errors->get('ptero_registration_error') as $err)
|
@foreach ($errors->get('ptero_registration_error') as $err)
|
||||||
<span class="text-danger" role="alert">
|
<span class="text-danger" role="alert">
|
||||||
<small><strong>{{ $err }}</strong></small>
|
<small><strong>{{ $err }}</strong></small>
|
||||||
</span>
|
</span>
|
||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@csrf
|
@csrf
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input type="text" class="form-control @error('name') is-invalid @enderror"
|
<input type="text" class="form-control @error('name') is-invalid @enderror"
|
||||||
name="name" value="{{ old('name') }}" placeholder="{{ __('Username') }}"
|
name="name" value="{{ old('name') }}" placeholder="{{ __('Username') }}"
|
||||||
required autocomplete="name" autofocus>
|
required autocomplete="name" autofocus>
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<div class="input-group-text">
|
<div class="input-group-text">
|
||||||
<span class="fas fa-user"></span>
|
<span class="fas fa-user"></span>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@error('name')
|
</div>
|
||||||
<span class="text-danger" role="alert">
|
@error('name')
|
||||||
|
<span class="text-danger" role="alert">
|
||||||
<small><strong>{{ $message }}</strong></small>
|
<small><strong>{{ $message }}</strong></small>
|
||||||
</span>
|
</span>
|
||||||
@enderror
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="input-group mb-3">
|
|
||||||
<input type="email" name="email"
|
|
||||||
class="form-control @error('email') is-invalid @enderror"
|
|
||||||
placeholder="{{ __('Email') }}" value="{{ old('email') }}" required
|
|
||||||
autocomplete="email">
|
|
||||||
<div class="input-group-append">
|
|
||||||
<div class="input-group-text">
|
|
||||||
<span class="fas fa-envelope"></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@error('email')
|
|
||||||
<span class="text-danger" role="alert">
|
|
||||||
<small><strong>{{ $message }}</strong></small>
|
|
||||||
</span>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<input type="password" class="form-control @error('password') is-invalid @enderror"
|
|
||||||
placeholder="{{ __('Password') }}" name="password" required
|
|
||||||
autocomplete="new-password">
|
|
||||||
<div class="input-group-append">
|
|
||||||
<div class="input-group-text">
|
|
||||||
<span class="fas fa-lock"></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@error('password')
|
|
||||||
<span class="text-danger" role="alert">
|
|
||||||
<small><strong>{{ $message }}</strong></small>
|
|
||||||
</span>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
<div class="input-group mb-3">
|
||||||
<input type="password" class="form-control" name="password_confirmation"
|
<input type="email" name="email"
|
||||||
placeholder="{{ __('Retype password') }}" required autocomplete="new-password">
|
class="form-control @error('email') is-invalid @enderror"
|
||||||
|
placeholder="{{ __('Email') }}" value="{{ old('email') }}" required
|
||||||
|
autocomplete="email">
|
||||||
|
<div class="input-group-append">
|
||||||
|
<div class="input-group-text">
|
||||||
|
<span class="fas fa-envelope"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@error('email')
|
||||||
|
<span class="text-danger" role="alert">
|
||||||
|
<small><strong>{{ $message }}</strong></small>
|
||||||
|
</span>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="input-group mb-3">
|
||||||
|
<input type="password" class="form-control @error('password') is-invalid @enderror"
|
||||||
|
placeholder="{{ __('Password') }}" name="password" required
|
||||||
|
autocomplete="new-password">
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<div class="input-group-text">
|
<div class="input-group-text">
|
||||||
<span class="fas fa-lock"></span>
|
<span class="fas fa-lock"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@if (config('SETTINGS::REFERRAL::ENABLED') == 'true')
|
@error('password')
|
||||||
<div class="input-group mb-3">
|
<span class="text-danger" role="alert">
|
||||||
<input type="text" value="{{ \Request::get('ref') }}" class="form-control"
|
<small><strong>{{ $message }}</strong></small>
|
||||||
name="referral_code"
|
</span>
|
||||||
placeholder="{{ __('Referral code') }} ({{ __('optional') }})">
|
@enderror
|
||||||
<div class="input-group-append">
|
</div>
|
||||||
<div class="input-group-text">
|
|
||||||
<span class="fas fa-user-check"></span>
|
<div class="input-group mb-3">
|
||||||
</div>
|
<input type="password" class="form-control" name="password_confirmation"
|
||||||
|
placeholder="{{ __('Retype password') }}" required autocomplete="new-password">
|
||||||
|
<div class="input-group-append">
|
||||||
|
<div class="input-group-text">
|
||||||
|
<span class="fas fa-lock"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@if (config('SETTINGS::REFERRAL::ENABLED') == 'true')
|
||||||
|
<div class="input-group mb-3">
|
||||||
|
<input type="text" value="{{ Request::get('ref') }}" class="form-control"
|
||||||
|
name="referral_code"
|
||||||
|
placeholder="{{ __('Referral code') }} ({{ __('optional') }})">
|
||||||
|
<div class="input-group-append">
|
||||||
|
<div class="input-group-text">
|
||||||
|
<span class="fas fa-user-check"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
</div>
|
||||||
@if (config('SETTINGS::RECAPTCHA:ENABLED') == 'true')
|
@endif
|
||||||
<div class="input-group mb-3">
|
@if (config('SETTINGS::RECAPTCHA:ENABLED') == 'true')
|
||||||
{!! htmlFormSnippet() !!}
|
<div class="input-group mb-3">
|
||||||
@error('g-recaptcha-response')
|
{!! htmlFormSnippet() !!}
|
||||||
<span class="text-danger" role="alert">
|
@error('g-recaptcha-response')
|
||||||
|
<span class="text-danger" role="alert">
|
||||||
<small><strong>{{ $message }}</strong></small>
|
<small><strong>{{ $message }}</strong></small>
|
||||||
</span>
|
</span>
|
||||||
@enderror
|
@enderror
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-8">
|
|
||||||
|
|
||||||
{{-- <div class="icheck-primary"> --}}
|
|
||||||
{{-- <input type="checkbox" id="agreeTerms" name="terms" value="agree"> --}}
|
|
||||||
{{-- <label for="agreeTerms"> --}}
|
|
||||||
{{-- I agree to the <a href="#">terms</a> --}}
|
|
||||||
{{-- </label> --}}
|
|
||||||
{{-- </div> --}}
|
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
<div class="col-4">
|
|
||||||
<button type="submit" class="btn btn-primary">{{ __('Register') }}</button>
|
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
@endif
|
||||||
|
|
||||||
{{-- <div class="social-auth-links text-center"> --}}
|
<div class="row">
|
||||||
{{-- <a href="#" class="btn btn-block btn-primary"> --}}
|
<div class="col-12">
|
||||||
{{-- <i class="fab fa-facebook mr-2"></i> --}}
|
@if (config('SETTINGS::SYSTEM:SHOW_TOS'))
|
||||||
{{-- Sign up using Facebook --}}
|
|
||||||
{{-- </a> --}}
|
|
||||||
{{-- <a href="#" class="btn btn-block btn-danger"> --}}
|
|
||||||
{{-- <i class="fab fa-google-plus mr-2"></i> --}}
|
|
||||||
{{-- Sign up using Google+ --}}
|
|
||||||
{{-- </a> --}}
|
|
||||||
{{-- </div> --}}
|
|
||||||
|
|
||||||
<a href="{{ route('login') }}" class="text-center">{{ __('I already have a membership') }}</a>
|
<div class="icheck-primary">
|
||||||
</div>
|
<input type="checkbox" id="agreeTerms" name="terms" value="agree">
|
||||||
<!-- /.form-box -->
|
<label for="agreeTerms">
|
||||||
</div><!-- /.card -->
|
{{__("I agree to the")}} <a target="_blank" href="{{route("tos")}}">{{__("Terms of Service")}}</a>
|
||||||
</div>
|
</label>
|
||||||
<!-- /.register-box -->
|
</div>
|
||||||
|
@error('terms')
|
||||||
|
<span class="text-danger" role="alert">
|
||||||
|
<small><strong>{{ $message }}</strong></small>
|
||||||
|
</span>
|
||||||
|
@enderror
|
||||||
|
|
||||||
{{-- imprint and privacy policy --}}
|
@endif
|
||||||
<div class="fixed-bottom ">
|
</div>
|
||||||
<div class="container text-center">
|
</div>
|
||||||
@if (config('SETTINGS::SYSTEM:SHOW_IMPRINT'))
|
<!-- /.col -->
|
||||||
<a target="_blank" href="{{ route('imprint') }}"><strong>{{ __('Imprint') }}</strong></a> |
|
<div class="col-4">
|
||||||
@endif
|
<button type="submit" class="btn btn-primary">{{ __('Register') }}</button>
|
||||||
@if (config('SETTINGS::SYSTEM:SHOW_PRIVACY'))
|
</div>
|
||||||
<a target="_blank" href="{{ route('privacy') }}"><strong>{{ __('Privacy') }}</strong></a>
|
<!-- /.col -->
|
||||||
@endif
|
|
||||||
@if (config('SETTINGS::SYSTEM:SHOW_TOS'))
|
|
||||||
| <a target="_blank" href="{{ route('tos') }}"><strong>{{ __('Terms of Service') }}</strong></a>
|
|
||||||
@endif
|
|
||||||
</div>
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
{{-- <div class="social-auth-links text-center"> --}}
|
||||||
|
{{-- <a href="#" class="btn btn-block btn-primary"> --}}
|
||||||
|
{{-- <i class="fab fa-facebook mr-2"></i> --}}
|
||||||
|
{{-- Sign up using Facebook --}}
|
||||||
|
{{-- </a> --}}
|
||||||
|
{{-- <a href="#" class="btn btn-block btn-danger"> --}}
|
||||||
|
{{-- <i class="fab fa-google-plus mr-2"></i> --}}
|
||||||
|
{{-- Sign up using Google+ --}}
|
||||||
|
{{-- </a> --}}
|
||||||
|
{{-- </div> --}}
|
||||||
|
|
||||||
|
<a href="{{ route('login') }}" class="text-center">{{ __('I already have a membership') }}</a>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- /.form-box -->
|
||||||
|
</div><!-- /.card -->
|
||||||
|
</div>
|
||||||
|
<!-- /.register-box -->
|
||||||
|
|
||||||
|
{{-- imprint and privacy policy --}}
|
||||||
|
<div class="fixed-bottom ">
|
||||||
|
<div class="container text-center">
|
||||||
|
@if (config('SETTINGS::SYSTEM:SHOW_IMPRINT'))
|
||||||
|
<a target="_blank" href="{{ route('imprint') }}"><strong>{{ __('Imprint') }}</strong></a> |
|
||||||
|
@endif
|
||||||
|
@if (config('SETTINGS::SYSTEM:SHOW_PRIVACY'))
|
||||||
|
<a target="_blank" href="{{ route('privacy') }}"><strong>{{ __('Privacy') }}</strong></a>
|
||||||
|
@endif
|
||||||
|
@if (config('SETTINGS::SYSTEM:SHOW_TOS'))
|
||||||
|
| <a target="_blank" href="{{ route('tos') }}"><strong>{{ __('Terms of Service') }}</strong></a>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
@endif
|
@endif
|
||||||
@endsection
|
@endsection
|
||||||
|
|
Loading…
Reference in a new issue