Skip to content

Commit 5c4222c

Browse files
Merge pull request #74 from joshbenham/enhancements/confirm-password
Added a theme file for the confirm password route that got added in
2 parents f2861eb + 3554aa6 commit 5c4222c

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
@extends('layouts.app')
2+
3+
@section('content')
4+
<div class="container mx-auto">
5+
<div class="flex flex-wrap justify-center">
6+
<div class="w-full max-w-sm">
7+
<div class="flex flex-col break-words bg-white border border-2 rounded shadow-md">
8+
9+
<div class="font-semibold bg-gray-200 text-gray-700 py-3 px-6 mb-0">
10+
{{ __('Confirm Password') }}
11+
</div>
12+
13+
<form class="w-full p-6" method="POST" action="{{ route('password.confirm') }}">
14+
@csrf
15+
16+
<p class="leading-normal">
17+
{{ __('Please confirm your password before continuing.') }}
18+
</p>
19+
20+
<div class="flex flex-wrap my-6">
21+
<label for="password" class="block text-gray-700 text-sm font-bold mb-2">
22+
{{ __('Password') }}:
23+
</label>
24+
25+
<input id="password" type="password" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline @error('password') border-red-500 @enderror" name="password" required autocomplete="new-password">
26+
27+
@error('password')
28+
<p class="text-red-500 text-xs italic mt-4">
29+
{{ $message }}
30+
</p>
31+
@enderror
32+
</div>
33+
34+
<div class="flex flex-wrap items-center">
35+
<button type="submit" class="bg-blue-500 hover:bg-blue-700 text-gray-100 font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline">
36+
{{ __('Confirm Password') }}
37+
</button>
38+
39+
@if (Route::has('password.request'))
40+
<a class="text-sm text-blue-500 hover:text-blue-700 whitespace-no-wrap no-underline ml-auto" href="{{ route('password.request') }}">
41+
{{ __('Forgot Your Password?') }}
42+
</a>
43+
@endif
44+
</div>
45+
</form>
46+
47+
</div>
48+
</div>
49+
</div>
50+
</div>
51+
@endsection

0 commit comments

Comments
 (0)