source: trunk/grails-app/views/common/_topnav.gsp @ 361

Last change on this file since 361 was 361, checked in by roberth, 12 years ago

Added controllers and views for Person, PersonAffiliation? and PersonRole? and added them to the menu. Also removed the link between Person and PersonRole?, in line with the datamodel

  • Property svn:keywords set to Date Author Rev
File size: 2.5 KB
Line 
1
2    <!-- TOPNAV //-->
3    <ul class="topnav">
4     <li><g:link controller="home" action="index">Home</g:link></li>
5<n:isLoggedIn>
6     <li><g:link controller="study" action="list">My studies</g:link></li>
7</n:isLoggedIn>     <li>
8      <a href="#">Studies</a>
9      <ul class="subnav">
10        <li><g:link controller="study" action="list">View studies</g:link></li>
11        <li><g:link controller="wizard" action="index">Create study</g:link></li>
12      </ul>
13     </li>
14     <li>
15      <a href="#">Events</a>
16      <ul class="subnav">
17        <li><g:link controller="protocol" action="list">View protocols</g:link></li>
18        <li><g:link controller="eventDescription" action="list">View event descriptions</g:link></li>
19      </ul>
20     </li>
21     <li>
22      <a href="#">Contacts</a>
23      <ul class="subnav">
24        <li><g:link controller="person" action="list">View persons</g:link></li>
25        <li><g:link controller="personAffiliation" action="list">View affiliations</g:link></li>
26        <li><g:link controller="personRole" action="list">View roles</g:link></li>
27      </ul>
28     </li>
29
30         <li><g:link controller="importer" action="index">Import data</g:link></li>
31    <g:if env="development">
32     <li><g:link controller="query" action="index">Query database</g:link></li>
33         <li>
34          <a href="#">Scaffolded controllers</a>
35          <ul class="subnav"><g:each var="c" in="${grailsApplication.controllerClasses}">
36           <li><g:link controller="${c.logicalPropertyName}">${c.fullName}</g:link></li></g:each>
37          </ul>
38     </li>
39        </g:if>
40<n:isAdministrator>
41     <li>
42          <a href="#">User administation</a>
43          <ul class="subnav">
44            <li><g:link controller="admins" action="index" class="icon icon_user_suit">Manage Administrators</g:link></li>
45            <li><g:link controller="user" action="list" class="icon icon_user">List Users</g:link></li>
46            <li><g:link controller="user" action="create" class="icon icon_user_add">Create User</g:link></li>
47            <li><g:link controller="role" action="list" class="icon icon_cog">List Roles</g:link></li>
48            <li><g:link controller="role" action="create" class="icon icon_cog_add">Create Role</g:link></li>
49            <li><g:link controller="group" action="list" class="icon icon_group">List Groups</g:link></li>
50            <li><g:link controller="group" action="create" class="icon icon_group_add">Create Group</g:link></li>
51            <li><g:link controller="auth" action="logout" class="icon icon_cross">Sign out</g:link></li>
52          </ul>
53     </li>
54</n:isAdministrator>
55    </ul>
56    <!-- /TOPNAV //-->
Note: See TracBrowser for help on using the repository browser.