Skip to content

Commit

Permalink
Update settings.html
Browse files Browse the repository at this point in the history
  • Loading branch information
DewGew authored Nov 2, 2023
1 parent c87bd75 commit 69d3ba8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h5 class="card-title">User settings <span>| {{ user.username }}</span></h5>
</div>
<div class="col-md-6">
<label for="googleassist" class="form-label">Google Assistant</label>
<select id="googleassist" name="googleassist" class="form-select" {% if user.admin is false %}disabled{% endif %} onchange="showDiv(this);">
<select id="googleassist" name="googleassist" class="form-select" {% if user.admin is false %}disabled readonly{% endif %}>
<option {% if user.googleassistant is true %} selected {% endif %} value="true">Enabled</option>
<option {% if user.googleassistant is false %} selected {% endif %}value="false">Disabled</option>
</select>
Expand All @@ -75,7 +75,7 @@ <h5 class="card-title">User settings <span>| {{ user.username }}</span></h5>
<label for="domoticzAdmin" class="form-label">Domoticz Admin</label>
<input type="text" class="form-control" id="domoticzAdmin" value="No" disabled readonly>
</div>
<div class="col-md-6" id="div_token" {% if user.googleassistant is false %} style="display: none;" {% endif %}>
<div class="col-md-6" id="div_token">
<label for="token" class="form-label">Auth Token</label>
<input type="text" class="form-control" id="token" name="authtoken" value="{{ user.authtoken }}" disabled readonly>
</div>
Expand Down

0 comments on commit 69d3ba8

Please sign in to comment.