fix(frontend): add autocomplete=off tags to most inputs
This commit is contained in:
parent
de733a0682
commit
f3bb2d5d01
9 changed files with 25 additions and 7 deletions
|
@ -65,7 +65,7 @@
|
||||||
onclick={() => move(index, false)}
|
onclick={() => move(index, false)}
|
||||||
/>
|
/>
|
||||||
<InputGroupText>{$t("editor.field-name")}</InputGroupText>
|
<InputGroupText>{$t("editor.field-name")}</InputGroupText>
|
||||||
<input class="form-control" bind:value={name} />
|
<input class="form-control" bind:value={name} autocomplete="off" />
|
||||||
<IconButton
|
<IconButton
|
||||||
color="danger"
|
color="danger"
|
||||||
icon="trash3"
|
icon="trash3"
|
||||||
|
@ -88,6 +88,7 @@
|
||||||
class="form-control"
|
class="form-control"
|
||||||
bind:value={newEntry}
|
bind:value={newEntry}
|
||||||
placeholder={$t("editor.new-entry")}
|
placeholder={$t("editor.new-entry")}
|
||||||
|
autocomplete="off"
|
||||||
/>
|
/>
|
||||||
<IconButton type="submit" color="success" icon="plus" tooltip={$t("editor.add-entry")} />
|
<IconButton type="submit" color="success" icon="plus" tooltip={$t("editor.add-entry")} />
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
tooltip={$t("editor.move-entry-down")}
|
tooltip={$t("editor.move-entry-down")}
|
||||||
onclick={() => moveValue(index, false)}
|
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>
|
<ButtonDropdown>
|
||||||
<span use:tippy={{ content: status.tooltip }}>
|
<span use:tippy={{ content: status.tooltip }}>
|
||||||
<DropdownToggle color="secondary" caret>
|
<DropdownToggle color="secondary" caret>
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
class="form-control"
|
class="form-control"
|
||||||
bind:value={newFieldName}
|
bind:value={newFieldName}
|
||||||
placeholder={$t("editor.field-name")}
|
placeholder={$t("editor.field-name")}
|
||||||
|
autocomplete="off"
|
||||||
/>
|
/>
|
||||||
<IconButton type="submit" color="success" icon="plus" tooltip={$t("editor.add-field")} />
|
<IconButton type="submit" color="success" icon="plus" tooltip={$t("editor.add-field")} />
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
tooltip={$t("editor.move-entry-down")}
|
tooltip={$t("editor.move-entry-down")}
|
||||||
onclick={() => moveValue(index, true)}
|
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>
|
<ButtonDropdown>
|
||||||
<span use:tippy={{ content: status.tooltip }}>
|
<span use:tippy={{ content: status.tooltip }}>
|
||||||
<DropdownToggle color="secondary" caret>
|
<DropdownToggle color="secondary" caret>
|
||||||
|
@ -88,6 +88,7 @@
|
||||||
type="text"
|
type="text"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
bind:value={value.display_text}
|
bind:value={value.display_text}
|
||||||
|
autocomplete="off"
|
||||||
/>
|
/>
|
||||||
<IconButton id="display-help" icon="question" tooltip="Help" color="secondary" />
|
<IconButton id="display-help" icon="question" tooltip="Help" color="secondary" />
|
||||||
<!-- TODO: remove children={false} once sveltestrap is updated
|
<!-- TODO: remove children={false} once sveltestrap is updated
|
||||||
|
|
|
@ -60,6 +60,6 @@
|
||||||
{/each}
|
{/each}
|
||||||
|
|
||||||
<form class="input-group m-1" onsubmit={addEntry}>
|
<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")} />
|
<IconButton type="submit" color="success" icon="plus" tooltip={$t("editor.add-entry")} />
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -23,7 +23,13 @@
|
||||||
<form method="POST" action="?/changeUsername">
|
<form method="POST" action="?/changeUsername">
|
||||||
<FormGroup class="mb-3">
|
<FormGroup class="mb-3">
|
||||||
<InputGroup class="m-1 mt-3 w-md-75">
|
<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>
|
<Button type="submit" color="secondary">{$t("settings.change-username-button")}</Button>
|
||||||
</InputGroup>
|
</InputGroup>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
|
|
@ -84,7 +84,13 @@
|
||||||
<h4>{$t("edit-profile.member-name")}</h4>
|
<h4>{$t("edit-profile.member-name")}</h4>
|
||||||
<form method="POST" action="?/changeName" class="mb-3">
|
<form method="POST" action="?/changeName" class="mb-3">
|
||||||
<InputGroup>
|
<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">
|
<button type="submit" class="btn btn-primary">
|
||||||
{$t("change")}
|
{$t("change")}
|
||||||
</button>
|
</button>
|
||||||
|
@ -99,6 +105,7 @@
|
||||||
name="display-name"
|
name="display-name"
|
||||||
placeholder={data.member.name}
|
placeholder={data.member.name}
|
||||||
value={data.member.display_name !== data.member.name ? data.member.display_name : null}
|
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>
|
<button class="btn btn-primary" type="submit">{$t("change")}</button>
|
||||||
</InputGroup>
|
</InputGroup>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<form method="POST">
|
<form method="POST">
|
||||||
<div class="my-3">
|
<div class="my-3">
|
||||||
<label class="form-label" for="name">{$t("settings.create-member-name-label")}</label>
|
<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>
|
</div>
|
||||||
<button class="btn btn-primary" type="submit">{$t("profile.create-member-button")}</button>
|
<button class="btn btn-primary" type="submit">{$t("profile.create-member-button")}</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -114,6 +114,7 @@
|
||||||
name="display-name"
|
name="display-name"
|
||||||
placeholder={data.user.username}
|
placeholder={data.user.username}
|
||||||
value={data.user.display_name}
|
value={data.user.display_name}
|
||||||
|
autocomplete="off"
|
||||||
/>
|
/>
|
||||||
<button class="btn btn-primary" type="submit">{$t("change")}</button>
|
<button class="btn btn-primary" type="submit">{$t("change")}</button>
|
||||||
</InputGroup>
|
</InputGroup>
|
||||||
|
@ -136,6 +137,7 @@
|
||||||
class="form-control"
|
class="form-control"
|
||||||
value={data.user.member_title}
|
value={data.user.member_title}
|
||||||
placeholder={$t("profile.default-members-header")}
|
placeholder={$t("profile.default-members-header")}
|
||||||
|
autocomplete="off"
|
||||||
/>
|
/>
|
||||||
<p class="text-muted mt-1">
|
<p class="text-muted mt-1">
|
||||||
<Icon name="info-circle-fill" aria-hidden />
|
<Icon name="info-circle-fill" aria-hidden />
|
||||||
|
|
Loading…
Reference in a new issue