Skip to content

Commit

Permalink
Disable autocomplete for inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
sondregronas committed Aug 17, 2023
1 parent 0d9abfb commit 7351066
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 4 additions & 2 deletions BookingSystem/templates/inventar_add.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ <h3>Her kan du legge til nytt inventar. Legg gjerne til flere, så forlater du b
<form>
<label for="id">Løpenummer</label>
<input type="text" name="id" id="id" placeholder="Eksempel: A6500-01" required
pattern="{{ regex_id }}">
pattern="{{ regex_id }}"
autocomplete="off">

<label for="name">Navn</label>
<input type="text" name="name" id="name" placeholder="Eksempel: Sony A6500" required
pattern="{{ regex_item }}">
pattern="{{ regex_item }}"
autocomplete="off">

<label for="category">Kategori</label>
<select name="category" id="category" required data-placeholder="Velg kategori" autocomplete="off">
Expand Down
6 changes: 4 additions & 2 deletions BookingSystem/templates/inventar_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ <h3>Redigerer {{ item.id }} ({{ item.name }})</h3>
<label for="id">Løpenummer</label>
<input type="text" name="id" id="id" required placeholder="Eksempel: A6500-01"
pattern="{{ regex_id }}"
value="{{ item.id }}">
value="{{ item.id }}"
autocomplete="off">

<label for="name">Navn</label>
<input type="text" name="name" id="name" required placeholder="Eksempel: Sony A6500"
pattern="{{ regex_item }}"
value="{{ item.name }}">
value="{{ item.name }}"
autocomplete="off">

<label for="category">Kategori</label>
<select name="category" id="category" data-placeholder="Velg kategori" required autocomplete="off">
Expand Down
4 changes: 3 additions & 1 deletion BookingSystem/templates/registrer_avvik.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ <h3>Alle avvik skal loggføres, både små og store.</h3>
<form>
<label for="id">Løpenummer (Valgfritt)</label>
<input type="text" name="id" id="id" placeholder="Løpenummer (Valgfritt)"
pattern="{{ regex_id }}">
pattern="{{ regex_id }}"
autocomplete="off">

<label for="text">Beskrivelse</label>
<textarea name="text" id="text"
placeholder="Obs. Unngå personopplysninger, med mindre det er sentralt for avviket"
autocomplete="off"
required></textarea>

<button type="submit">Lagre</button>
Expand Down

0 comments on commit 7351066

Please sign in to comment.