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

    r118 r122  
    4141                            <tr class="prop">
    4242                                <td valign="top" class="name">
    43                                     <label for="fmeaNumber">Fmea Number:</label>
    44                                 </td>
    45                                 <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'fmeaNumber','errors')}">
    46                                     <input type="text" id="fmeaNumber" name="fmeaNumber" value="${fieldValue(bean:componentItemInstance,field:'fmeaNumber')}" />
    47                                 </td>
    48                             </tr>
    49                        
    50                             <tr class="prop">
    51                                 <td valign="top" class="name">
    5243                                    <label for="isActive">Is Active:</label>
    5344                                </td>
     
    5950                            <tr class="prop">
    6051                                <td valign="top" class="name">
    61                                     <label for="lifeplan">Lifeplan:</label>
     52                                    <label for="maintenanceActions">Maintenance Actions:</label>
    6253                                </td>
    63                                 <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'lifeplan','errors')}">
    64                                     <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${componentItemInstance?.lifeplan?.id}" ></g:select>
     54                                <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'maintenanceActions','errors')}">
     55                                   
     56<ul>
     57<g:each var="m" in="${componentItemInstance?.maintenanceActions?}">
     58    <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
     59</g:each>
     60</ul>
     61<g:link controller="maintenanceAction" params="['componentItem.id':componentItemInstance?.id]" action="create">Add MaintenanceAction</g:link>
     62
    6563                                </td>
    6664                            </tr>
Note: See TracChangeset for help on using the changeset viewer.