Add Icons

This commit is contained in:
Götz 2019-04-11 20:22:56 +02:00
parent 2bcd17e9b2
commit 1b32a2f2b5
3 changed files with 17 additions and 11 deletions

View File

@ -15,10 +15,10 @@
{% block js_extra %}{% endblock %}
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="{{ static('libs/bootstrap-4.3.1-dist/css/bootstrap.css') }}">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css"
integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<link rel="stylesheet" href="{{ static('css/floating_labels.css') }}">
<link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.14.2/dist/bootstrap-table.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
{% block css_extra %}{% endblock %}
@ -36,9 +36,9 @@
{% if request.user.is_authenticated %}
<span class="navbar-text">
Hi {{ request.user.username }}!
<a href="{{ url('logout') }}?next=/">Logout</a>
<a href="{{ url('logout') }}?next=/">Logout <i class="fas fa-sign-out-alt"></i></a>
{% else %}
<a href="{{ url('login') }}">Login</a>
<a href="{{ url('login') }}"><i class="fas fa-sign-in-alt"></i> Login</a>
{% endif %}
</span>
</nav>

View File

@ -14,16 +14,19 @@
{% else %}
<h2 class="sidebar-heading">Bereich</h2>
<a href="{{ url('realm-home') }}" class="list-group-item list-group-item-action bg-light">
Bereichsübersicht</a>
<i class="fas fa-list"></i> Bereichsübersicht</a>
{% if realm %}
<h2 class="sidebar-heading">{{ realm.name }}</h2>
<div class="list-group list-group-flush">
<a href="{{ url('realm-detail', args=[realm.id]) }}"
class="list-group-item list-group-item-action bg-light">Bereichsinformationen</a>
class="list-group-item list-group-item-action bg-light"><i class="fas fa-cogs"></i>
Bereichsinformationen</a>
<a href="{{ url('realm-user-list', args=[realm.id]) }}"
class="list-group-item list-group-item-action bg-light">Nutzer</a>
class="list-group-item list-group-item-action bg-light"><i class="fas fa-users"></i>
Nutzer</a>
<a href="{{ url('realm-group-list', args=[realm.id]) }}"
class="list-group-item list-group-item-action bg-light">Gruppen</a>
class="list-group-item list-group-item-action bg-light"><i class="fas fa-user-friends"></i>
Gruppen</a>
</div>
{% endif %}
{% endif %}

View File

@ -1,6 +1,6 @@
{% extends 'realm/realm_detailed.jinja2' %}
{% block detail_content %}
<h2>Nutzer</h2>
<h2>Nutzer </h2>
<div class="form-group w-25 float-right">
<input type="text"
class="form-control"
@ -20,11 +20,14 @@
<tbody>
{% for user in realm_user %}
<tr>
<td><a href="{{ url('realm-user-detail', args=[realm.id, user.user.dn]) }}">{{ user.user.username }}</a></td>
<td><a href="{{ url('realm-user-detail', args=[realm.id, user.user.dn]) }}">{{ user.user.username }}</a>
</td>
<td>{{ user.user.email }}</td>
<td>{{ user.user.first_name }}</td>
<td>{{ user.user.last_name }}</td>
<td>{{ user.active }}</td>
<td class="text-center">{% if user.active %}
<i class="fas fa-check-circle text-success"></i>{% else %}
<i class="far fa-times-circle text-warning"></i>{% endif %}</td>
</tr>
{% endfor %}
</tbody>