Changeset 368 for trunk/grails-app


Ignore:
Timestamp:
Feb 17, 2010, 9:45:51 PM (15 years ago)
Author:
gav
Message:

Detail MaintenanceAction views.
Expand on TaskProcedureDetailedController create message.

Location:
trunk/grails-app
Files:
4 edited

Legend:

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

    r366 r368  
    118118                            taskInstance: taskInstance]
    119119        } else {
    120             flash.message = "Please select a task, then the Procedure tab."
     120            flash.message = "Please select or create a task, then go to the Procedure tab."
    121121            redirect(controller:"taskDetailed", action:"search")
    122122        }
  • trunk/grails-app/views/maintenanceActionDetailed/create.gsp

    r269 r368  
    99    <body>
    1010        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="list">MaintenanceAction List</g:link></span>
     11            <h1>Create Maintenance Action</h1>
    1212        </div>
    1313        <div class="body">
    14             <h1>Create MaintenanceAction</h1>
    1514            <g:if test="${flash.message}">
    1615            <div class="message">${flash.message}</div>
     
    104103                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'taskProcedure','errors')}">
    105104                                    <g:select optionKey="id" from="${TaskProcedure.list()}" name="taskProcedure.id" value="${maintenanceActionInstance?.taskProcedure?.id}" ></g:select>
     105                                    <p><g:link controller="taskProcedureDetailed" action="create">Add Task Procedure</g:link></p>
    106106                                </td>
    107                             </tr> 
     107                            </tr>
    108108                       
    109109                        </tbody>
  • trunk/grails-app/views/maintenanceActionDetailed/edit.gsp

    r269 r368  
    99    <body>
    1010        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="list">MaintenanceAction List</g:link></span>
    12             <span class="menuButton"><g:link class="create" action="create">New MaintenanceAction</g:link></span>
     11            <h1>Edit Maintenance Action</h1>
    1312        </div>
    1413        <div class="body">
    15             <h1>Edit MaintenanceAction</h1>
    1614            <g:if test="${flash.message}">
    1715            <div class="message">${flash.message}</div>
  • trunk/grails-app/views/maintenanceActionDetailed/show.gsp

    r345 r368  
    99    <body>
    1010        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="list">MaintenanceAction List</g:link></span>
    12             <span class="menuButton"><g:link class="create" action="create">New MaintenanceAction</g:link></span>
     11            <h1>Show Maintenance Action</h1>
    1312        </div>
    1413        <div class="body">
    15             <h1>Show MaintenanceAction</h1>
    1614            <g:if test="${flash.message}">
    1715            <div class="message">${flash.message}</div>
     
    5351                            <td valign="top" class="name">Maintenance Policy:</td>
    5452                           
    55                             <td valign="top" class="value"><g:link controller="maintenancePolicy" action="show" id="${maintenanceActionInstance?.maintenancePolicy?.id}">${maintenanceActionInstance?.maintenancePolicy?.encodeAsHTML()}</g:link></td>
     53                            <td valign="top" class="value"><g:link controller="maintenancePolicyDetailed" action="show" id="${maintenanceActionInstance?.maintenancePolicy?.id}">${maintenanceActionInstance?.maintenancePolicy?.encodeAsHTML()}</g:link></td>
    5654                           
    5755                        </tr>
Note: See TracChangeset for help on using the changeset viewer.