##// END OF EJS Templates
requirements: bump ziggurat_foundations to 0.8.3
requirements: bump ziggurat_foundations to 0.8.3

File last commit:

r85:d384ac58
r135:81277de4
Show More
admin-users-list-view.html
64 lines | 3.2 KiB | text/html | HtmlLexer
components: admin panel componentized
r85 <ng-include src="'templates/loader.html'" ng-if="$ctrl.loading.users"></ng-include>
project: initial commit
r0
components: admin panel componentized
r85 <div ng-show="!$ctrl.loading.users">
project: initial commit
r0
<div class="panel panel-default">
<div class="panel-heading">
components: admin panel componentized
r85 {{$ctrl.activeUsers}} active out of {{$ctrl.users.length}} users
project: initial commit
r0 </div>
components: admin panel componentized
r85 <table st-table="displayedCollection" st-safe-src="$ctrl.users" class="table table-striped">
project: initial commit
r0 <thead>
<tr>
<th class="user_name" st-sort="user_name"><a>Username</a></th>
<th class="email" st-sort="email"><a>Email</a></th>
<th class="status" st-sort="status"><a>Status</a></th>
<th st-sort="first_name"><a>First Name</a></th>
<th st-sort="last_name"><a>Last Name</a></th>
<th st-sort="last_login_date"><a>Last login</a></th>
<th class="options"></th>
</tr>
<tr>
<th><input st-search="user_name" placeholder="search for user name" class="form-control" type="search" st-delay="1"/></th>
<th><input st-search="email" placeholder="search for email" class="form-control" type="search" st-delay="1"/></th>
<th></th>
<th><input st-search="first_name" placeholder="search for first name" class="form-control" type="search" st-delay="1"/></th>
<th><input st-search="last_name" placeholder="search for last name" class="form-control" type="search" st-delay="1"/></th>
<th><input st-search="last_login_date" placeholder="search for last name" class="form-control" type="search" st-delay="1"/></th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="user in displayedCollection track by user.id">
<td><img src="{{user.gravatar_url}}" class="avatar"> {{user.user_name}}</td>
<td class="word-wrap small">{{user.email}}</td>
<td class="text-center"><span class="fa" ng-class="{'fa-check-circle':user.status, 'fa-times':!user.status}"></span></td>
<td class="word-wrap small">{{user.first_name}}</td>
<td class="word-wrap small">{{user.last_name}}</td>
<td><span data-uib-tooltip="{{user.last_login_date}}" class="small">{{user.last_login_date | isoToRelativeTime}}</span></td>
<td>
<a class="btn btn-default btn-sm" data-ui-sref="admin.user.update({userId:user.id})"><span class="fa fa-cog"></span></a>
<span class="dropdown" data-uib-dropdown on-toggle="toggled(open)">
<a class="btn btn-danger btn-sm" data-uib-dropdown-toggle><span class="fa fa-trash-o"></span></a>
<ul class="dropdown-menu">
<li><a>No</a></li>
components: admin panel componentized
r85 <li><a ng-click="$ctrl.removeUser(user)">Yes</a></li>
project: initial commit
r0 </ul>
</span>
</tr>
<tfoot>
<tr>
<td colspan="6" class="text-center">
<div st-pagination="" st-items-by-page="100" st-displayed-pages="7"></div>
</td>
</tr>
</tfoot>
</tbody>
</table>
</div>
</div>