Lib: Disable autocomplete on card inputs

This commit is contained in:
2024-12-16 12:42:16 +01:00
parent 57b4253d99
commit 27fc2bce49
4 changed files with 22 additions and 7 deletions

View File

@ -61,6 +61,7 @@
id="driver_first_name_{driver?.id ?? 'create'}"
name="firstname"
value={driver?.firstname ?? ""}
autocomplete="off"
labelwidth="120px"
disabled={disable_inputs}
required={require_inputs}>First Name</Input
@ -69,6 +70,7 @@
id="driver_last_name_{driver?.id ?? 'create'}"
name="lastname"
value={driver?.lastname ?? ""}
autocomplete="off"
labelwidth="120px"
disabled={disable_inputs}
required={require_inputs}>Last Name</Input
@ -77,6 +79,7 @@
id="driver_code_{driver?.id ?? 'create'}"
name="code"
value={driver?.code ?? ""}
autocomplete="off"
minlength={3}
maxlength={3}
labelwidth="120px"

View File

@ -91,6 +91,7 @@
<input
use:popup={popup_settings}
type="button"
autocomplete="off"
style="height: 42px; text-align: start; text-indent: 12px; border-top-left-radius: 0; border-bottom-left-radius: 0;"
use:obtain_input
use:action
@ -102,6 +103,7 @@
<input
use:popup={popup_settings}
type="button"
autocomplete="off"
style="height: 42px; text-align: start; text-indent: 12px; border-top-left-radius: 0; border-bottom-left-radius: 0;"
use:obtain_input
onkeypress={(event: Event) => event.preventDefault()}

View File

@ -74,6 +74,7 @@
id="race_name_{race?.id ?? 'create'}"
name="name"
value={race?.name ?? ""}
autocomplete="off"
labelwidth="120px"
disabled={disable_inputs}
required={require_inputs}>Name</Input
@ -82,6 +83,7 @@
id="race_step_{race?.id ?? 'create'}"
name="step"
value={race?.step ?? ""}
autocomplete="off"
labelwidth="120px"
type="number"
min={1}
@ -93,6 +95,7 @@
id="race_pxx_{race?.id ?? 'create'}"
name="pxx"
value={race?.pxx ?? ""}
autocomplete="off"
labelwidth="120px"
type="number"
min={1}
@ -106,6 +109,7 @@
id="race_sprintqualidate_{race?.id ?? 'create'}"
name="sprintqualidate"
value={sprintqualidate ?? ""}
autocomplete="off"
labelwidth="120px"
type="datetime-local"
disabled={disable_inputs}>Sprint Quali</Input
@ -114,6 +118,7 @@
id="race_sprintdate_{race?.id ?? 'create'}"
name="sprintdate"
value={sprintdate ?? ""}
autocomplete="off"
labelwidth="120px"
type="datetime-local"
disabled={disable_inputs}>Sprint</Input
@ -122,6 +127,7 @@
id="race_qualidate_{race?.id ?? 'create'}"
name="qualidate"
value={qualidate ?? ""}
autocomplete="off"
labelwidth="120px"
type="datetime-local"
disabled={disable_inputs}
@ -131,6 +137,7 @@
id="race_racedate_{race?.id ?? 'create'}"
name="racedate"
value={racedate ?? ""}
autocomplete="off"
labelwidth="120px"
type="datetime-local"
disabled={disable_inputs}

View File

@ -48,9 +48,12 @@
id="team_name_{team?.id ?? 'create'}"
name="name"
value={team?.name ?? ""}
autocomplete="off"
disabled={disable_inputs}
required={require_inputs}>Name</Input
required={require_inputs}
>
Name
</Input>
<!-- Logo upload -->
<FileDropzone
@ -68,12 +71,12 @@
<!-- Save/Delete buttons -->
<div class="flex justify-end gap-2">
{#if team}
<Button formaction="?/update_team" color="secondary" disabled={disable_inputs} submit
>Save Changes</Button
>
<Button color="primary" submit disabled={disable_inputs} formaction="?/delete_team"
>Delete</Button
>
<Button formaction="?/update_team" color="secondary" disabled={disable_inputs} submit>
Save Changes
</Button>
<Button color="primary" submit disabled={disable_inputs} formaction="?/delete_team">
Delete
</Button>
{:else}
<Button formaction="?/create_team" color="tertiary" submit>Create Team</Button>
{/if}