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
|
|
@ -1,29 +1,22 @@
|
|||
<template name="dashboard">
|
||||
<h2>My Dashboard</h2>
|
||||
|
||||
<h4>My Dashboard</h4>
|
||||
<div class="row">
|
||||
<div class="col s12 m6">
|
||||
<div class="card blue-grey darken-1">
|
||||
<div class="card-content white-text">
|
||||
<span class="card-title"><h4>My Entities</h4></span>
|
||||
<div class="row">
|
||||
<div class="col s8"><i class="large material-icons">business</i></div>
|
||||
<div class="col s4"><h2>{{entityCount}}</h2></div>
|
||||
{{#if isInRole 'systemadmin'}}
|
||||
<div class="col s12 m6 l4">
|
||||
<div class="card blue-grey darken-1">
|
||||
<div class="card-content white-text">
|
||||
<span class="card-title"><h4>Users</h4></span>
|
||||
<div class="row">
|
||||
<div class="col s8"><i class="medium material-icons">person</i></div>
|
||||
<div class="col s4"><h2>{{userCount}}</h2></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-action">
|
||||
<a href="#" id="usermgmtlink">User Management</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-action">
|
||||
<a href="#">This is a link</a>
|
||||
<a href="#">This is a link</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
</div>
|
||||
<h4>My Children</h4>
|
||||
<h4>My Messages</h4>
|
||||
<h4>My Approved Persons</h4>
|
||||
<h4>My Denied Persons</h4>
|
||||
<h4>My Approved Vehicles</h4>
|
||||
<h4>My Denied Vehicles</h4>
|
||||
<h4>My Parents</h4>
|
||||
</template>
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import { ServiceEntities } from "../../imports/api/serviceentities";
|
||||
|
||||
|
||||
Template.dashboard.onCreated(function() {
|
||||
this.subscribe("ServiceEntities");
|
||||
|
||||
});
|
||||
|
||||
Template.dashboard.onRendered(function() {
|
||||
|
|
@ -9,11 +9,14 @@ Template.dashboard.onRendered(function() {
|
|||
});
|
||||
|
||||
Template.dashboard.helpers({
|
||||
entityCount: function() {
|
||||
return ServiceEntities.find().count();
|
||||
},
|
||||
userCount: function() {
|
||||
return Meteor.users.find().count();
|
||||
}
|
||||
});
|
||||
|
||||
Template.dashboard.events({
|
||||
|
||||
"click #usermgmtlink" (event) {
|
||||
event.preventDefault();
|
||||
FlowRouter.go('/userMgmt');
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue