Ignore:
Timestamp:
Jan 14, 2010, 5:44:28 PM (10 years ago)
Author:
duh
Message:
  • refactored some wizard code
  • templatizing and standardizing form elements into tag libraries
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/common/_topnav.gsp

    r63 r89  
    22    <!-- TOPNAV //-->
    33    <ul class="topnav">
    4       <li><g:link url="/${meta(name: 'app.name')}/">Home</g:link></li>
    5     <li><g:link controller="load" action="index">Loading data</g:link></li>
    6       <li><g:link controller="query" action="index">Query database</g:link></li>
     4     <li><g:link url="/${meta(name: 'app.name')}/">Home</g:link></li>
     5     <li>
     6      <a href="#">Studies</a>
     7      <ul class="subnav">
     8        <li><a href="#">View Studies</a></li>
     9        <li><g:link controller="wizard" action="index">Create Study</g:link></li>
     10      </ul>
     11     </li>
     12     <li><g:link controller="load" action="index">Loading data</g:link></li>
     13     <li><g:link controller="query" action="index">Query database</g:link></li>
    714<n:isLoggedIn>
    8       <li><g:link controller="study" action="list">My studies</g:link></li>
     15     <li><g:link controller="study" action="list">My studies</g:link></li>
    916</n:isLoggedIn>
    10       <li>
    11         <a href="#">Scaffolded controllers</a>
    12         <ul class="subnav"><g:each var="c" in="${grailsApplication.controllerClasses}">
    13           <li><g:link controller="${c.logicalPropertyName}">${c.fullName}</g:link></li></g:each>
    14         </ul>
    15       </li>
     17     <li>
     18          <a href="#">Scaffolded controllers</a>
     19          <ul class="subnav"><g:each var="c" in="${grailsApplication.controllerClasses}">
     20           <li><g:link controller="${c.logicalPropertyName}">${c.fullName}</g:link></li></g:each>
     21          </ul>
     22     </li>
    1623<n:isAdministrator>
    17       <li>
    18         <a href="#">User administation</a>
    19         <ul class="subnav">
    20           <li><g:link controller="admins" action="index" class="icon icon_user_suit">Manage Administrators</g:link></li>
    21           <li><g:link controller="user" action="list" class="icon icon_user">List Users</g:link></li>
    22           <li><g:link controller="user" action="create" class="icon icon_user_add">Create User</g:link></li>
    23           <li><g:link controller="role" action="list" class="icon icon_cog">List Roles</g:link></li>
    24           <li><g:link controller="role" action="create" class="icon icon_cog_add">Create Role</g:link></li>
    25           <li><g:link controller="group" action="list" class="icon icon_group">List Groups</g:link></li>
    26           <li><g:link controller="group" action="create" class="icon icon_group_add">Create Group</g:link></li>
    27           <li><g:link controller="auth" action="logout" class="icon icon_cross">Sign out</g:link></li>
    28         </ul>
    29       </li>
     24     <li>
     25          <a href="#">User administation</a>
     26          <ul class="subnav">
     27            <li><g:link controller="admins" action="index" class="icon icon_user_suit">Manage Administrators</g:link></li>
     28            <li><g:link controller="user" action="list" class="icon icon_user">List Users</g:link></li>
     29            <li><g:link controller="user" action="create" class="icon icon_user_add">Create User</g:link></li>
     30            <li><g:link controller="role" action="list" class="icon icon_cog">List Roles</g:link></li>
     31            <li><g:link controller="role" action="create" class="icon icon_cog_add">Create Role</g:link></li>
     32            <li><g:link controller="group" action="list" class="icon icon_group">List Groups</g:link></li>
     33            <li><g:link controller="group" action="create" class="icon icon_group_add">Create Group</g:link></li>
     34            <li><g:link controller="auth" action="logout" class="icon icon_cross">Sign out</g:link></li>
     35          </ul>
     36     </li>
    3037</n:isAdministrator>
    3138    </ul>
Note: See TracChangeset for help on using the changeset viewer.