commit
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-28 12:06:05 +02:00
parent 90a6848721
commit 4d42f083ce
82 changed files with 7538 additions and 76 deletions
+13 -13
View File
@@ -16,7 +16,7 @@ type Props = {
export default function Register({ passwordRules }: Props) {
return (
<>
<Head title="Register" />
<Head title="Registar" />
<Form
{...store.form()}
resetOnSuccess={['password', 'password_confirmation']}
@@ -27,7 +27,7 @@ export default function Register({ passwordRules }: Props) {
<>
<div className="grid gap-6">
<div className="grid gap-2">
<Label htmlFor="name">Name</Label>
<Label htmlFor="name">Nome</Label>
<Input
id="name"
type="text"
@@ -36,7 +36,7 @@ export default function Register({ passwordRules }: Props) {
tabIndex={1}
autoComplete="name"
name="name"
placeholder="Full name"
placeholder="Nome completo"
/>
<InputError
message={errors.name}
@@ -45,7 +45,7 @@ export default function Register({ passwordRules }: Props) {
</div>
<div className="grid gap-2">
<Label htmlFor="email">Email address</Label>
<Label htmlFor="email">Endereço de email</Label>
<Input
id="email"
type="email"
@@ -59,14 +59,14 @@ export default function Register({ passwordRules }: Props) {
</div>
<div className="grid gap-2">
<Label htmlFor="password">Password</Label>
<Label htmlFor="password">Palavra-passe</Label>
<PasswordInput
id="password"
required
tabIndex={3}
autoComplete="new-password"
name="password"
placeholder="Password"
placeholder="Palavra-passe"
passwordrules={passwordRules}
/>
<InputError message={errors.password} />
@@ -74,7 +74,7 @@ export default function Register({ passwordRules }: Props) {
<div className="grid gap-2">
<Label htmlFor="password_confirmation">
Confirm password
Confirmar palavra-passe
</Label>
<PasswordInput
id="password_confirmation"
@@ -82,7 +82,7 @@ export default function Register({ passwordRules }: Props) {
tabIndex={4}
autoComplete="new-password"
name="password_confirmation"
placeholder="Confirm password"
placeholder="Confirmar palavra-passe"
passwordrules={passwordRules}
/>
<InputError
@@ -97,14 +97,14 @@ export default function Register({ passwordRules }: Props) {
data-test="register-user-button"
>
{processing && <Spinner />}
Create account
Criar conta
</Button>
</div>
<div className="text-center text-sm text-muted-foreground">
Already have an account?{' '}
Já tem conta?{' '}
<TextLink href={login()} tabIndex={6}>
Log in
Entrar
</TextLink>
</div>
</>
@@ -115,6 +115,6 @@ export default function Register({ passwordRules }: Props) {
}
Register.layout = {
title: 'Create an account',
description: 'Enter your details below to create your account',
title: 'Criar conta',
description: 'Registe a conta para configurar a sua empresa',
};