2019-10-24 11:13:34 +00:00
|
|
|
{% extends "limited_width.html.j2" %}
|
2019-08-15 13:56:53 +00:00
|
|
|
|
|
|
|
{% block page_content %}
|
|
|
|
<div class="col s12 m6">
|
|
|
|
<div class="card large">
|
|
|
|
<div class="card-content">
|
|
|
|
<span class="card-title">User information</span>
|
2019-09-10 11:49:01 +00:00
|
|
|
<ul>
|
|
|
|
<li>Username: {{selected_user.username}}</li>
|
|
|
|
<li>Email: {{selected_user.email}}</li>
|
|
|
|
<li>ID: {{selected_user.id}}</li>
|
|
|
|
<li>Registration date: {{registration_date}}</li>
|
|
|
|
<li>Confirmed status: {{selected_user.confirmed}}</li>
|
|
|
|
<li>Role ID: {{selected_user.role_id}}</li>
|
|
|
|
<li>Permissions as Int: {{selected_user.role.permissions}}</li>
|
|
|
|
<li>Role name: {{selected_user.role.name}}</li>
|
|
|
|
</ul>
|
|
|
|
<div class="card-action">
|
|
|
|
<a href="{{url_for('admin.edit_profile_admin', user_id=selected_user.id)}}" class="waves-effect waves-light btn"><i class="material-icons left">edit</i>Edit user</a>
|
2019-09-18 10:06:34 +00:00
|
|
|
<a href="#modal-confirm-delete" class="waves-effect waves-light btn red modal-trigger"><i class="material-icons left">delete</i>Delete User</a>
|
|
|
|
<!-- Modal Strucutre -->
|
|
|
|
<div id="modal-confirm-delete" class="modal">
|
|
|
|
<div class="modal-content">
|
|
|
|
<h4>Confirm deletion</h4>
|
|
|
|
<p>Do you really want to delete the current selected user ({{selected_user.username}})?
|
|
|
|
All associated jobs and job files will be permanently deleted.</p>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2019-09-24 14:21:22 +00:00
|
|
|
<a href="{{url_for('admin.admin_delete_user', user_id=selected_user.id)}}" class="modal-close waves-effect waves-green btn red"><i class="material-icons left">delete</i>Delete User</a>
|
|
|
|
<a href="#!" class="modal-close waves-effect waves-green btn cancel">Cancel</a>
|
2019-09-18 10:06:34 +00:00
|
|
|
</div>
|
2019-09-10 11:49:01 +00:00
|
|
|
</div>
|
2019-09-18 10:06:34 +00:00
|
|
|
</div>
|
2019-08-15 13:56:53 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-18 10:06:34 +00:00
|
|
|
<script>
|
2019-09-18 09:33:06 +00:00
|
|
|
var selected_user_id = {{selected_user.id|tojson|safe}}
|
2019-09-18 12:05:56 +00:00
|
|
|
socket.emit('inspect_user', selected_user_id);
|
2019-09-18 09:33:06 +00:00
|
|
|
</script>
|
2019-08-15 13:56:53 +00:00
|
|
|
<div class="col s12 m6">
|
2019-09-18 10:06:34 +00:00
|
|
|
<div id="job-foreign-list">
|
2019-09-18 09:33:06 +00:00
|
|
|
<div class="card">
|
2019-09-24 14:16:01 +00:00
|
|
|
<span class="card-title">User Jobs</span>
|
2019-09-18 09:33:06 +00:00
|
|
|
<div class="card-content">
|
|
|
|
<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>
|
2019-08-15 13:56:53 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-18 09:33:06 +00:00
|
|
|
<div class="collection list"></div>
|
2019-08-15 13:56:53 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-18 09:33:06 +00:00
|
|
|
<script>
|
2019-09-18 10:06:34 +00:00
|
|
|
var jobList = new JobList("job-foreign-list", foreignJobsSubscribers, {
|
2019-09-18 09:33:06 +00:00
|
|
|
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>
|
2019-09-18 10:06:34 +00:00
|
|
|
<div class="col s12 m6">
|
|
|
|
<div id="corpus-foreign-list">
|
|
|
|
<div class="card">
|
2019-09-24 14:16:01 +00:00
|
|
|
<span class="card-title">User Corpora</span>
|
2019-09-18 10:06:34 +00:00
|
|
|
<div class="card-content">
|
|
|
|
<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 corpus</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col s12">
|
|
|
|
<ul class="pagination"></ul>
|
|
|
|
</div>
|
2019-08-15 13:56:53 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-18 10:06:34 +00:00
|
|
|
<div class="collection list"></div>
|
2019-08-15 13:56:53 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-18 10:06:34 +00:00
|
|
|
<script>
|
2019-09-18 11:12:49 +00:00
|
|
|
var corpusList = new CorpusList("corpus-foreign-list", foreignCorporaSubscribers, {
|
2019-09-18 10:06:34 +00:00
|
|
|
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);
|
|
|
|
</script>
|
2019-08-15 13:56:53 +00:00
|
|
|
{% endblock %}
|