mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-26 19:34:19 +00:00
107 lines
3.9 KiB
Django/Jinja
107 lines
3.9 KiB
Django/Jinja
{% extends "base.html.j2" %}
|
|
{% from "admin/_breadcrumbs.html.j2" import breadcrumbs with context %}
|
|
|
|
{% block page_content %}
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col s12">
|
|
<h1 id="title">{{ title }}</h1>
|
|
</div>
|
|
|
|
<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>
|
|
</div>
|
|
|
|
<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>
|
|
<li>Id: {{ user.id }}</li>
|
|
<li>Hashid: {{ user.hashid }}</li>
|
|
<li>Member since: {{ user.member_since }}</li>
|
|
<li>Confirmed status: {{ user.confirmed }}</li>
|
|
<li>Last seen: {{ user.last_seen }}</li>
|
|
<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>
|
|
<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>
|
|
</div>
|
|
|
|
<div class="col s12 l6 nopaque-ressource-list" data-ressource-type="Corpus" data-user-id="{{ user.hashid }}">
|
|
<h3>Corpora</h3>
|
|
<div class="card">
|
|
<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>
|
|
</div>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>Title and Description</th>
|
|
<th>Status</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="list"></tbody>
|
|
</table>
|
|
<ul class="pagination"></ul>
|
|
</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">
|
|
<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>
|
|
</div>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Service</th>
|
|
<th>Title and Description</th>
|
|
<th>Status</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="list"></tbody>
|
|
</table>
|
|
<ul class="pagination"></ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock page_content %}
|
|
|
|
|
|
{% block modals %}
|
|
{{ super() }}
|
|
<div id="delete-user-modal" class="modal">
|
|
<div class="modal-content">
|
|
<h3>Delete user</h3>
|
|
<p>Do you really want to delete the user {{ user.username }}? All associated data will be permanently deleted!</p>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<a href="#!" class="modal-close waves-effect waves-light btn">Cancel</a>
|
|
<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>
|
|
</div>
|
|
</div>
|
|
{% endblock modals %}
|