summaryrefslogtreecommitdiff
path: root/demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl')
-rw-r--r--demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl14
1 files changed, 10 insertions, 4 deletions
diff --git a/demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl b/demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl
index 48187b52..808c233b 100644
--- a/demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl
+++ b/demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl
@@ -1,27 +1,33 @@
<com:TPanel CssClass="sitemap" Visible="true">
<ul class="level1">
- <li class="active"><a class="menuitem" href="?page=TimeTracker.TimeEntry">Log</a>
+ <li class="<com:TPlaceHolder ID="LogMenu" />">
+ <a class="menuitem" href="?page=TimeTracker.TimeEntry">Log</a>
</li>
- <li><span class="menuitem">Reports</span>
+ <com:TPlaceHolder Visible=<%= $this->User->isInRole('manager') %> >
+ <li class="<com:TPlaceHolder ID="ReportMenu" />">
+ <span class="menuitem">Reports</span>
<ul class="level2">
<li><a href="?page=TimeTracker.ReportProject">Project Reports</a></li>
<li><a href="?page=TimeTracker.ReportResource">Resources Report</a></li>
</ul>
</li>
- <li>
+ <li class="<com:TPlaceHolder ID="ProjectMenu" />">
<span class="menuitem">Projects</span>
<ul class="level2">
<li><a href="?page=TimeTracker.ProjectDetails">Create New Project</a></li>
<li><a href="?page=TimeTracker.ProjectList">List Projects</a></li>
</ul>
</li>
- <li>
+ </com:TPlaceHolder>
+ <com:TPlaceHolder Visible=<%= $this->User->isInRole('admin') %> >
+ <li class="<com:TPlaceHolder ID="AdminMenu" />">
<span class="menuitem">Adminstration</span>
<ul class="level2">
<li><a href="?page=TimeTracker.UserCreate">Create New User</a></li>
<li><a href="?page=TimeTracker.UserList">List Users</a></li>
</ul>
</li>
+ </com:TPlaceHolder>
</ul>
<com:TClientScript PradoScripts="prado">
Event.OnLoad(function()