Write a nice form to reset your password

This commit is contained in:
Robert Schäfer 2019-06-17 12:30:39 +02:00
parent 5a806ca99e
commit 7228d68149
3 changed files with 30 additions and 5 deletions

View File

@ -15,7 +15,11 @@
"hello": "Hallo"
},
"password-reset": {
"title": "Passwort zurücksetzen"
"title": "Passwort zurücksetzen",
"form": {
"description": "Eine Mail zum Zurücksetzen des Passworts wird an die angegebene E-Mail Adresse geschickt.",
"submit": "Email anfordern"
}
},
"editor": {
"placeholder": "Schreib etwas Inspirierendes..."

View File

@ -15,7 +15,11 @@
"hello": "Hello"
},
"password-reset": {
"title": "Reset your password"
"title": "Reset your password",
"form": {
"description": "A password reset email will be sent to the given email address.",
"submit": "Request email"
}
},
"editor": {
"placeholder": "Leave your inspirational thoughts..."

View File

@ -3,9 +3,26 @@
<ds-flex>
<ds-flex-item :width="{ base: '100%' }" centered>
<ds-space style="text-align: center;" margin-top="small" margin-bottom="xxx-small" centered>
<ds-heading tag="h3">
{{ $t('password-reset.title') }}
</ds-heading>
<ds-card class="password-reset-card">
<ds-space margin="large">
<form>
<ds-input
:placeholder="$t('login.email')"
type="email"
name="email"
icon="envelope"
/>
<ds-space margin-botton="large">
<ds-text>
{{ $t('password-reset.form.description') }}
</ds-text>
</ds-space>
<ds-button primary fullwidth name="submit" type="submit" icon="sign-in">
{{ $t('password-reset.form.submit') }}
</ds-button>
</form>
</ds-space>
</ds-card>
</ds-space>
</ds-flex-item>
</ds-flex>