feat: add password validation and error messages, enhance CityCard styling, and update localization for email and password prompts

This commit is contained in:
Sean Morley
2025-01-09 18:25:51 -05:00
parent 22790ae7c0
commit 013a2cc751
12 changed files with 154 additions and 24 deletions

View File

@@ -345,6 +345,11 @@
class="block w-full mt-1 input input-bordered input-primary"
/>
</div>
{#if $page.form?.message}
<div class="alert alert-warning">
{$t($page.form?.message)}
</div>
{/if}
<div
class="tooltip tooltip-warning"
@@ -394,7 +399,7 @@
{/if}
</div>
<form class="mt-4" on:submit={addEmail}>
<form class="mt-4" on:submit|preventDefault={addEmail}>
<input
type="email"
id="new_email"
@@ -403,7 +408,7 @@
placeholder={$t('settings.new_email')}
class="block w-full input input-bordered input-primary"
/>
<button class="w-full mt-4 btn btn-primary py-2">{$t('settings.email_change')}</button>
<button class="w-full mt-4 btn btn-primary py-2">{$t('settings.add_email')}</button>
</form>
</div>
</section>