Latest Code

This commit is contained in:
Dobie Wollert
2015-04-06 03:28:20 -04:00
parent 966152a631
commit d3089dcd17
105 changed files with 8731 additions and 96 deletions

View File

@ -257,7 +257,7 @@
</div>
</div>
</div>
<div class="tab-pane" title="Frequency">
<div class="tab-pane" title="Frequency" visible="{{accountHasPermission('client.frequency')}}">
<table class="table frequency">
<thead>
<tr>

View File

@ -20,10 +20,10 @@
<table class="biomed-table" infinite-scroll="addItems()" can-load="canLoad" threshold="300">
<thead>
<tr>
<th style="width: 20%"></th>
<th style="width: 48%">Client Name</th>
<th style="width: 20%">Contact</th>
<th style="width: 12%">Phone</th>
<th style="width: 20%" ng-class="selectedCls('identifier')" ng-click="changeSorting('identifier')">ID</th>
<th style="width: 48%" ng-class="selectedCls('name')" ng-click="changeSorting('name')">Client Name</th>
<th style="width: 20%" ng-class="selectedCls('contacts[0].name')" ng-click="changeSorting('contacts[0].name')">Contact</th>
<th style="width: 12%" ng-class="selectedCls('contacts[0].phone')" ng-click="changeSorting('contacts[0].phone')">Phone</th>
</tr>
</thead>
<tbody>

View File

@ -29,6 +29,32 @@
<textarea ng-model="model.details" class="input-xlarge"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label">Posted On</label>
<div class="controls">
<span><input ng-model="model.postedOn" datepicker type="text" class="input-small"></span>
</div>
</div>
<div class="control-group">
<label class="control-label">Pages</label>
<div class="controls">
<label ng-repeat="page in pages">
<input
type="checkbox"
name="model.pages[]"
value="page.value"
ng-checked="model.pages.indexOf(page.value) > -1"
ng-click="togglePage(page)"
>{{page.label}}</input>
</label>
</div>
</div>
<div class="control-group">
<label class="control-label">Tags</label>
<div class="controls">
<input type="text" ui-select2="tagOptions" ng-model="model.tags" class="input-xxlarge" />
</div>
</div>
</div>
</div>
</div>
@ -42,7 +68,7 @@
<div class="dropzone" dropzone="titleImageOptions"></div>
</div>
</div>
<div class="control-group">
<div class="control-group" ng-show="model.image">
<label class="control-label">Gallery</label>
<div class="controls">
<div class="dropzone" dropzone="galleryImageOptions"></div>

View File

@ -29,6 +29,32 @@
<textarea ng-model="model.details" class="input-xlarge"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label">Posted On</label>
<div class="controls">
<span><input ng-model="model.postedOn" datepicker type="text" class="input-small"></span>
</div>
</div>
<div class="control-group">
<label class="control-label">Pages</label>
<div class="controls">
<label ng-repeat="page in pages">
<input
type="checkbox"
name="model.pages[]"
value="page.value"
ng-checked="model.pages.indexOf(page.value) > -1"
ng-click="togglePage(page)"
>{{page.label}}</input>
</label>
</div>
</div>
<div class="control-group">
<label class="control-label">Tags</label>
<div class="controls">
<input type="text" ui-select2="tagOptions" ng-model="model.tags" class="input-xxlarge" />
</div>
</div>
</div>
</div>
</div>
@ -42,7 +68,7 @@
<div class="dropzone" dropzone="titleImageOptions" existing="existingTitleImages"></div>
</div>
</div>
<div class="control-group">
<div class="control-group" ng-show="model.image">
<label class="control-label">Gallery</label>
<div class="controls">
<div class="dropzone" dropzone="galleryImageOptions" existing="existingGalleryImages"></div>

View File

@ -9,20 +9,28 @@
<div class="span12">
<div class="toolbelt">
<a href="/posts/add" class="btn btn-primary">Create new Post</a>
<a ng-click="selectPage('')" class="btn">All</a>
<a ng-click="selectPage('front')" class="btn">Front Page</a>
<a ng-click="selectPage('about-us')" class="btn">About Us</a>
<a ng-click="selectPage('sales')" class="btn">Sales</a>
<a ng-click="selectPage('service')" class="btn">Service</a>
<div class="pull-right">
<span class="toolbelt-text">Total Published: {{posted}}</span>
</div>
</div>
<table class="biomed-table" infinite-scroll="addItems()" can-load="canLoad" threshold="300">
<thead>
<tr>
<th style="width: 5%">Title</th>
<th style="width: 5%">Author</th>
<th style="width: 5%">Created on</th>
<th style="width: 5%">Posted on</th>
<th style="width: 5%">Status</th>
<th style="width: 45%">Title</th>
<th style="width: 15%">Author</th>
<th style="width: 15%">Created on</th>
<th style="width: 15%">Posted on</th>
<th style="width: 10%">Status</th>
</tr>
</thead>
<tbody>
<tr ng-show="loading"><td colspan="4" class="table-loading"><i class="loader"></i></td></tr>
<tr ng-hide="loading || posts.length"><td colspan="4" class="table-message">There is no information to display.</td></tr>
<tr ng-show="loading"><td colspan="5" class="table-loading"><i class="loader"></i></td></tr>
<tr ng-hide="loading || posts.length"><td colspan="5" class="table-message">There is no information to display.</td></tr>
<tr ng-hide="loading" ng-repeat="post in posts">
<td>
<a href="/posts/{{post._id}}">

View File

@ -33,20 +33,20 @@
<table class="biomed-table" infinite-scroll="addItems()" can-load="canLoad" threshold="300">
<thead>
<tr>
<th style="width: 48%">Client Name</th>
<th style="width: 20%">Reason</th>
<th style="width: 20%">Contact</th>
<th style="width: 12%">Phone</th>
<th style="width: 48%" ng-class="selectedCls('client.name')" ng-click="changeSorting('client.name')">Client Name</th>
<th style="width: 20%" ng-class="selectedCls('reason')" ng-click="changeSorting('reason')">Reason</th>
<th style="width: 20%" ng-class="selectedCls('client.contacts[0].name')" ng-click="changeSorting('client.contacts[0].name')">Contact</th>
<th style="width: 12%" ng-class="selectedCls('client.contacts[0].phone')" ng-click="changeSorting('client.contacts[0].phone')">Phone</th>
</tr>
</thead>
<tbody>
<tr ng-show="loading"><td colspan="4" class="table-loading"><i class="loader"></i></td></tr>
<tr ng-hide="loading || pms.length"><td colspan="4" class="table-message">There is no information to display.</td></tr>
<tr ng-hide="loading" ng-repeat="pm in pms">
<tr ng-hide="loading" ng-repeat="pm in pms | orderBy : sort.column : sort.descending">
<td><a ng-href="/workorders/add?workorderType=pm&amp;clientId={{pm.client._id}}&amp;type={{pm.reason}}">{{pm.client.name}} ({{pm.client.identifier | uppercase}})</a><br>
<td>{{pm.reason}}</td>
<td>{{pm.client.contacts[0].name}}</td>
<td>{{pm.lient.contacts[0].phone}}</td>
<td>{{pm.client.contacts[0].phone}}</td>
</tr>
</tbody>
</table>

View File

@ -12,7 +12,7 @@
</div>
</div>
<div ng-repeat="(name, values) in data" class="tech">
<div class="tech-label text-right">{{values.label}}</div>
<div class="tech-label text-right" ng-class="{'tech-current': values.current}">{{values.label}}</div>
<div class="enteries">
<div ng-repeat="entry in values.values" ng-style="entry.style" class="entry" ng-click="onEntryClick({entry: entry})" title="{{entry.workorder.client.name}} ({{entry.workorder.client.identifier}}) - {{entry.workorder.client.address.city}}">{{entry.workorder.client.identifier}}</div>
</div>

View File

@ -21,7 +21,7 @@
<tr>
<th colspan="2"></th>
<th colspan="5">Groups</th>
<th colspan="6">Permissions</th>
<th colspan="7">Permissions</th>
</tr>
<tr>
<th style="width: 15%">Name</th>
@ -37,6 +37,7 @@
<th style="width: 5%">Edit</th>
<th style="width: 5%">Site</th>
<th style="width: 5%">Admin</th>
<th style="width: 5%">Frequency</th>
</tr>
</thead>
<tbody>
@ -57,6 +58,7 @@
<td class="{{ checkPerm(user, 'system.edit') }}"><a ng-click="togglePerm(user, 'system.edit')"><i ng-class="{ 'icon-ok': checkPerm(user, 'system.edit'), 'icon-remove': !checkPerm(user, 'system.edit')}"></i></a></td>
<td class="{{ checkPerm(user, 'system.site') }}"><a ng-click="togglePerm(user, 'system.site')"><i ng-class="{ 'icon-ok': checkPerm(user, 'system.site'), 'icon-remove': !checkPerm(user, 'system.site')}"></i></a></td>
<td class="{{ checkPerm(user, 'system.admin') }}"><a ng-click="togglePerm(user, 'system.admin')"><i ng-class="{ 'icon-ok': checkPerm(user, 'system.admin'), 'icon-remove': !checkPerm(user, 'system.admin')}"></i></a></td>
<td class="{{ checkPerm(user, 'client.frequency') }}"><a ng-click="togglePerm(user, 'client.frequency')"><i ng-class="{ 'icon-ok': checkPerm(user, 'client.frequency'), 'icon-remove': !checkPerm(user, 'client.frequency')}"></i></a></td>
</tr>
</tbody>
</table>

View File

@ -21,6 +21,26 @@
</select>
</div>
</div>
<div class="control-group" ng-show="currentClient.address">
<label class="control-label"></label>
<div class="controls">
<span style="font-weight: bold">{{currentClient.contacts[0].name}}</span>
<div>
{{currentClient.address.street1}}<br>
{{currentClient.address.street2}}<br ng-show="currentClient.address.street2">
{{currentClient.address.city}}, {{currentClient.address.state}}. {{currentClient.address.zip}}
</div>
{{currentClient.contacts[0].phone}}
</div>
</div>
<div class="control-group" ng-show="currentClient.notes['internal']">
<label class="control-label">Internal Notes</label>
<div class="controls">{{currentClient.notes['internal']}}</div>
</div>
<div class="control-group" ng-show="currentClient.notes['tech']">
<label class="control-label">Tech Notes</label>
<div class="controls">{{currentClient.notes['tech']}}</div>
</div>
<div class="control-group">
<label class="control-label">Additional E-Mails</label>
<div class="controls">

View File

@ -27,17 +27,17 @@
</div>
<table class="biomed-table" infinite-scroll="addItems()" can-load="canLoad" threshold="300">
<thead>
<tr>
<th style="width: 50%">Workorder</th>
<th style="width: 30%">Client</th>
<th style="width: 10%">Date</th>
<th style="width: 10%">Status</th>
</tr>
<tr>
<th style="width: 50%" ng-class="selectedCls('biomedId')" ng-click="changeSorting('biomedId')">Workorder</th>
<th style="width: 30%" ng-class="selectedCls('client.name')" ng-click="changeSorting('client.name')">Client</th>
<th style="width: 10%" ng-class="selectedCls('scheduling.start')" ng-click="changeSorting('scheduling.start')">Date</th>
<th style="width: 10%" ng-class="selectedCls('status')" ng-click="changeSorting('status')">Status</th>
</tr>
</thead>
<tbody>
<tr ng-show="loading"><td colspan="4" class="table-loading"><i class="loader"></i></td></tr>
<tr ng-hide="loading || workorders.length"><td colspan="4" class="table-message">There is no information to display.</td></tr>
<tr ng-hide="loading" ng-repeat="workorder in workorders">
<tr ng-hide="loading" ng-repeat="workorder in workorders | orderBy : sort.column : sort.descending">
<td>
<a ng-href="/workorders/{{workorder._id}}">#{{workorder.biomedId}} - {{workorder.reason}}</a><br>
<strong>Techs:</strong> {{ workorder.techs | techs }}<br>