mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
initial commit
This commit is contained in:
parent
b7c7d8b449
commit
750811a81f
52 changed files with 25204 additions and 92 deletions
29
client/Dashboard/dashboard.html
Normal file
29
client/Dashboard/dashboard.html
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<template name="dashboard">
|
||||
<h2>My Dashboard</h2>
|
||||
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-action">
|
||||
<a href="#">This is a link</a>
|
||||
<a href="#">This is a link</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</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>
|
||||
19
client/Dashboard/dashboard.js
Normal file
19
client/Dashboard/dashboard.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import { ServiceEntities } from "../../imports/api/serviceentities";
|
||||
|
||||
Template.dashboard.onCreated(function() {
|
||||
this.subscribe("ServiceEntities");
|
||||
});
|
||||
|
||||
Template.dashboard.onRendered(function() {
|
||||
|
||||
});
|
||||
|
||||
Template.dashboard.helpers({
|
||||
entityCount: function() {
|
||||
return ServiceEntities.find().count();
|
||||
},
|
||||
});
|
||||
|
||||
Template.dashboard.events({
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue