register.blade.php 2.12 KB
Newer Older
Timothée Jaussoin's avatar
Timothée Jaussoin committed
1
@extends('layouts.main')
2 3

@section('content')
4

5 6
@if (config('instance.intro_registration'))
    <p>{!! nl2br(config('instance.intro_registration')) !!}</p>
7
@endif
Timothée Jaussoin's avatar
Timothée Jaussoin committed
8 9 10 11 12 13
<p>
    You already have an account?
    <a class="ml-2 btn btn-primary btn-sm" href="{{ route('account.login') }}">Authenticate</a>
</p>

<hr />
14 15 16 17 18 19 20 21 22

<h2>Register a new account</h2>

{!! Form::open(['route' => 'account.store']) !!}

<p>Fill a username and an email address OR phone number, you will then be able to set a password to finish the registration process.</p>

<div class="form-group">
    {!! Form::label('username', 'Username') !!}
Timothée Jaussoin's avatar
Timothée Jaussoin committed
23 24 25 26 27 28
    <div class=" input-group mb-3">
        {!! Form::text('username', old('username'), ['class' => 'form-control', 'placeholder' => 'username', 'required']) !!}
        <div class="input-group-append">
            <span class="input-group-text" id="basic-addon2">{{ $domain }}</span>
        </div>
    </div>
29 30 31 32 33
</div>

<hr />
<div class="form-row">
    <div class="form-group col-md-6">
34
        {!! Form::label('email', 'Email') !!}
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
        {!! Form::email('email', old('email'), ['class' => 'form-control', 'placeholder' => 'username@server.com']) !!}
    </div>
    <div class="form-group col-md-6">
        {!! Form::label('email_confirmation', 'Email confirmation') !!}
        {!! Form::email('email_confirmation', old('email_confirm'), ['class' => 'form-control', 'placeholder' => 'username@server.com']) !!}
    </div>
</div>

<h2 class="text-center mb-0">OR</h2>

<div class="form-group">
    {!! Form::label('phone', 'Phone number') !!}
    {!! Form::text('phone', old('phone'), ['class' => 'form-control', 'placeholder' => '+123456789']) !!}
</div>

Timothée Jaussoin's avatar
Timothée Jaussoin committed
50
<div class="form-check mb-3">
51 52 53
    <a href="{{ route('account.terms') }}">Terms and Conditions</a><br />
    {!! Form::checkbox('terms', 'checked', false, ['class' => 'form-check-input', 'id' => 'terms']) !!}
    <label class="form-check-label" for="terms">I accept the Terms and Conditions</a></label>
Timothée Jaussoin's avatar
Timothée Jaussoin committed
54 55
</div>

56 57 58 59 60
<div class="form-group">
    {!! NoCaptcha::renderJs() !!}
    {!! NoCaptcha::display() !!}
</div>

61
{!! Form::submit('Register', ['class' => 'btn btn-primary']) !!}
62 63 64
{!! Form::close() !!}

@endsection