mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
Cosmetic tweaks to the user area
This commit is contained in:
parent
881b0a6add
commit
fbc8b46d13
@ -1,4 +1,4 @@
|
|||||||
{% extends 'users/_user.html' %}
|
{% extends 'users/base.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
|
|
||||||
{% block title %}API Tokens{% endblock %}
|
{% block title %}API Tokens{% endblock %}
|
||||||
@ -19,7 +19,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<i class="fa fa-key"></i>
|
<i class="fa fa-key"></i>
|
||||||
<span id="token_{{ token.pk }}">{{ token.key }}</span>
|
<samp><span id="token_{{ token.pk }}">{{ token.key }}</span></samp>
|
||||||
{% if token.is_expired %}
|
{% if token.is_expired %}
|
||||||
<span class="label label-danger">Expired</span>
|
<span class="label label-danger">Expired</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -27,24 +27,24 @@
|
|||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<span title="{{ token.created }}">{{ token.created|date }}</span><br />
|
<small class="text-muted">Created</small><br />
|
||||||
<small class="text-muted">Created</small>
|
<span title="{{ token.created }}">{{ token.created|date }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
|
<small class="text-muted">Expires</small><br />
|
||||||
{% if token.expires %}
|
{% if token.expires %}
|
||||||
<span title="{{ token.expires }}">{{ token.expires|date }}</span><br />
|
<span title="{{ token.expires }}">{{ token.expires|date }}</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span>Never</span><br />
|
<span>Never</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<small class="text-muted">Expires</small>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
|
<small class="text-muted">Create/edit/delete operations</small><br />
|
||||||
{% if token.write_enabled %}
|
{% if token.write_enabled %}
|
||||||
<span class="label label-success">Enabled</span>
|
<span class="label label-success">Enabled</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="label label-danger">Disabled</span>
|
<span class="label label-danger">Disabled</span>
|
||||||
{% endif %}<br />
|
{% endif %}
|
||||||
<small class="text-muted">Create/edit/delete operations</small>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if token.description %}
|
{% if token.description %}
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12 col-md-8 col-md-offset-2">
|
<div class="col-sm-12 col-md-10 col-md-offset-1">
|
||||||
<h1>{% block title %}{% endblock %}</h1>
|
<h1>{% block title %}{% endblock %}</h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-3 col-md-2 col-md-offset-2">
|
<div class="col-sm-3 col-md-2 col-md-offset-1">
|
||||||
<ul class="nav nav-pills nav-stacked">
|
<ul class="nav nav-pills nav-stacked">
|
||||||
<li{% ifequal active_tab "profile" %} class="active"{% endifequal %}>
|
<li{% ifequal active_tab "profile" %} class="active"{% endifequal %}>
|
||||||
<a href="{% url 'user:profile' %}">Profile</a>
|
<a href="{% url 'user:profile' %}">Profile</a>
|
||||||
@ -28,7 +28,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-9 col-md-6">
|
<div class="col-sm-9 col-md-8">
|
||||||
{% block usercontent %}{% endblock %}
|
{% block usercontent %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
@ -1,10 +1,10 @@
|
|||||||
{% extends 'users/_user.html' %}
|
{% extends 'users/base.html' %}
|
||||||
{% load form_helpers %}
|
{% load form_helpers %}
|
||||||
|
|
||||||
{% block title %}Change Password{% endblock %}
|
{% block title %}Change Password{% endblock %}
|
||||||
|
|
||||||
{% block usercontent %}
|
{% block usercontent %}
|
||||||
<form action="." method="post" class="form form-horizontal">
|
<form action="." method="post" class="form form-horizontal col-md-10 col-md-offset-1">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% if form.non_field_errors %}
|
{% if form.non_field_errors %}
|
||||||
<div class="panel panel-danger">
|
<div class="panel panel-danger">
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% extends 'users/_user.html' %}
|
{% extends 'users/base.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
|
|
||||||
{% block title %}User Preferences{% endblock %}
|
{% block title %}User Preferences{% endblock %}
|
||||||
@ -19,8 +19,8 @@
|
|||||||
{% for key, value in preferences.items %}
|
{% for key, value in preferences.items %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="min-width"><input type="checkbox" name="pk" value="{{ key }}"></td>
|
<td class="min-width"><input type="checkbox" name="pk" value="{{ key }}"></td>
|
||||||
<td>{{ key }}</td>
|
<td><samp>{{ key }}</samp></td>
|
||||||
<td>{{ value }}</td>
|
<td><samp>{{ value }}</samp></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% extends 'users/_user.html' %}
|
{% extends 'users/base.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
|
|
||||||
{% block title %}User Profile{% endblock %}
|
{% block title %}User Profile{% endblock %}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% extends 'users/_user.html' %}
|
{% extends 'users/base.html' %}
|
||||||
|
|
||||||
{% block title %}User Key{% endblock %}
|
{% block title %}User Key{% endblock %}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% extends 'users/_user.html' %}
|
{% extends 'users/base.html' %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load form_helpers %}
|
{% load form_helpers %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user