mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
My big initial commit to this repo and project.
This commit is contained in:
parent
750811a81f
commit
8636f8cf9b
2433 changed files with 199488 additions and 1042 deletions
|
|
@ -5,13 +5,37 @@ Template.userMgmt.onCreated(function() {
|
|||
});
|
||||
|
||||
Template.userMgmt.onRendered(function() {
|
||||
|
||||
$('select').formSelect();
|
||||
});
|
||||
|
||||
Template.userMgmt.helpers({
|
||||
|
||||
userInfo: function() {
|
||||
return Meteor.users.find({});
|
||||
},
|
||||
userName: function() {
|
||||
return this.profile.fullname;
|
||||
},
|
||||
userEmail: function() {
|
||||
return this.emails[0].address;
|
||||
},
|
||||
userRole: function() {
|
||||
return Roles.getRolesForUser( this._id );
|
||||
}
|
||||
});
|
||||
|
||||
Template.userMgmt.events({
|
||||
"click .editUser" (event) {
|
||||
event.preventDefault();
|
||||
|
||||
let userId = this._id;
|
||||
// take action
|
||||
console.log("Edit called on: " + userId);
|
||||
},
|
||||
"click .deleteUser" (event) {
|
||||
event.preventDefault();
|
||||
|
||||
let userId = this._id;
|
||||
// take action
|
||||
console.log("Delete called on : " + userId);
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue