added edit permissions

This commit is contained in:
Dobie Wollert
2014-09-14 07:03:21 -04:00
parent b949f6ff90
commit 663941bf57
9 changed files with 28 additions and 26 deletions

View File

@ -6,8 +6,8 @@
<div class="row-fluid">
<div class="span12">
<div class="toolbelt">
<a href="/workorders/add" class="btn btn-primary">Create new workorder</a>
<a href="/workorders/add?workorderType=meeting" class="btn">Create new meeting</a>
<a href="/workorders/add" class="btn btn-primary" ng-show="accountHasPermission('system.edit')">Create new workorder</a>
<a href="/workorders/add?workorderType=meeting" class="btn" ng-show="accountHasPermission('system.edit')">Create new meeting</a>
<div class="pull-right">
<div class="input-append">
<input type="text" ng-model="query" class="input-large" placeholder="Search">