Skip to content

Commit

Permalink
Updated views for reset password.
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemjohn committed Apr 17, 2019
1 parent 2282f37 commit 9b006c3
Show file tree
Hide file tree
Showing 7 changed files with 148 additions and 110 deletions.
2 changes: 0 additions & 2 deletions admin/views/auth/emails/password.blade.php

This file was deleted.

36 changes: 0 additions & 36 deletions admin/views/auth/passwords.blade.php

This file was deleted.

37 changes: 37 additions & 0 deletions admin/views/auth/passwords/email.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
@include('notifications')

<div class="login-box">
<div class="logo">
<a href="{!! guard_url('/') !!}"><img src="{!!theme_asset('img/logo/logo.svg')!!}" class="img-responsive center-block" alt="logo" title="Lavalite"></a>
</div>
<div class="body">
<h2>Reset Password</h2>
{!!Form::vertical_open()
->id('reset')
->action(guard_url('password/email'))
->method('POST')!!}
<div class="form-group has-feedback">
{!! Form::email('email')
->required()
->placeholder('Enter your email')
->raw() !!}
<span class="fa fa-user-circle form-control-feedback"></span>
</div>


<button type="submit" class="btn theme-btn btn-block mt-20">Send Password</button>
<br/>
<p class="text-center mb-0">Back to <a href="{{guard_url("login")}}" class="mt-10">login</a></p>

{!! Form::close() !!}
</div>
</div>
<div class="stripes-wraper">
<div class="stripes">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</div>
60 changes: 60 additions & 0 deletions admin/views/auth/passwords/reset.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
@include('notifications')

<div class="login-box">
<div class="logo">
<a href="{!! guard_url('/') !!}"><img src="{!!theme_asset('img/logo/logo.svg')!!}" class="img-responsive center-block" alt="logo" title="Lavalite"></a>
</div>
<div class="body">
<h2>Reset Password</h2>
<form method="POST" action="{{ route('guard.password.update', ['guard' => 'admin']) }}" class="form-vertical">
@csrf

<input type="hidden" name="token" value="{{ $token }}">

<div class="form-group has-feedback ">

<input id="email" type="email" class="form-control {{ $errors->has('email') ? ' is-invalid' : '' }}" name="email" value="{{ $email ?? old('email') }}" required autofocus placeholder="{{ __('E-Mail Address') }}">
<span class="fa fa-user-circle form-control-feedback"></span>

@if ($errors->has('email'))
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
</div>

<div class="form-group has-feedback">
<input id="password" type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" name="password" required placeholder="{{ __('Password') }}">
<span class="fa fa-key form-control-feedback"></span>
@if ($errors->has('password'))
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</div>

<div class="form-group has-feedback">
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required placeholder="{{ __('Confirm Password') }}">
<span class="fa fa-key form-control-feedback"></span>
</div>

<button type="submit" class="btn theme-btn btn-block mt-20">
{{ __('Reset Password') }}
</button>
<br/>
<p class="text-center mb-0">Back to <a href="{{guard_url("login")}}" class="mt10">login</a></p>

</form>
</div>
</div>
<div class="stripes-wraper">
<div class="stripes">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</div>


51 changes: 0 additions & 51 deletions admin/views/auth/reset.blade.php

This file was deleted.

21 changes: 21 additions & 0 deletions admin/views/auth/verify.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Verify Your Email Address') }}</div>

<div class="card-body">
@if (session('resent'))
<div class="alert alert-success" role="alert">
{{ __('A fresh verification link has been sent to your email address.') }}
</div>
@endif

{{ __('Before proceeding, please check your email for a verification link.') }}
{{ __('If you did not receive the email') }}, <a href="{{ route('guard.verification.resend', ['guard' => 'admin']) }}">{{ __('click here to request another') }}</a>.
</div>
</div>
</div>
</div>
</div>
51 changes: 30 additions & 21 deletions client/views/auth/passwords/reset.blade.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
@extends('layouts.app')

@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Reset Password') }}</div>

<div class="card-body">
<form method="POST" action="{{ route('password.update') }}">
@include('notifications')
<div class="box" style="min-width: 480px;">
<div class="logo">
<a href="{{guard_url('/')}}"><img src="{{theme_asset('img/logo/logo.svg')}}" class="img-responsive center-block" alt="logo" title="Lavalite"></a>
</div>
<div class="body">
<h2>Reset Password</h2>
<form method="POST" action="{{ route('guard.password.update', ['guard' => 'client']) }}">
@csrf

<input type="hidden" name="token" value="{{ $token }}">

<div class="form-group row">
<label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>
<label for="email" class="col-md-5 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>

<div class="col-md-6">
<div class="col-md-7">
<input id="email" type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" name="email" value="{{ $email ?? old('email') }}" required autofocus>

@if ($errors->has('email'))
Expand All @@ -28,9 +25,9 @@
</div>

<div class="form-group row">
<label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password') }}</label>
<label for="password" class="col-md-5 col-form-label text-md-right">{{ __('Password') }}</label>

<div class="col-md-6">
<div class="col-md-7">
<input id="password" type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" name="password" required>

@if ($errors->has('password'))
Expand All @@ -42,9 +39,9 @@
</div>

<div class="form-group row">
<label for="password-confirm" class="col-md-4 col-form-label text-md-right">{{ __('Confirm Password') }}</label>
<label for="password-confirm" class="col-md-5 col-form-label text-md-right">{{ __('Confirm Password') }}</label>

<div class="col-md-6">
<div class="col-md-7">
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required>
</div>
</div>
Expand All @@ -57,9 +54,21 @@
</div>
</div>
</form>
</div>
</div>
<div class="text-center social-links">
<h3><span class="login">social login</span></h3>
<a href="{!!guard_url('login/facebook')!!}"><i class="fab fa-facebook-square" aria-hidden="true"></i></a>
<a href="{!!guard_url('login/twitter')!!}"><i class="fab fa-twitter-square" aria-hidden="true"></i></a>
<a href="{!!guard_url('login/google')!!}"><i class="fab fa-google-plus-square" aria-hidden="true"></i></a>
<a href="{!!guard_url('login/linkedin')!!}"><i class="fab fa-linkedin" aria-hidden="true"></i></a>
</div>
</div>
<div class="stripes-wraper">
<div class="stripes">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</div>
</div>
</div>
@endsection

0 comments on commit 9b006c3

Please sign in to comment.