generated from combindma/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Combind
committed
Apr 11, 2024
1 parent
c0ac788
commit 81aedca
Showing
10 changed files
with
141 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,41 @@ | ||
@extends('mailcoach-skeleton::auth.layout', ['title' => __mc('Log in')]) | ||
|
||
@section('content') | ||
<h1 class="markup-h2">{{ __mc('Log in') }}</h1> | ||
|
||
<form class="form-grid" method="POST" action="{{ route('login') }}"> | ||
@csrf | ||
|
||
<div class="form-field"> | ||
@error('email') | ||
<p class="form-error" role="alert"> | ||
{{ $message }} | ||
</p> | ||
@enderror | ||
|
||
<label for="email" class="label">{{ __mc('Email') }}</label> | ||
|
||
<input id="email" type="email" class="input @error('email') is-invalid @enderror" name="email" | ||
value="{{ old('email') }}" required autocomplete="email" autofocus> | ||
</div> | ||
|
||
<div class="form-field"> | ||
@error('password') | ||
<p class="form-error" role="alert"> | ||
{{ $message }} | ||
</p> | ||
@enderror | ||
|
||
<label for="password" class="label">{{ __mc('Password') }}</label> | ||
|
||
<input id="password" type="password" class="input @error('password') is-invalid @enderror" | ||
name="password" required autocomplete="current-password"> | ||
<x-mailcoach::layout :title="__mc('Login')" hide-footer hide-nav> | ||
<div class="flex flex-col gap-6 justify-center mt-12"> | ||
<div class="w-20 mx-auto"> | ||
@include('mailcoach::app.layouts.partials.logoSvg') | ||
</div> | ||
|
||
<div class="form-field"> | ||
<label class="checkbox-label" for="remember"> | ||
<input class="checkbox" type="checkbox" name="remember" id="remember" | ||
{{ old('remember') ? 'checked' : '' }}> | ||
|
||
{{ __mc('Remember me next time') }} | ||
</label> | ||
</div> | ||
|
||
<x-mailcoach::form-buttons> | ||
<x-mailcoach::button :label="__mc('Log in')" /> | ||
|
||
@if (Route::has('forgot-password')) | ||
<a class="link ml-2" href="{{ route('forgot-password') }}"> | ||
{{ __mc('Forgot Your Password?') }} | ||
</a> | ||
@endif | ||
</x-mailcoach::form-buttons> | ||
</form> | ||
@endsection | ||
<x-mailcoach::fieldset class="w-full max-w-md mx-auto" card :legend="__mc('Log in')"> | ||
<form class="form-grid" method="POST" action="{{ route('login') }}"> | ||
@csrf | ||
|
||
<x-mailcoach::text-field | ||
:label="__mc('Email')" | ||
name="email" | ||
type="email" | ||
autofocus | ||
autocomplete="email" | ||
required | ||
/> | ||
|
||
<x-mailcoach::text-field | ||
:label="__mc('Password')" | ||
name="password" | ||
type="password" | ||
autocomplete="current-password" | ||
required | ||
/> | ||
|
||
<x-mailcoach::form-buttons> | ||
<x-mailcoach::button :label="__mc('Log in')" /> | ||
|
||
@if (Route::has('forgot-password')) | ||
<a class="ml-3" href="{{ route('forgot-password') }}"> | ||
<x-mailcoach::button-link | ||
:label="__mc('Forgot Your Password?')" | ||
/> | ||
</a> | ||
@endif | ||
</x-mailcoach::form-buttons> | ||
</form> | ||
</x-mailcoach::fieldset> | ||
</div> | ||
</x-mailcoach::layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,35 @@ | ||
@extends('mailcoach-skeleton::auth.layout', ['title' => __mc('Welcome')]) | ||
@section('content') | ||
<h1 class="markup-h2">{{ __mc('Welcome') }}</h1> | ||
|
||
<form class="form-grid" method="POST"> | ||
@csrf | ||
|
||
<input type="hidden" name="email" value="{{ $user->email }}"/> | ||
|
||
<div class="form-field"> | ||
@error('password') | ||
<p class="form-error" role="alert"> | ||
{{ $message }} | ||
</p> | ||
@enderror | ||
|
||
<label for="password" class="label">{{ __mc('Password') }}</label> | ||
|
||
<input id="password" type="password" class="input @error('password') is-invalid @enderror" | ||
name="password" required autocomplete="new-password"> | ||
<x-mailcoach::layout :title="__mc('Welcome')" hide-footer hide-nav> | ||
<div class="flex flex-col gap-6 justify-center mt-12"> | ||
<div class="w-20 mx-auto"> | ||
@include('mailcoach::app.layouts.partials.logoSvg') | ||
</div> | ||
|
||
<div class="form-field"> | ||
@error('password_confirmation') | ||
<p class="form-error" role="alert"> | ||
{{ $message }} | ||
</p> | ||
@enderror | ||
|
||
<label for="password_confirmation" class="label">{{ __mc('Confirm Password') }}</label> | ||
|
||
<input id="password_confirmation" type="password" class="input @error('password_confirmation') is-invalid @enderror" | ||
name="password_confirmation" required autocomplete="new-password"> | ||
</div> | ||
|
||
<x-mailcoach::form-buttons> | ||
<x-mailcoach::button :label="__mc('Save password and login')" /> | ||
</x-mailcoach::form-buttons> | ||
</form> | ||
@endsection | ||
<x-mailcoach::fieldset class="w-full max-w-md mx-auto" card :legend="__mc('Welcome')"> | ||
<p>{{ __mc('Welcome to Mailcoach! Choose a password:') }}</p> | ||
<form class="form-grid" method="POST"> | ||
@csrf | ||
|
||
<input type="hidden" name="email" value="{{ $user->email }}"/> | ||
|
||
<x-mailcoach::text-field | ||
:label="__mc('Password')" | ||
name="password" | ||
type="password" | ||
autocomplete="new-password" | ||
required | ||
/> | ||
|
||
<x-mailcoach::text-field | ||
:label="__mc('Confirm password')" | ||
name="password_confirmation" | ||
type="password" | ||
autocomplete="new-password" | ||
required | ||
/> | ||
|
||
<x-mailcoach::form-buttons> | ||
<x-mailcoach::button :label="__mc('Save password and login')" /> | ||
</x-mailcoach::form-buttons> | ||
</form> | ||
</x-mailcoach::fieldset> | ||
</div> | ||
</x-mailcoach::layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters