Changeset 756 for branches/features


Ignore:
Timestamp:
Jan 25, 2011, 7:00:23 PM (13 years ago)
Author:
gav
Message:

Domain change, remove unused field and tweak MaintenanceAction?.

Location:
branches/features/taskProcedureRework/grails-app
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/features/taskProcedureRework/grails-app/domain/MaintenanceAction.groovy

    r268 r756  
    1010    String reasoning = ""
    1111    Integer procedureStepNumber
    12     boolean isActive = true
    1312
    1413//     static hasMany = []
    1514
    16 //     static belongsTo = []
     15    static belongsTo = [TaskProcedure]
    1716
    1817    static constraints = {
     
    2221        maintenancePolicy(nullable:true)
    2322        procedureStepNumber(nullable:true)
    24         description()
     23        description(blank:false)
    2524        reasoning()
    26         isActive()
    2725    }
    2826
  • branches/features/taskProcedureRework/grails-app/views/maintenanceActionDetailed/create.gsp

    r410 r756  
    9090                            <tr class="prop">
    9191                                <td valign="top" class="name">
    92                                     <label for="isActive">Is Active:</label>
    93                                 </td>
    94                                 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'isActive','errors')}">
    95                                     <g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox>
    96                                 </td>
    97                             </tr>
    98                        
    99                             <tr class="prop">
    100                                 <td valign="top" class="name">
    10192                                    <label for="taskProcedure">Task Procedure:</label>
    10293                                </td>
  • branches/features/taskProcedureRework/grails-app/views/maintenanceActionDetailed/edit.gsp

    r368 r756  
    9292                            <tr class="prop">
    9393                                <td valign="top" class="name">
    94                                     <label for="isActive">Is Active:</label>
    95                                 </td>
    96                                 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'isActive','errors')}">
    97                                     <g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox>
    98                                 </td>
    99                             </tr>
    100                        
    101                             <tr class="prop">
    102                                 <td valign="top" class="name">
    10394                                    <label for="taskProcedure">Task Procedure:</label>
    10495                                </td>
  • branches/features/taskProcedureRework/grails-app/views/maintenanceActionDetailed/show.gsp

    r368 r756  
    7777                   
    7878                        <tr class="prop">
    79                             <td valign="top" class="name">Is Active:</td>
    80                            
    81                             <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:'isActive')}</td>
    82                            
    83                         </tr>
    84                    
    85                         <tr class="prop">
    8679                            <td valign="top" class="name">Task Procedure:</td>
    8780                           
Note: See TracChangeset for help on using the changeset viewer.