mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -06:00
12589 translate templates
This commit is contained in:
parent
7307ee47cc
commit
40c8e67c03
@ -1,26 +1,19 @@
|
|||||||
{% extends 'users/base.html' %}
|
{% extends 'users/base.html' %}
|
||||||
|
{% load i18n %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load render_table from django_tables2 %}
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block title %}Group Detail{% endblock %}
|
{% block title %}{% trans "Group" %} {{ object.name }}{% endblock %}
|
||||||
|
|
||||||
{% block tabs %}
|
|
||||||
<ul class="nav nav-tabs px-3">
|
|
||||||
<li role="presentation" class="nav-item">
|
|
||||||
<a class="nav-link{% if active_tab == 'group' %} active{% endif %}" href="{% url 'users:netboxgroup' pk=object.pk %}">Group</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
{% endblock tabs %}
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row mb-3">
|
<div class="row mb-3">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">Account Details</h5>
|
<h5 class="card-header">{% trans "Account Details" %}</h5>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<table class="table table-hover attr-table">
|
<table class="table table-hover attr-table">
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Name</th>
|
<th scope="row">{% trans "Name" %}</th>
|
||||||
<td>{{ object.name }}</td>
|
<td>{{ object.name }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -29,12 +22,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">Users</h5>
|
<h5 class="card-header">{% trans "Users" %}</h5>
|
||||||
<ul class="list-group list-group-flush">
|
<ul class="list-group list-group-flush">
|
||||||
{% for user in object.user_set.all %}
|
{% for user in object.user_set.all %}
|
||||||
<li class="list-group-item">{{ user }}</li>
|
<li class="list-group-item">{{ user }}</li>
|
||||||
{% empty %}
|
{% empty %}
|
||||||
<li class="list-group-item text-muted">None</li>
|
<li class="list-group-item text-muted">{% trans "None" %}</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,26 +1,19 @@
|
|||||||
{% extends 'users/base.html' %}
|
{% extends 'users/base.html' %}
|
||||||
|
{% load i18n %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load render_table from django_tables2 %}
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block title %}Permission Detail{% endblock %}
|
{% block title %}{% trans "Permission" %} {{ object.name }}{% endblock %}
|
||||||
|
|
||||||
{% block tabs %}
|
|
||||||
<ul class="nav nav-tabs px-3">
|
|
||||||
<li role="presentation" class="nav-item">
|
|
||||||
<a class="nav-link{% if active_tab == 'objectpermission' %} active{% endif %}" href="{% url 'users:objectpermission' pk=object.pk %}">Permission</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
{% endblock tabs %}
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row mb-3">
|
<div class="row mb-3">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">Account Details</h5>
|
<h5 class="card-header">{% trans "Account Details" %}</h5>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<table class="table table-hover attr-table">
|
<table class="table table-hover attr-table">
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Name</th>
|
<th scope="row">{% trans "Name" %}</th>
|
||||||
<td>{{ object.name }}</td>
|
<td>{{ object.name }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -29,12 +22,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">Assigned Users</h5>
|
<h5 class="card-header">{% trans "Assigned Users" %}</h5>
|
||||||
<ul class="list-group list-group-flush">
|
<ul class="list-group list-group-flush">
|
||||||
{% for user in object.users.all %}
|
{% for user in object.users.all %}
|
||||||
<li class="list-group-item">{{ user }}</li>
|
<li class="list-group-item">{{ user }}</li>
|
||||||
{% empty %}
|
{% empty %}
|
||||||
<li class="list-group-item text-muted">None</li>
|
<li class="list-group-item text-muted">{% trans "None" %}</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{% extends 'users/base_profile.html' %}
|
{% extends 'users/base_profile.html' %}
|
||||||
|
{% load i18n %}
|
||||||
{% load form_helpers %}
|
{% load form_helpers %}
|
||||||
|
|
||||||
{% block title %}{% trans "Change Password" %}{% endblock %}
|
{% block title %}{% trans "Change Password" %}{% endblock %}
|
||||||
|
@ -1,30 +1,23 @@
|
|||||||
{% extends 'users/base.html' %}
|
{% extends 'users/base.html' %}
|
||||||
|
{% load i18n %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load render_table from django_tables2 %}
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block title %}User Detail{% endblock %}
|
{% block title %}{% trans "User" %} {{ object.username }}{% endblock %}
|
||||||
|
|
||||||
{% block tabs %}
|
|
||||||
<ul class="nav nav-tabs px-3">
|
|
||||||
<li role="presentation" class="nav-item">
|
|
||||||
<a class="nav-link{% if active_tab == 'user' %} active{% endif %}" href="{% url 'users:netboxuser' pk=object.pk %}">User</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
{% endblock tabs %}
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row mb-3">
|
<div class="row mb-3">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">Account Details</h5>
|
<h5 class="card-header">{% trans "Account Details" %}</h5>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<table class="table table-hover attr-table">
|
<table class="table table-hover attr-table">
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Username</th>
|
<th scope="row">{% trans "Username" %}</th>
|
||||||
<td>{{ object.username }}</td>
|
<td>{{ object.username }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Full Name</th>
|
<th scope="row">{% trans "Full Name" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% if object.first_name or object.last_name %}
|
{% if object.first_name or object.last_name %}
|
||||||
{{ object.first_name }} {{ object.last_name }}
|
{{ object.first_name }} {{ object.last_name }}
|
||||||
@ -34,19 +27,19 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Email</th>
|
<th scope="row">{% trans "Email" %}</th>
|
||||||
<td>{{ object.email|placeholder }}</td>
|
<td>{{ object.email|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Account Created</th>
|
<th scope="row">{% trans "Account Created" %}</th>
|
||||||
<td>{{ object.date_joined|annotated_date }}</td>
|
<td>{{ object.date_joined|annotated_date }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Superuser</th>
|
<th scope="row">{% trans "Superuser" %}</th>
|
||||||
<td>{% checkmark object.is_superuser %}</td>
|
<td>{% checkmark object.is_superuser %}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Admin Access</th>
|
<th scope="row">{% trans "Admin Access" %}</th>
|
||||||
<td>{% checkmark object.is_staff %}</td>
|
<td>{% checkmark object.is_staff %}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -55,12 +48,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">Assigned Groups</h5>
|
<h5 class="card-header">{% trans "Assigned Groups" %}</h5>
|
||||||
<ul class="list-group list-group-flush">
|
<ul class="list-group list-group-flush">
|
||||||
{% for group in object.groups.all %}
|
{% for group in object.groups.all %}
|
||||||
<li class="list-group-item">{{ group }}</li>
|
<li class="list-group-item">{{ group }}</li>
|
||||||
{% empty %}
|
{% empty %}
|
||||||
<li class="list-group-item text-muted">None</li>
|
<li class="list-group-item text-muted">{% trans "None" %}</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@ -70,7 +63,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header text-center">Recent Activity</h5>
|
<h5 class="card-header text-center">{% trans "Recent Activity" %}</h5>
|
||||||
<div class="card-body table-responsive">
|
<div class="card-body table-responsive">
|
||||||
{% render_table changelog_table 'inc/table.html' %}
|
{% render_table changelog_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user