mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
Merge branch 'development' of gitlab.ub.uni-bielefeld.de:sfb1288inf/opaque into development
This commit is contained in:
commit
97517339ff
@ -33,3 +33,43 @@ main {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* ### End sidenav-fixed offset ### */
|
/* ### End sidenav-fixed offset ### */
|
||||||
|
|
||||||
|
/* CSS for clickable th elements in tables. Needed for sortable table data with
|
||||||
|
list js. On click on th header elements will be sorted accordingly. Also a caret
|
||||||
|
indicator will show up how the column is sorted right now.; */
|
||||||
|
.sort {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.sort:after {
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-left: 5px solid transparent;
|
||||||
|
border-right: 5px solid transparent;
|
||||||
|
border-bottom: 5px solid transparent;
|
||||||
|
content:"";
|
||||||
|
position: relative;
|
||||||
|
top:-10px;
|
||||||
|
right:-5px;
|
||||||
|
}
|
||||||
|
.sort.asc:after {
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-left: 5px solid transparent;
|
||||||
|
border-right: 5px solid transparent;
|
||||||
|
border-top: 5px solid #000000;
|
||||||
|
content:"";
|
||||||
|
position: relative;
|
||||||
|
top:13px;
|
||||||
|
right:-5px;
|
||||||
|
}
|
||||||
|
.sort.desc:after {
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-left: 5px solid transparent;
|
||||||
|
border-right: 5px solid transparent;
|
||||||
|
border-bottom: 5px solid #000000;
|
||||||
|
content:"";
|
||||||
|
position: relative;
|
||||||
|
top:-10px;
|
||||||
|
right:-5px;
|
||||||
|
}
|
||||||
|
@ -6,14 +6,24 @@ class AdminUserTable(Table):
|
|||||||
Declares the table describing colum by column.
|
Declares the table describing colum by column.
|
||||||
"""
|
"""
|
||||||
classes = ['highlight', 'responsive-table']
|
classes = ['highlight', 'responsive-table']
|
||||||
username = Col('Username', column_html_attrs={'class': 'username'})
|
username = Col('Username', column_html_attrs={'class': 'username'},
|
||||||
email = Col('Email', column_html_attrs={'class': 'email'})
|
th_html_attrs={'class': 'sort',
|
||||||
role_id = Col('Role', column_html_attrs={'class': 'role'})
|
'data-sort': 'username'})
|
||||||
confirmed = Col('Confrimed Status', column_html_attrs={'class': 'confirmed'})
|
email = Col('Email', column_html_attrs={'class': 'email'},
|
||||||
id = Col('User Id', column_html_attrs={'class': 'id'})
|
th_html_attrs={'class': 'sort',
|
||||||
|
'data-sort': 'email'})
|
||||||
|
role_id = Col('Role', column_html_attrs={'class': 'role'},
|
||||||
|
th_html_attrs={'class': 'sort',
|
||||||
|
'data-sort': 'role'})
|
||||||
|
confirmed = Col('Confrimed Status', column_html_attrs={'class': 'confirmed'},
|
||||||
|
th_html_attrs={'class': 'sort',
|
||||||
|
'data-sort': 'confirmed'})
|
||||||
|
id = Col('User Id', column_html_attrs={'class': 'id'},
|
||||||
|
th_html_attrs={'class': 'sort',
|
||||||
|
'data-sort': 'id'})
|
||||||
url = LinkCol('Profile', 'admin.admin_user_page',
|
url = LinkCol('Profile', 'admin.admin_user_page',
|
||||||
url_kwargs=dict(user_id='id'),
|
url_kwargs=dict(user_id='id'),
|
||||||
anchor_attrs={'class': 'waves-effect waves-light btn-small'})
|
anchor_attrs={'class': 'waves-effect waves-light btn-small'})
|
||||||
|
|
||||||
|
|
||||||
class AdminUserItem(object):
|
class AdminUserItem(object):
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
<div class="col s12">
|
<div class="col s12">
|
||||||
<div class="card large">
|
<div class="card">
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<span class="card-title">User list</span>
|
<span class="card-title">User list</span>
|
||||||
<div id="users">
|
<div id="users">
|
||||||
@ -19,8 +19,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var options = {
|
var options = {
|
||||||
valueNames: ['username', 'email', 'role', 'confirmed'],
|
valueNames: ['username', 'email', 'role', 'confirmed', 'id'],
|
||||||
page: 3,
|
page: 10,
|
||||||
pagination: true
|
pagination: true
|
||||||
};
|
};
|
||||||
var userList = new List('users', options);
|
var userList = new List('users', options);
|
||||||
|
Loading…
Reference in New Issue
Block a user