Changeset 369


Ignore:
Timestamp:
Feb 17, 2010, 10:36:16 PM (10 years ago)
Author:
gav
Message:

Add alt menu to AssetSubItem views.

Location:
trunk/grails-app
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/AssetSubItemDetailedController.groovy

    r359 r369  
    9898    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    9999    def show = {
     100
     101        // In the case of an actionSubmit button, rewrite action name from 'index'.
     102        if(params._action_Show)
     103        { params.action='show' }
     104
    100105        def assetSubItemInstance = AssetSubItem.get( params.id )
    101106
     
    127132
    128133    def edit = {
     134
     135        // In the case of an actionSubmit button, rewrite action name from 'index'.
     136        if(params._action_Edit)
     137        { params.action='edit' }
     138
    129139        def assetSubItemInstance = AssetSubItem.get( params.id )
    130140
  • trunk/grails-app/views/assetSubItemDetailed/create.gsp

    r336 r369  
    66        <meta name="layout" content="main" />
    77        <title>Create AssetSubItem</title>
     8        <nav:resources override="true"/>
    89    </head>
    910    <body>
    1011        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="search">Sub Item Search</g:link></span>
     12            <nav:renderSubItems group="navAlt"/>
    1213        </div>
    1314        <div class="body">
    14             <h1>Create Sub Item</h1>
    1515            <g:render template="/shared/messages" />
    1616            <g:hasErrors bean="${assetSubItemInstance}">
  • trunk/grails-app/views/assetSubItemDetailed/edit.gsp

    r354 r369  
    66        <meta name="layout" content="main" />
    77        <title>Edit AssetSubItem</title>
     8        <nav:resources override="true"/>
    89    </head>
    910    <body>
    1011        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="search">Sub Item Search</g:link></span>
     12            <nav:renderSubItems group="navAlt"/>
    1213        </div>
    1314        <div class="body">
    14             <h1>Edit Sub Item</h1>
    1515            <g:render template="/shared/messages" />
    1616            <g:hasErrors bean="${assetSubItemInstance}">
  • trunk/grails-app/views/assetSubItemDetailed/search.gsp

    r356 r369  
    1212    <body>
    1313        <div class="nav">
    14             <span class="menuButton"><g:link class="create" action="create">New Sub Item</g:link></span>
     14            <nav:renderSubItems group="navAlt"/>
    1515        </div>
    1616        <div class="body">
    17             <h1>Sub Item Search</h1>
    1817            <g:render template="/shared/messages" />
    1918
  • trunk/grails-app/views/assetSubItemDetailed/show.gsp

    r336 r369  
    66        <meta name="layout" content="main" />
    77        <title>Show AssetSubItem</title>
     8        <nav:resources override="true"/>
    89    </head>
    910    <body>
    1011        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="search">Sub Item Search</g:link></span>
    12             <span class="menuButton"><g:link class="create" action="create">New Sub Item</g:link></span>
     12            <nav:renderSubItems group="navAlt"/>
    1313        </div>
    1414        <div class="body">
    15             <h1>Show Sub Item</h1>
    1615            <g:render template="/shared/messages" />
    1716            <div class="dialog">
Note: See TracChangeset for help on using the changeset viewer.