-
-
Notifications
You must be signed in to change notification settings - Fork 839
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1293 from shivendra-webkul/krayin-update
Updated Login, Forget password, Reset Password Pages
- Loading branch information
Showing
9 changed files
with
363 additions
and
224 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
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
101 changes: 61 additions & 40 deletions
101
packages/Webkul/Admin/src/Resources/views/sessions/forgot-password.blade.php
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,53 +1,74 @@ | ||
@extends('admin::layouts.anonymous-master') | ||
<x-admin::layouts.anonymous> | ||
<!-- Page Title --> | ||
<x-slot:title> | ||
@lang('admin::app.users.forget-password.create.page-title') | ||
</x-slot> | ||
|
||
@section('page_title') | ||
{{ __('admin::app.sessions.forgot-password.title') }} | ||
@stop | ||
<div class="flex h-[100vh] items-center justify-center"> | ||
<div class="flex flex-col items-center gap-5"> | ||
<!-- Logo --> | ||
@if ($logo = core()->getConfigData('general.design.admin_logo.logo_image')) | ||
<img | ||
class="h-10 w-[110px]" | ||
src="{{ Storage::url($logo) }}" | ||
alt="{{ config('app.name') }}" | ||
/> | ||
@else | ||
<img | ||
class="w-max" | ||
src="{{ asset('vendor/webkul/admin/assets/images/logo.svg') }}" | ||
alt="{{ config('app.name') }}" | ||
/> | ||
@endif | ||
|
||
@section('content') | ||
<div class="panel"> | ||
<div class="panel-body"> | ||
<div class="form-container"> | ||
<h1>{{ __('admin::app.sessions.forgot-password.title') }}</h1> | ||
|
||
<form method="POST" action="{{ route('admin.forgot_password.store') }}" @submit.prevent="onSubmit"> | ||
{!! view_render_event('admin.sessions.forgot_password.form_controls.before') !!} | ||
|
||
@csrf | ||
<div class="box-shadow flex min-w-[300px] flex-col rounded-md bg-white dark:bg-gray-900"> | ||
<!-- Forget Password Form --> | ||
<x-admin::form :action="route('admin.forgot_password.store')"> | ||
<div class="p-4"> | ||
<p class="text-xl font-bold text-gray-800 dark:text-white"> | ||
@lang('admin::app.users.forget-password.create.title') | ||
</p> | ||
</div> | ||
|
||
<div class="form-group" :class="[errors.has('email') ? 'has-error' : '']"> | ||
<label for="email">{{ __('admin::app.sessions.forgot-password.email') }}</label> | ||
<div class="border-y p-4 dark:border-gray-800"> | ||
<!-- Registered Email --> | ||
<x-admin::form.control-group> | ||
<x-admin::form.control-group.label class="required"> | ||
@lang('admin::app.users.forget-password.create.email') | ||
</x-admin::form.control-group.label> | ||
|
||
<input | ||
type="text" | ||
name="email" | ||
class="control" | ||
id="email" | ||
value="{{ old('email') }}" | ||
v-validate="'required'" | ||
data-vv-as=""{{ __('admin::app.sessions.forgot-password.email') }}"" | ||
/> | ||
<x-admin::form.control-group.control | ||
type="email" | ||
class="w-[254px] max-w-full" | ||
id="email" | ||
name="email" | ||
rules="required|email" | ||
:value="old('email')" | ||
:label="trans('admin::app.users.forget-password.create.email')" | ||
:placeholder="trans('admin::app.users.forget-password.create.email')" | ||
/> | ||
|
||
<span class="control-error" v-if="errors.has('email')"> | ||
@{{ errors.first('email') }} | ||
</span> | ||
<x-admin::form.control-group.error control-name="email" /> | ||
</x-admin::form.control-group> | ||
</div> | ||
|
||
<a href="{{ route('admin.session.create') }}">{{ __('admin::app.sessions.forgot-password.back-to-login') }}</a> | ||
<div class="flex items-center justify-between p-4"> | ||
<!-- Back to Sign In link --> | ||
<a | ||
class="cursor-pointer text-xs font-semibold leading-6 text-blue-600" | ||
href="{{ route('admin.session.create') }}" | ||
> | ||
@lang('admin::app.users.forget-password.create.sign-in-link') | ||
</a> | ||
|
||
{!! view_render_event('admin.sessions.forgot_password.form_controls.after') !!} | ||
|
||
<div class="button-group"> | ||
{!! view_render_event('admin.sessions.forgot_password.form_buttons.before') !!} | ||
|
||
<button class="btn btn-xl btn-primary"> | ||
{{ __('admin::app.sessions.forgot-password.send-reset-password-email') }} | ||
<!-- Form Submit Button --> | ||
<button | ||
class="cursor-pointer rounded-md border border-blue-700 bg-blue-600 px-3.5 py-1.5 font-semibold text-gray-50"> | ||
@lang('admin::app.users.forget-password.create.submit-btn') | ||
</button> | ||
|
||
{!! view_render_event('admin.sessions.forgot_password.form_buttons.after') !!} | ||
</div> | ||
</form> | ||
</x-admin::form> | ||
</div> | ||
</div> | ||
</div> | ||
@stop | ||
</x-admin::layouts.anonymous> |
Oops, something went wrong.