working on messagesystem, password reset form
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
39
frontend/src/routes/user/ResetPw.svelte
Normal file
39
frontend/src/routes/user/ResetPw.svelte
Normal file
@@ -0,0 +1,39 @@
|
||||
<script>
|
||||
import { t } from '../../translations.svelte.js';
|
||||
import { useTinyRouter } from 'svelte-tiny-router';
|
||||
|
||||
let mail = "";
|
||||
let caption = t('user.send_mail');
|
||||
const router = useTinyRouter();
|
||||
|
||||
async function submit(ev){
|
||||
ev.preventDefault();
|
||||
caption = t('user.sent_email');
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style>
|
||||
label{display:block}
|
||||
fieldset{
|
||||
display: block;
|
||||
position: relative;
|
||||
left: 50%;
|
||||
width: 200px;
|
||||
margin-left: -100px;
|
||||
margin-bottom: 30px;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
|
||||
<form onsubmit={submit}>
|
||||
<fieldset>
|
||||
<legend>{t('user.reset_pw')}</legend>
|
||||
<label>
|
||||
<input type="email" bind:value={mail}/>
|
||||
{t('user.enter_email')}
|
||||
</label>
|
||||
<button type="submit">{caption}</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
Reference in New Issue
Block a user