mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -06:00
Clean up user preferences view
This commit is contained in:
parent
cd08836f3e
commit
50d393e0f9
@ -4,11 +4,11 @@
|
||||
{% block title %}User Preferences{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post" action="" id="preferences-update">
|
||||
<form method="post" action="" id="preferences-update">
|
||||
{% csrf_token %}
|
||||
<div class="field-group mb-3">
|
||||
<h5 class="text-center">Color Mode</h5>
|
||||
<p class="lead text-muted">Set preferred UI color mode</p>
|
||||
<h5>Color Mode</h5>
|
||||
<p class="text-muted">Set preferred UI color mode</p>
|
||||
{% with color_mode=preferences|get_key:'ui.colormode'%}
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" type="radio" name="ui.colormode" id="color-mode-preference-dark" value="dark"{% if color_mode == 'dark'%} checked{% endif %}>
|
||||
@ -20,16 +20,14 @@
|
||||
</div>
|
||||
{% endwith %}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col">
|
||||
<button type="submit" class="btn btn-primary" name="_update">
|
||||
Save
|
||||
</button>
|
||||
<button type="submit" class="btn btn-primary" name="_update">Save</button>
|
||||
</div>
|
||||
</div>
|
||||
{% if preferences %}
|
||||
<div class="field-group mb-3">
|
||||
<h5 class="text-center">Other Preferences</h5>
|
||||
{% if preferences %}
|
||||
<div class="field-group mb-3">
|
||||
<h5>Other Preferences</h5>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
@ -51,9 +49,9 @@
|
||||
<button type="submit" class="btn btn-danger" name="_delete">
|
||||
<span class="mdi mdi-trash-can-outline" aria-hidden="true"></span> Clear Selected
|
||||
</button>
|
||||
</div>
|
||||
{% else %}
|
||||
<h3 class="text-muted text-center">No Preferences Found</h3>
|
||||
{% endif %}
|
||||
</form>
|
||||
</div>
|
||||
{% else %}
|
||||
<h3 class="text-muted text-center">No preferences found</h3>
|
||||
{% endif %}
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user