fix(frontend): add autocomplete=off tags to most inputs

This commit is contained in:
sam 2024-12-02 15:06:17 +01:00
parent de733a0682
commit f3bb2d5d01
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
9 changed files with 25 additions and 7 deletions

View file

@ -65,7 +65,7 @@
onclick={() => move(index, false)}
/>
<InputGroupText>{$t("editor.field-name")}</InputGroupText>
<input class="form-control" bind:value={name} />
<input class="form-control" bind:value={name} autocomplete="off" />
<IconButton
color="danger"
icon="trash3"
@ -88,6 +88,7 @@
class="form-control"
bind:value={newEntry}
placeholder={$t("editor.new-entry")}
autocomplete="off"
/>
<IconButton type="submit" color="success" icon="plus" tooltip={$t("editor.add-entry")} />
</form>

View file

@ -40,7 +40,7 @@
tooltip={$t("editor.move-entry-down")}
onclick={() => moveValue(index, false)}
/>
<input type="text" class="form-control" bind:value={value.value} />
<input type="text" class="form-control" bind:value={value.value} autocomplete="off" />
<ButtonDropdown>
<span use:tippy={{ content: status.tooltip }}>
<DropdownToggle color="secondary" caret>

View file

@ -56,6 +56,7 @@
class="form-control"
bind:value={newFieldName}
placeholder={$t("editor.field-name")}
autocomplete="off"
/>
<IconButton type="submit" color="success" icon="plus" tooltip={$t("editor.add-field")} />
</form>

View file

@ -50,7 +50,7 @@
tooltip={$t("editor.move-entry-down")}
onclick={() => moveValue(index, true)}
/>
<input type="text" class="form-control" bind:value={value.value} />
<input type="text" class="form-control" bind:value={value.value} autocomplete="off" />
<ButtonDropdown>
<span use:tippy={{ content: status.tooltip }}>
<DropdownToggle color="secondary" caret>
@ -88,6 +88,7 @@
type="text"
class="form-control"
bind:value={value.display_text}
autocomplete="off"
/>
<IconButton id="display-help" icon="question" tooltip="Help" color="secondary" />
<!-- TODO: remove children={false} once sveltestrap is updated

View file

@ -60,6 +60,6 @@
{/each}
<form class="input-group m-1" onsubmit={addEntry}>
<input type="text" class="form-control" bind:value={newEntry} />
<input type="text" class="form-control" bind:value={newEntry} autocomplete="off" />
<IconButton type="submit" color="success" icon="plus" tooltip={$t("editor.add-entry")} />
</form>

View file

@ -23,7 +23,13 @@
<form method="POST" action="?/changeUsername">
<FormGroup class="mb-3">
<InputGroup class="m-1 mt-3 w-md-75">
<Input type="text" value={data.user.username} name="username" required />
<Input
type="text"
value={data.user.username}
name="username"
required
autocomplete="off"
/>
<Button type="submit" color="secondary">{$t("settings.change-username-button")}</Button>
</InputGroup>
</FormGroup>

View file

@ -84,7 +84,13 @@
<h4>{$t("edit-profile.member-name")}</h4>
<form method="POST" action="?/changeName" class="mb-3">
<InputGroup>
<input name="name" class="form-control" type="text" value={data.member.name} />
<input
name="name"
class="form-control"
type="text"
value={data.member.name}
autocomplete="off"
/>
<button type="submit" class="btn btn-primary">
{$t("change")}
</button>
@ -99,6 +105,7 @@
name="display-name"
placeholder={data.member.name}
value={data.member.display_name !== data.member.name ? data.member.display_name : null}
autocomplete="off"
/>
<button class="btn btn-primary" type="submit">{$t("change")}</button>
</InputGroup>

View file

@ -16,7 +16,7 @@
<form method="POST">
<div class="my-3">
<label class="form-label" for="name">{$t("settings.create-member-name-label")}</label>
<input class="form-control" type="text" id="name" name="name" required />
<input class="form-control" type="text" id="name" name="name" required autocomplete="off" />
</div>
<button class="btn btn-primary" type="submit">{$t("profile.create-member-button")}</button>
</form>

View file

@ -114,6 +114,7 @@
name="display-name"
placeholder={data.user.username}
value={data.user.display_name}
autocomplete="off"
/>
<button class="btn btn-primary" type="submit">{$t("change")}</button>
</InputGroup>
@ -136,6 +137,7 @@
class="form-control"
value={data.user.member_title}
placeholder={$t("profile.default-members-header")}
autocomplete="off"
/>
<p class="text-muted mt-1">
<Icon name="info-circle-fill" aria-hidden />