mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 10:54:18 +00:00
116 lines
4.2 KiB
Django/Jinja
116 lines
4.2 KiB
Django/Jinja
{% extends "limited_width.html.j2" %}
|
|
|
|
{% block page_content %}
|
|
<div class="col s12 m4">
|
|
<h3 id="title">{{ user.username }}</h3>
|
|
<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('admin.index') }}"><i class="material-icons left">arrow_back</i>Back to admin board</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>Registration date: {{ user.registration_date.strftime('%m/%d/%Y, %H:%M:%S %p') }}</li>
|
|
<li>Confirmed status: {{ user.confirmed }}</li>
|
|
<li>Role ID: {{ user.role_id }}</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('admin.edit_user', user_id=user.id) }}" class="waves-effect waves-light btn"><i class="material-icons left">edit</i>Edit user</a>
|
|
<a data-target="delete-user-modal" class="waves-effect waves-light btn red modal-trigger"><i class="material-icons left">delete</i>Delete user</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col s12"></div>
|
|
|
|
<div class="col s12 m6">
|
|
<div id="corpus-list">
|
|
<div class="card">
|
|
<div class="card-content">
|
|
<span class="card-title">Corpora</span>
|
|
<div class="row">
|
|
<div class="col s12">
|
|
<div class="input-field">
|
|
<i class="material-icons prefix">search</i>
|
|
<input id="search-corpus" class="search" type="text"></input>
|
|
<label for="search-corpus">Search corpus</label>
|
|
</div>
|
|
</div>
|
|
<div class="col s12">
|
|
<ul class="pagination"></ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="collection list"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col s12 m6">
|
|
<div id="job-list">
|
|
<div class="card">
|
|
<div class="card-content">
|
|
<span class="card-title">Jobs</span>
|
|
<div class="row">
|
|
<div class="col s12">
|
|
<div class="input-field">
|
|
<i class="material-icons prefix">search</i>
|
|
<input id="search-job" class="search" type="text"></input>
|
|
<label for="search-job">Search job</label>
|
|
</div>
|
|
</div>
|
|
<div class="col s12">
|
|
<ul class="pagination"></ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="collection list"></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- Modals -->
|
|
<div id="delete-user-modal" class="modal">
|
|
<div class="modal-content">
|
|
<h4>Confirm user deletion</h4>
|
|
<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-green btn cancel">Cancel</a>
|
|
<a href="{{ url_for('admin.delete_user', user_id=user.id) }}" class="modal-close waves-effect waves-green btn red">Confirm<i class="material-icons right">send</i></a>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script>
|
|
socket.emit('subscribe_foreign_user_ressources', {{ user.id }});
|
|
|
|
var corpusList = new CorpusList("corpus-list", foreignCorporaSubscribers, {
|
|
item: '<div><span class="title"></span><span class="description"></span></div>',
|
|
page: 4,
|
|
pagination: true,
|
|
valueNames: ["description", "title", {data: ["id"]}]
|
|
});
|
|
corpusList.on("filterComplete", List.updatePagination);
|
|
corpusList.on("searchComplete", List.updatePagination);
|
|
|
|
var jobList = new JobList("job-list", foreignJobsSubscribers, {
|
|
item: '<div><span class="title"></span><span class="description"></span></div>',
|
|
page: 4,
|
|
pagination: true,
|
|
valueNames: ["description", "title", {data: ["id"]}]
|
|
});
|
|
jobList.on("filterComplete", List.updatePagination);
|
|
jobList.on("searchComplete", List.updatePagination);
|
|
</script>
|
|
{% endblock %}
|