Skip to content
Browse files

add state to list users

  • Loading branch information
usmannasir committed Jan 20, 2020
1 parent 6214586 commit 732e362d068e35ccb09567f9323505975151f6df
@@ -1685,6 +1685,10 @@ app.controller('listTableUsers', function ($scope, $http) {


$scope.controlUserState = function (state) {


@@ -34,6 +34,7 @@ <h3 class="content-box-header">
<th>{% trans "Disk Usage" %}</th>
<th>{% trans "ACL" %}</th>
<th>{% trans "Owner" %}</th>
<th>{% trans "State" %}</th>
<th>{% trans "Actions" %}</th>
@@ -44,7 +45,14 @@ <h3 class="content-box-header">
<td ng-bind="record.diskUsage"></td>
<td ng-bind="record.acl"></td>
<td ng-bind="record.owner"></td>
<td ng-bind="record.state"></td>
<a ng-show="record.state=='ACTIVE'"
class="btn btn-border btn-alt border-red btn-link font-red" href="#"
ng-click="controlUserState('SUSPEND')" title=""><span>{% trans 'Suspend' %}</span></a>
<a ng-show="record.state=='SUSPENDED'"
class="btn btn-border btn-alt border-green btn-link font-green" href="#"
ng-click="controlUserState('ACTIVATE')" title=""><span>{% trans 'Activate' %}</span></a>
<a data-toggle="modal" data-target="#settings"
class="btn btn-border btn-alt border-purple btn-link font-purple" href="#"
@@ -989,7 +989,8 @@ def fetchTableUsers(request):
'owner': owner.userName,
'diskUsage': '%sMB' % str(diskUsage),
'websites': items.initWebsitesLimit
'websites': items.initWebsitesLimit,
'state': items.state

if checker == 0:

0 comments on commit 732e362

Please sign in to comment.
You can’t perform that action at this time.