Ignore:
Timestamp:
May 1, 2009, 3:27:41 PM (15 years ago)
Author:
gav
Message:

Run generate-all on all controllers and views except Person and Authority.
Extensive work on Asset domain and application now compiles and runs well.
Update BootStrap? to suite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/lifePlan/edit.gsp

    r118 r122  
    3232                            <tr class="prop">
    3333                                <td valign="top" class="name">
    34                                     <label for="asset">Asset:</label>
    35                                 </td>
    36                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'asset','errors')}">
    37                                     <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${lifePlanInstance?.asset?.id}" noSelection="['null':'']"></g:select>
    38                                 </td>
    39                             </tr>
    40                        
    41                             <tr class="prop">
    42                                 <td valign="top" class="name">
    43                                     <label for="form">Form:</label>
    44                                 </td>
    45                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'form','errors')}">
    46                                     <g:select optionKey="id" from="${Form.list()}" name="form.id" value="${lifePlanInstance?.form?.id}" noSelection="['null':'']"></g:select>
    47                                 </td>
    48                             </tr>
    49                        
    50                             <tr class="prop">
    51                                 <td valign="top" class="name">
    52                                     <label for="frequency">Frequency:</label>
    53                                 </td>
    54                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'frequency','errors')}">
    55                                     <g:select optionKey="id" from="${Frequency.list()}" name="frequency.id" value="${lifePlanInstance?.frequency?.id}" noSelection="['null':'']"></g:select>
    56                                 </td>
    57                             </tr>
    58                        
    59                             <tr class="prop">
    60                                 <td valign="top" class="name">
    61                                     <label for="assetType">Asset Type:</label>
    62                                 </td>
    63                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'assetType','errors')}">
    64                                     <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${lifePlanInstance?.assetType?.id}" noSelection="['null':'']"></g:select>
    65                                 </td>
    66                             </tr>
    67                        
    68                             <tr class="prop">
    69                                 <td valign="top" class="name">
    70                                     <label for="assembly">Assembly:</label>
    71                                 </td>
    72                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'assembly','errors')}">
    73                                     <g:select optionKey="id" from="${Assembly.list()}" name="assembly.id" value="${lifePlanInstance?.assembly?.id}" noSelection="['null':'']"></g:select>
    74                                 </td>
    75                             </tr>
    76                        
    77                             <tr class="prop">
    78                                 <td valign="top" class="name">
    79                                     <label for="subAssembly">Sub Assembly:</label>
    80                                 </td>
    81                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'subAssembly','errors')}">
    82                                     <g:select optionKey="id" from="${SubAssembly.list()}" name="subAssembly.id" value="${lifePlanInstance?.subAssembly?.id}" noSelection="['null':'']"></g:select>
    83                                 </td>
    84                             </tr>
    85                        
    86                             <tr class="prop">
    87                                 <td valign="top" class="name">
    88                                     <label for="componentItem">Component Item:</label>
    89                                 </td>
    90                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'componentItem','errors')}">
    91                                     <g:select optionKey="id" from="${ComponentItem.list()}" name="componentItem.id" value="${lifePlanInstance?.componentItem?.id}" noSelection="['null':'']"></g:select>
    92                                 </td>
    93                             </tr>
    94                        
    95                             <tr class="prop">
    96                                 <td valign="top" class="name">
    9734                                    <label for="description">Description:</label>
    9835                                </td>
     
    11350                            <tr class="prop">
    11451                                <td valign="top" class="name">
    115                                     <label for="maintenanceAction">Maintenance Action:</label>
    116                                 </td>
    117                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'maintenanceAction','errors')}">
    118                                     <input type="text" id="maintenanceAction" name="maintenanceAction" value="${fieldValue(bean:lifePlanInstance,field:'maintenanceAction')}"/>
    119                                 </td>
    120                             </tr>
    121                        
    122                             <tr class="prop">
    123                                 <td valign="top" class="name">
    12452                                    <label for="name">Name:</label>
    12553                                </td>
    12654                                <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'name','errors')}">
    12755                                    <input type="text" id="name" name="name" value="${fieldValue(bean:lifePlanInstance,field:'name')}"/>
    128                                 </td>
    129                             </tr>
    130                        
    131                             <tr class="prop">
    132                                 <td valign="top" class="name">
    133                                     <label for="notes">Notes:</label>
    134                                 </td>
    135                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'notes','errors')}">
    136                                     <input type="text" id="notes" name="notes" value="${fieldValue(bean:lifePlanInstance,field:'notes')}"/>
    137                                 </td>
    138                             </tr>
    139                        
    140                             <tr class="prop">
    141                                 <td valign="top" class="name">
    142                                     <label for="resourceNumber">Resource Number:</label>
    143                                 </td>
    144                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'resourceNumber','errors')}">
    145                                     <input type="text" id="resourceNumber" name="resourceNumber" value="${fieldValue(bean:lifePlanInstance,field:'resourceNumber')}"/>
    146                                 </td>
    147                             </tr>
    148                        
    149                             <tr class="prop">
    150                                 <td valign="top" class="name">
    151                                     <label for="systemSections">System Sections:</label>
    152                                 </td>
    153                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'systemSections','errors')}">
    154                                    
    155                                 </td>
    156                             </tr>
    157                        
    158                             <tr class="prop">
    159                                 <td valign="top" class="name">
    160                                     <label for="timeInHours">Time In Hours:</label>
    161                                 </td>
    162                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'timeInHours','errors')}">
    163                                     <input type="text" id="timeInHours" name="timeInHours" value="${fieldValue(bean:lifePlanInstance,field:'timeInHours')}" />
    16456                                </td>
    16557                            </tr>
Note: See TracChangeset for help on using the changeset viewer.