Updated reset-password flow design

Fixes #800
This commit is contained in:
Dan Brown 2018-04-14 16:16:29 +01:00
parent fae564ff32
commit dfadaa28f6
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
2 changed files with 40 additions and 37 deletions

View File

@ -11,23 +11,26 @@
<div class="text-center"> <div class="text-center">
<div class="center-box text-left"> <div class="card center-box">
<h1>{{ trans('auth.reset_password') }}</h1> <h3>@icon('permission') {{ trans('auth.reset_password') }}</h3>
<p class="muted small">{{ trans('auth.reset_password_send_instructions') }}</p> <div class="body">
<p class="muted small">{{ trans('auth.reset_password_send_instructions') }}</p>
<form action="{{ baseUrl("/password/email") }}" method="POST"> <form action="{{ baseUrl("/password/email") }}" method="POST">
{!! csrf_field() !!} {!! csrf_field() !!}
<div class="form-group"> <div class="form-group">
<label for="email">{{ trans('auth.email') }}</label> <label for="email">{{ trans('auth.email') }}</label>
@include('form/text', ['name' => 'email']) @include('form/text', ['name' => 'email'])
</div> </div>
<div class="from-group text-right">
<button class="button primary">{{ trans('auth.reset_password_send_button') }}</button>
</div>
</form>
</div>
<div class="from-group">
<button class="button block pos">{{ trans('auth.reset_password_send_button') }}</button>
</div>
</form>
</div> </div>
</div> </div>

View File

@ -7,38 +7,38 @@
@endif @endif
@stop @stop
@section('body-class', 'image-cover login')
@section('content') @section('content')
<div class="text-center"> <div class="text-center">
<div class="center-box text-left"> <div class="card center-box">
<h1>{{ trans('auth.reset_password') }}</h1> <h3>@icon('permission') {{ trans('auth.reset_password') }}</h3>
<form action="{{ baseUrl("/password/reset") }}" method="POST"> <div class="body">
{!! csrf_field() !!} <form action="{{ baseUrl("/password/reset") }}" method="POST">
<input type="hidden" name="token" value="{{ $token }}"> {!! csrf_field() !!}
<input type="hidden" name="token" value="{{ $token }}">
<div class="form-group"> <div class="form-group">
<label for="email">{{ trans('auth.email') }}</label> <label for="email">{{ trans('auth.email') }}</label>
@include('form/text', ['name' => 'email']) @include('form/text', ['name' => 'email'])
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="password">{{ trans('auth.password') }}</label> <label for="password">{{ trans('auth.password') }}</label>
@include('form/password', ['name' => 'password']) @include('form/password', ['name' => 'password'])
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="password_confirmation">{{ trans('auth.password_confirm') }}</label> <label for="password_confirmation">{{ trans('auth.password_confirm') }}</label>
@include('form/password', ['name' => 'password_confirmation']) @include('form/password', ['name' => 'password_confirmation'])
</div> </div>
<div class="from-group text-right">
<button class="button primary">{{ trans('auth.reset_password') }}</button>
</div>
</form>
</div>
<div class="from-group">
<button class="button block pos">{{ trans('auth.reset_password') }}</button>
</div>
</form>
</div> </div>
</div> </div>