nopaque/app/templates/admin/user.html.j2

111 lines
4.2 KiB
Plaintext
Raw Normal View History

{% extends "base.html.j2" %}
{% from "admin/_breadcrumbs.html.j2" import breadcrumbs with context %}
2019-11-15 10:45:04 +00:00
{% block page_content %}
2020-10-23 08:17:14 +00:00
<div class="container">
<div class="row">
<div class="col s12">
2020-10-23 08:26:36 +00:00
<h1 id="title">{{ title }}</h1>
2020-10-23 08:17:14 +00:00
</div>
2019-11-15 10:45:04 +00:00
2020-10-23 08:17:14 +00:00
<div class="col s12 m4">
<h2>{{ user.username }}</h2>
<p id="description">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,</p>
<a class="waves-effect waves-light btn" href="{{ url_for('.users') }}"><i class="material-icons left">arrow_back</i>Back to Users</a>
2019-11-15 10:45:04 +00:00
</div>
2020-10-23 08:17:14 +00:00
<div class="col s12 m8">
<div class="card">
<div class="card-content">
<span class="card-title">User information</span>
<ul>
<li>Username: {{ user.username }}</li>
<li>Email: {{ user.email }}</li>
2021-11-30 15:22:16 +00:00
<li>Id: {{ user.id }}</li>
<li>Hashid: {{ user.hashid }}</li>
<li>Member since: {{ user.member_since }}</li>
2020-10-23 08:17:14 +00:00
<li>Confirmed status: {{ user.confirmed }}</li>
2021-11-30 15:22:16 +00:00
<li>Last seen: {{ user.last_seen }}</li>
2020-10-23 08:17:14 +00:00
<li>Permissions as Int: {{ user.role.permissions }}</li>
<li>Role name: {{ user.role.name }}</li>
</ul>
</div>
<div class="card-action right-align">
<a href="{{ url_for('.edit_user', user_id=user.id) }}" class="waves-effect waves-light btn"><i class="material-icons left">edit</i>Edit</a>
2020-10-23 08:17:14 +00:00
<a data-target="delete-user-modal" class="waves-effect waves-light btn red modal-trigger"><i class="material-icons left">delete</i>Delete</a>
</div>
</div>
2019-11-15 10:45:04 +00:00
</div>
<div class="col s12 l6 nopaque-ressource-list" data-ressource-type="Job" data-user-id="{{ user.hashid }}">
<h3>Corpora</h3>
<div class="card">
2020-12-15 13:38:52 +00:00
<div class="card-content">
<div class="input-field">
<i class="material-icons prefix">search</i>
<input id="search-corpus" class="search" type="search"></input>
<label for="search-corpus">Search corpus</label>
2019-11-15 10:45:04 +00:00
</div>
2020-12-15 13:38:52 +00:00
<table class="highlight ressource-list">
<thead>
<tr>
<th></th>
<th>
<span class="sort" data-sort="title">Title</span>
<span class="sort" data-sort="description">Description</span>
</th>
<th><span class="sort" data-sort="status">Status</span></th>
<th></th>
</tr>
</thead>
<tbody class="list"></tbody>
</table>
2020-11-22 15:03:41 +00:00
<ul class="pagination"></ul>
2019-11-15 10:45:04 +00:00
</div>
</div>
</div>
<div class="col s12 l6 nopaque-ressource-list" data-ressource-type="Job" data-user-id="{{ user.hashid }}">
<h3>Jobs</h3>
<div class="card">
2020-12-15 13:38:52 +00:00
<div class="card-content">
<div class="input-field">
<i class="material-icons prefix">search</i>
<input id="search-job" class="search" type="search"></input>
<label for="search-job">Search job</label>
2019-11-15 10:45:04 +00:00
</div>
<table class="highlight">
<thead>
<tr>
<th><span class="sort" data-sort="service">Service</span></th>
<th>
<span class="sort" data-sort="title">Title</span>
<span class="sort" data-sort="description">Description</span>
</th>
<th><span class="sort" data-sort="status">Status</span></th>
<th></th>
</tr>
</thead>
<tbody class="list"></tbody>
</table>
2020-11-22 15:03:41 +00:00
<ul class="pagination"></ul>
2019-11-15 10:45:04 +00:00
</div>
</div>
</div>
2021-12-01 13:15:20 +00:00
{% endblock page_content %}
2019-11-15 10:45:04 +00:00
2021-12-01 13:15:20 +00:00
{% block modals %}
{{ super() }}
2019-11-15 10:45:04 +00:00
<div id="delete-user-modal" class="modal">
<div class="modal-content">
2020-10-23 08:17:14 +00:00
<h3>Delete user</h3>
2019-11-15 10:45:04 +00:00
<p>Do you really want to delete the user {{ user.username }}? All associated data will be permanently deleted!</p>
</div>
<div class="modal-footer">
2020-02-20 14:59:08 +00:00
<a href="#!" class="modal-close waves-effect waves-light btn">Cancel</a>
2020-10-23 08:17:14 +00:00
<a href="{{ url_for('.delete_user', user_id=user.id) }}" class="modal-close waves-effect waves-light btn red"><i class="material-icons left">delete</i>Delete</a>
2019-11-15 10:45:04 +00:00
</div>
</div>
2021-12-01 13:15:20 +00:00
{% endblock modals %}