-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Removue unused data * added texts * Fix nabar z-index * Fix reset password * Added styles
- Loading branch information
1 parent
e69e831
commit 74e7e5e
Showing
11 changed files
with
149 additions
and
212 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
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,3 +1,89 @@ | ||
<template> | ||
<div>Reset password</div> | ||
<PageLayout> | ||
<!-- Inertia page head --> | ||
<Head :title="$t('password_reset')" /> | ||
|
||
<Alert | ||
v-if="status" | ||
class="fixed right-10 top-10 w-96 z-103" | ||
type="success" | ||
:message="status" | ||
/> | ||
|
||
<!-- Auth template. --> | ||
<Auth :content="content"> | ||
<form class="mt-4 space-y-6 lg:mb-28" @submit.prevent="submit"> | ||
<!-- Password --> | ||
<Input | ||
:label="$t('password')" | ||
id="password" | ||
type="password" | ||
v-model="form.password" | ||
:isRequired="true" | ||
:error="form.errors.password" | ||
/> | ||
|
||
<!-- Confirm password --> | ||
<Input | ||
:label="$t('password_confirmation')" | ||
id="password-confirmation" | ||
type="password" | ||
v-model="form.password_confirmation" | ||
:isRequired="true" | ||
:error="form.errors.password_confirmation" | ||
/> | ||
|
||
<!-- Action --> | ||
<div class="grid grid-cols-1"> | ||
<PrimaryButton | ||
background="primary-500" | ||
hover="primary-400" | ||
color="white" | ||
:class="{ 'opacity-25': form.processing }" | ||
:disabled="form.processing" | ||
> | ||
{{ $t('save') }} | ||
</PrimaryButton> | ||
</div> | ||
</form> | ||
</Auth> | ||
</PageLayout> | ||
</template> | ||
|
||
<script setup> | ||
/** Import from inertia. */ | ||
import { Head, useForm } from '@inertiajs/vue3'; | ||
/** Import components. */ | ||
import PageLayout from '@/Layouts/PageLayout.vue'; | ||
import Auth from '@/Components/templates/Auth.vue'; | ||
import PrimaryButton from '@/Components/buttons/PrimaryButton.vue'; | ||
import Input from '@/Components/form/Input.vue'; | ||
import Alert from '@/Components/Alert.vue'; | ||
/** Component props. */ | ||
const props = defineProps({ | ||
status: { type: String }, | ||
token: { type: String }, | ||
email: {type: String} | ||
}); | ||
/** Page content. */ | ||
const content = { | ||
title: "Resetează parola", | ||
description: "Resetează parola", | ||
} | ||
/** Form variables. */ | ||
const form = useForm({ | ||
email: props.email, | ||
password: '', | ||
password_confirmation: '', | ||
token: props.token | ||
}); | ||
/** Submit action. */ | ||
const submit = () => { | ||
form.post(route('password.store'), {}); | ||
}; | ||
</script> |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.