Skip to content

Commit

Permalink
prevent browser autocomplete to suggest credentials for several input…
Browse files Browse the repository at this point in the history
… fields

Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
  • Loading branch information
thjaeckle committed Jan 25, 2024
1 parent fc6cca2 commit ca9c741
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
5 changes: 3 additions & 2 deletions ui/modules/policies/policies.html
Expand Up @@ -4,15 +4,16 @@ <h5>Policies</h5>
<div class="row">
<div class="col-md-4">
<h6>Load a policy</h6>
<div class="input-group input-group-sm mb-1 mt-1 has-validation" role="group">
<form class="input-group input-group-sm mb-1 mt-1 has-validation" role="group" autocomplete="off">
<label class="input-group-text">Policy Id</label>
<input autocomplete="false" name="hidden" type="text" style="display:none;">
<input type="search" class="form-control form-control-sm" id="inputPolicyId"></input>
<button id="buttonLoadPolicy" class="btn btn-outline-primary btn-sm"
title="Load policy with the given ID">
Load
</button>
<div class="invalid-feedback"></div>
</div>
</form>
<h6>Recent policies</h6>
<div class="table-wrap" style="height: 35vh;">
<table class="table table-striped table-hover table-sm">
Expand Down
6 changes: 3 additions & 3 deletions ui/modules/things/messagesIncoming.html
Expand Up @@ -44,10 +44,10 @@ <h6>Thing Update Detail</h6>
<div class="input-group input-group-sm mb-1 mt-1">
<label class="input-group-text" for="selectThingUpdateMessageContent">Show</label>
<select class="form-select form-select-sm" id="selectThingUpdateMessageContent">
<option value="FULL_THING_WITH_CONTEXT" selected>Full Thing JSON with context and metadata</option>
<option value="FULL_THING">Only full Thing JSON</option>
<option value="ONLY_CONTEXT" selected>Only context</option>
<option value="ONLY_CONTEXT_WITH_METADATA">Only context with metadata</option>
<option value="ONLY_CONTEXT">Only context</option>
<option value="FULL_THING">Only full Thing JSON</option>
<option value="FULL_THING_WITH_CONTEXT">Full Thing JSON with context and metadata</option>
</select>
</div>
<div class="ace_container" style="flex-grow: 1;">
Expand Down
9 changes: 5 additions & 4 deletions ui/modules/utils/tableFilter.html
Expand Up @@ -10,23 +10,24 @@
~
~ SPDX-License-Identifier: EPL-2.0
-->
<div class="input-group input-group-sm has-validation mb-1">
<form class="input-group input-group-sm has-validation mb-1" autocomplete="off">
<label class="input-group-text" hidden>Filter</label>
<div class="btn-group dropend">
<button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle"
data-bs-toggle="dropdown" aria-expanded="false"></button>
<ul id="ulFilterOptions" class="dropdown-menu">
<input type="search" name="dropdown" class="form-control form-control-sm" placeholder="Filter entries..." spellcheck="false" autocomplete="off">
<input type="text" name="dropdown" class="form-control form-control-sm" placeholder="Filter entries..." spellcheck="false" autocomplete="off">
</ul>
</div>
<input autocomplete="false" name="hidden" type="text" style="display:none;">
<input type="search" name="main" class="form-control form-control-sm me-1"
placeholder="Add basic filter..." autocomplete="off" spellcheck="false"></input>
placeholder="Add basic filter..." autocomplete="off" spellcheck="false"></input>
<div class="form-check form-switch">
<input class="form-check-input mt-2" type="checkbox" role="switch"
data-bs-toggle="tooltip" title="Toggle advanced search">
</div>
<div class="invalid-feedback"></div>
</div>
</form>
<div data-bs-theme="dark">
</div>

0 comments on commit ca9c741

Please sign in to comment.