Improve registration page and add a rules option

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-06-15 11:01:49 +02:00
parent 33e9b80b95
commit 97197e3811
28 changed files with 1329 additions and 1205 deletions

View File

@@ -39,9 +39,13 @@
</b-field>
<p class="control has-text-centered">
<b-button type="is-primary" size="is-large" native-type="submit">{{
$t("Create my profile")
}}</b-button>
<b-button
type="is-primary"
size="is-large"
native-type="submit"
:disabled="sendingValidation"
>{{ $t("Create my profile") }}</b-button
>
</p>
</form>
@@ -54,11 +58,13 @@
})
}}
</h2>
<p>{{ $t("A validation email was sent to {email}", { email }) }}</p>
<i18n path="A validation email was sent to {email}" tag="p">
<code slot="email">{{ email }}</code>
</i18n>
<p>
{{
$t(
"Before you can login, you need to click on the link inside it to validate your account"
"Before you can login, you need to click on the link inside it to validate your account."
)
}}
</p>
@@ -141,6 +147,7 @@ export default class Register extends mixins(identityEditionMixin) {
);
console.error("Error while registering person", errorCatched);
console.error("Errors while registering person", this.errors);
this.sendingValidation = false;
}
}
}