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/asset/edit.gsp

    r118 r122  
    5959                            <tr class="prop">
    6060                                <td valign="top" class="name">
    61                                     <label for="lifeplan">Lifeplan:</label>
     61                                    <label for="maintenanceActions">Maintenance Actions:</label>
    6262                                </td>
    63                                 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'lifeplan','errors')}">
    64                                     <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${assetInstance?.lifeplan?.id}" ></g:select>
    65                                 </td>
    66                             </tr>
    67                        
    68                             <tr class="prop">
    69                                 <td valign="top" class="name">
    70                                     <label for="locationLongText">Location Long Text:</label>
    71                                 </td>
    72                                 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'locationLongText','errors')}">
    73                                     <input type="text" id="locationLongText" name="locationLongText" value="${fieldValue(bean:assetInstance,field:'locationLongText')}"/>
    74                                 </td>
    75                             </tr>
    76                        
    77                             <tr class="prop">
    78                                 <td valign="top" class="name">
    79                                     <label for="manufacturedDate">Manufactured Date:</label>
    80                                 </td>
    81                                 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'manufacturedDate','errors')}">
    82                                     <g:datePicker name="manufacturedDate" value="${assetInstance?.manufacturedDate}" ></g:datePicker>
    83                                 </td>
    84                             </tr>
    85                        
    86                             <tr class="prop">
    87                                 <td valign="top" class="name">
    88                                     <label for="modelNumber">Model Number:</label>
    89                                 </td>
    90                                 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'modelNumber','errors')}">
    91                                     <input type="text" id="modelNumber" name="modelNumber" value="${fieldValue(bean:assetInstance,field:'modelNumber')}"/>
     63                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'maintenanceActions','errors')}">
     64                                   
     65<ul>
     66<g:each var="m" in="${assetInstance?.maintenanceActions?}">
     67    <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
     68</g:each>
     69</ul>
     70<g:link controller="maintenanceAction" params="['asset.id':assetInstance?.id]" action="create">Add MaintenanceAction</g:link>
     71
    9272                                </td>
    9373                            </tr>
     
    10484                            <tr class="prop">
    10585                                <td valign="top" class="name">
    106                                     <label for="purchaseCost">Purchase Cost:</label>
     86                                    <label for="systemSection">System Section:</label>
    10787                                </td>
    108                                 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'purchaseCost','errors')}">
    109                                     <input type="text" id="purchaseCost" name="purchaseCost" value="${fieldValue(bean:assetInstance,field:'purchaseCost')}" />
    110                                 </td>
    111                             </tr>
    112                        
    113                             <tr class="prop">
    114                                 <td valign="top" class="name">
    115                                     <label for="riskPriorityNumber">Risk Priority Number:</label>
    116                                 </td>
    117                                 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'riskPriorityNumber','errors')}">
    118                                     <input type="text" id="riskPriorityNumber" name="riskPriorityNumber" value="${fieldValue(bean:assetInstance,field:'riskPriorityNumber')}" />
    119                                 </td>
    120                             </tr>
    121                        
    122                             <tr class="prop">
    123                                 <td valign="top" class="name">
    124                                     <label for="serialNumber">Serial Number:</label>
    125                                 </td>
    126                                 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'serialNumber','errors')}">
    127                                     <input type="text" id="serialNumber" name="serialNumber" value="${fieldValue(bean:assetInstance,field:'serialNumber')}"/>
     88                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}">
     89                                    <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select>
    12890                                </td>
    12991                            </tr>
Note: See TracChangeset for help on using the changeset viewer.