Refactor users management (#7)
All checks were successful
continuous-integration/drone/push Build is passing

* Improve user settings page layout
This commit is contained in:
Pierre HUBERT 2022-11-26 14:57:12 +01:00
parent f5ac7bf278
commit 0d8af58e16

View File

@ -133,7 +133,7 @@
<div class="form-check">
<label class="form-check-label">
<input type="radio" class="form-check-input" name="grant_type"
value="custom_clients" {% if u.granted_clients() != GrantedClients::AllClients %} checked="checked" {% endif %}>
value="custom_clients" {% if matches!(self.u.granted_clients(), GrantedClients::SomeClients(_)) %} checked="checked" {% endif %}>
Manually specify allowed clients
</label>
</div>
@ -151,6 +151,14 @@
</div>
{% endfor %}
</div>
<div class="form-check">
<label class="form-check-label">
<input type="radio" class="form-check-input" name="grant_type"
value="no_client" {% if u.granted_clients() == GrantedClients::NoClient %} checked="checked" {% endif %}>
Do not grant any client
</label>
</div>
</fieldset>
<input type="submit" class="btn btn-primary mt-4" value="{{ _p.page_title }}">