Skip to content
Snippets Groups Projects
Commit d1f6ce8f authored by CupCakeArmy's avatar CupCakeArmy
Browse files

Users

parent a20502ec
No related branches found
No related tags found
No related merge requests found
<div class="row">
<div class="col-xs-10 col-md-11">
<div class="users-table-wrapper">
<div class="tools-full-height">
<table class="table table-hover users-table">
<thead>
<tr>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
<div class="col-xs-2 col-md-1">
<div class="users-sidebar tools-full-height">
<div class="row">
<div class="col-sm-12">Test</div>
<div class="col-sm-12">A</div>
<div class="col-sm-12">B</div>
</div>
</div>
<div class="users-table-wrapper">
<div class="tools-full-height">
<table class="table table-hover users-table">
<thead>
<tr>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<style>
.users-table-wrapper {
position: relative;
......@@ -30,7 +18,7 @@
.users-table-wrapper>div {
overflow: auto;
}
.users-sidebar {
background: #fff;
}
......@@ -38,16 +26,16 @@
<script type="text/javascript">
var showInTable = ['firstname', 'lastname', 'email', 'membership'];
amivcore.users.GET({data:{'max_results':'50'}}, function(ret){
if(!ret || ret['_items'].length == 0){
tools.log('No Data', 'w');
return;
}
showInTable.forEach(function(i){
$('.users-table thead tr').append('<th>'+ i +'</th>');
});
for(var n in ret['_items']){
var tmp = '';
showInTable.forEach(function(i){
......@@ -57,4 +45,4 @@
//$('.users-table tbody').append('<tr><td>'+ret['_items'][n].firstname+'</td></tr>');
}
});
</script>
\ No newline at end of file
</script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment