fix: validar datas fiscais e iniciar revisao integrada do simulador

This commit is contained in:
2026-10-20 20:03:40 +02:00
parent e69ab1499f
commit 59ab4fe956
10 changed files with 80 additions and 24 deletions
+13 -11
View File
@@ -28,15 +28,15 @@ export default function Security(props: Props) {
return (
<>
<Head title="Security settings" />
<Head title="Definições de segurança" />
<h1 className="sr-only">Security settings</h1>
<h1 className="sr-only">Definições de segurança</h1>
<div className="space-y-6">
<Heading
variant="small"
title="Update password"
description="Ensure your account is using a long, random password to stay secure"
title="Alterar palavra-passe"
description="Use uma palavra-passe longa e difícil de adivinhar para proteger a sua conta."
/>
<Form
@@ -65,7 +65,7 @@ export default function Security(props: Props) {
<>
<div className="grid gap-2">
<Label htmlFor="current_password">
Current password
Palavra-passe actual
</Label>
<PasswordInput
@@ -74,14 +74,16 @@ export default function Security(props: Props) {
name="current_password"
className="mt-1 block w-full"
autoComplete="current-password"
placeholder="Current password"
placeholder="Palavra-passe actual"
/>
<InputError message={errors.current_password} />
</div>
<div className="grid gap-2">
<Label htmlFor="password">New password</Label>
<Label htmlFor="password">
Nova palavra-passe
</Label>
<PasswordInput
id="password"
@@ -89,7 +91,7 @@ export default function Security(props: Props) {
name="password"
className="mt-1 block w-full"
autoComplete="new-password"
placeholder="New password"
placeholder="Nova palavra-passe"
passwordrules={props.passwordRules}
/>
@@ -98,7 +100,7 @@ export default function Security(props: Props) {
<div className="grid gap-2">
<Label htmlFor="password_confirmation">
Confirm password
Confirmar palavra-passe
</Label>
<PasswordInput
@@ -106,7 +108,7 @@ export default function Security(props: Props) {
name="password_confirmation"
className="mt-1 block w-full"
autoComplete="new-password"
placeholder="Confirm password"
placeholder="Confirmar palavra-passe"
passwordrules={props.passwordRules}
/>
@@ -120,7 +122,7 @@ export default function Security(props: Props) {
disabled={processing}
data-test="update-password-button"
>
Save
Guardar
</Button>
</div>
</>