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/create.gsp

    r118 r122  
    2929                            <tr class="prop">
    3030                                <td valign="top" class="name">
    31                                     <label for="asset">Asset:</label>
    32                                 </td>
    33                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'asset','errors')}">
    34                                     <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${lifePlanInstance?.asset?.id}" noSelection="['null':'']"></g:select>
    35                                 </td>
    36                             </tr>
    37                        
    38                             <tr class="prop">
    39                                 <td valign="top" class="name">
    40                                     <label for="form">Form:</label>
    41                                 </td>
    42                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'form','errors')}">
    43                                     <g:select optionKey="id" from="${Form.list()}" name="form.id" value="${lifePlanInstance?.form?.id}" noSelection="['null':'']"></g:select>
    44                                 </td>
    45                             </tr>
    46                        
    47                             <tr class="prop">
    48                                 <td valign="top" class="name">
    49                                     <label for="frequency">Frequency:</label>
    50                                 </td>
    51                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'frequency','errors')}">
    52                                     <g:select optionKey="id" from="${Frequency.list()}" name="frequency.id" value="${lifePlanInstance?.frequency?.id}" noSelection="['null':'']"></g:select>
    53                                 </td>
    54                             </tr>
    55                        
    56                             <tr class="prop">
    57                                 <td valign="top" class="name">
    58                                     <label for="assetType">Asset Type:</label>
    59                                 </td>
    60                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'assetType','errors')}">
    61                                     <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${lifePlanInstance?.assetType?.id}" noSelection="['null':'']"></g:select>
    62                                 </td>
    63                             </tr>
    64                        
    65                             <tr class="prop">
    66                                 <td valign="top" class="name">
    67                                     <label for="assembly">Assembly:</label>
    68                                 </td>
    69                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'assembly','errors')}">
    70                                     <g:select optionKey="id" from="${Assembly.list()}" name="assembly.id" value="${lifePlanInstance?.assembly?.id}" noSelection="['null':'']"></g:select>
    71                                 </td>
    72                             </tr>
    73                        
    74                             <tr class="prop">
    75                                 <td valign="top" class="name">
    76                                     <label for="subAssembly">Sub Assembly:</label>
    77                                 </td>
    78                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'subAssembly','errors')}">
    79                                     <g:select optionKey="id" from="${SubAssembly.list()}" name="subAssembly.id" value="${lifePlanInstance?.subAssembly?.id}" noSelection="['null':'']"></g:select>
    80                                 </td>
    81                             </tr>
    82                        
    83                             <tr class="prop">
    84                                 <td valign="top" class="name">
    85                                     <label for="componentItem">Component Item:</label>
    86                                 </td>
    87                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'componentItem','errors')}">
    88                                     <g:select optionKey="id" from="${ComponentItem.list()}" name="componentItem.id" value="${lifePlanInstance?.componentItem?.id}" noSelection="['null':'']"></g:select>
    89                                 </td>
    90                             </tr>
    91                        
    92                             <tr class="prop">
    93                                 <td valign="top" class="name">
    9431                                    <label for="description">Description:</label>
    9532                                </td>
     
    11047                            <tr class="prop">
    11148                                <td valign="top" class="name">
    112                                     <label for="maintenanceAction">Maintenance Action:</label>
    113                                 </td>
    114                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'maintenanceAction','errors')}">
    115                                     <input type="text" id="maintenanceAction" name="maintenanceAction" value="${fieldValue(bean:lifePlanInstance,field:'maintenanceAction')}"/>
    116                                 </td>
    117                             </tr>
    118                        
    119                             <tr class="prop">
    120                                 <td valign="top" class="name">
    12149                                    <label for="name">Name:</label>
    12250                                </td>
    12351                                <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'name','errors')}">
    12452                                    <input type="text" id="name" name="name" value="${fieldValue(bean:lifePlanInstance,field:'name')}"/>
    125                                 </td>
    126                             </tr>
    127                        
    128                             <tr class="prop">
    129                                 <td valign="top" class="name">
    130                                     <label for="notes">Notes:</label>
    131                                 </td>
    132                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'notes','errors')}">
    133                                     <input type="text" id="notes" name="notes" value="${fieldValue(bean:lifePlanInstance,field:'notes')}"/>
    134                                 </td>
    135                             </tr>
    136                        
    137                             <tr class="prop">
    138                                 <td valign="top" class="name">
    139                                     <label for="resourceNumber">Resource Number:</label>
    140                                 </td>
    141                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'resourceNumber','errors')}">
    142                                     <input type="text" id="resourceNumber" name="resourceNumber" value="${fieldValue(bean:lifePlanInstance,field:'resourceNumber')}"/>
    143                                 </td>
    144                             </tr>
    145                        
    146                             <tr class="prop">
    147                                 <td valign="top" class="name">
    148                                     <label for="timeInHours">Time In Hours:</label>
    149                                 </td>
    150                                 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'timeInHours','errors')}">
    151                                     <input type="text" id="timeInHours" name="timeInHours" value="${fieldValue(bean:lifePlanInstance,field:'timeInHours')}" />
    15253                                </td>
    15354                            </tr>
Note: See TracChangeset for help on using the changeset viewer.