Add group add form
This commit is contained in:
@@ -35,6 +35,12 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
|
||||
password: ''
|
||||
};
|
||||
|
||||
$scope.groupadd = {
|
||||
busy: false,
|
||||
error: {},
|
||||
name: ''
|
||||
};
|
||||
|
||||
$scope.isMe = function (user) {
|
||||
return user.username === Client.getUserInfo().username;
|
||||
};
|
||||
@@ -59,6 +65,16 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
|
||||
});
|
||||
};
|
||||
|
||||
$scope.showGroupAdd = function () {
|
||||
$scope.groupadd.error = {};
|
||||
$scope.groupadd.name = '';
|
||||
|
||||
$scope.groupAddForm.$setUntouched();
|
||||
$scope.groupAddForm.$setPristine();
|
||||
|
||||
$('#groupAddModal').modal('show');
|
||||
};
|
||||
|
||||
$scope.showUserAdd = function () {
|
||||
$scope.useradd.error = {};
|
||||
$scope.useradd.username = '';
|
||||
|
||||
Reference in New Issue
Block a user