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.

Location:
trunk/grails-app/views/subAssembly
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/subAssembly/create.gsp

    r118 r122  
    4747                            <tr class="prop">
    4848                                <td valign="top" class="name">
    49                                     <label for="lifeplan">Lifeplan:</label>
    50                                 </td>
    51                                 <td valign="top" class="value ${hasErrors(bean:subAssemblyInstance,field:'lifeplan','errors')}">
    52                                     <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${subAssemblyInstance?.lifeplan?.id}" ></g:select>
    53                                 </td>
    54                             </tr>
    55                        
    56                             <tr class="prop">
    57                                 <td valign="top" class="name">
    5849                                    <label for="name">Name:</label>
    5950                                </td>
  • trunk/grails-app/views/subAssembly/edit.gsp

    r118 r122  
    7272                            <tr class="prop">
    7373                                <td valign="top" class="name">
    74                                     <label for="lifeplan">Lifeplan:</label>
     74                                    <label for="maintenanceActions">Maintenance Actions:</label>
    7575                                </td>
    76                                 <td valign="top" class="value ${hasErrors(bean:subAssemblyInstance,field:'lifeplan','errors')}">
    77                                     <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${subAssemblyInstance?.lifeplan?.id}" ></g:select>
     76                                <td valign="top" class="value ${hasErrors(bean:subAssemblyInstance,field:'maintenanceActions','errors')}">
     77                                   
     78<ul>
     79<g:each var="m" in="${subAssemblyInstance?.maintenanceActions?}">
     80    <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
     81</g:each>
     82</ul>
     83<g:link controller="maintenanceAction" params="['subAssembly.id':subAssemblyInstance?.id]" action="create">Add MaintenanceAction</g:link>
     84
    7885                                </td>
    7986                            </tr>
  • trunk/grails-app/views/subAssembly/list.gsp

    r118 r122  
    2828                                <g:sortableColumn property="isActive" title="Is Active" />
    2929                       
    30                                 <th>Lifeplan</th>
    31                            
    3230                                <g:sortableColumn property="name" title="Name" />
    3331                       
     
    4442                            <td>${fieldValue(bean:subAssemblyInstance, field:'isActive')}</td>
    4543                       
    46                             <td>${fieldValue(bean:subAssemblyInstance, field:'lifeplan')}</td>
    47                        
    4844                            <td>${fieldValue(bean:subAssemblyInstance, field:'name')}</td>
    4945                       
  • trunk/grails-app/views/subAssembly/show.gsp

    r118 r122  
    7171                   
    7272                        <tr class="prop">
    73                             <td valign="top" class="name">Lifeplan:</td>
     73                            <td valign="top" class="name">Maintenance Actions:</td>
    7474                           
    75                             <td valign="top" class="value"><g:link controller="lifePlan" action="show" id="${subAssemblyInstance?.lifeplan?.id}">${subAssemblyInstance?.lifeplan?.encodeAsHTML()}</g:link></td>
     75                            <td  valign="top" style="text-align:left;" class="value">
     76                                <ul>
     77                                <g:each var="m" in="${subAssemblyInstance.maintenanceActions}">
     78                                    <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
     79                                </g:each>
     80                                </ul>
     81                            </td>
    7682                           
    7783                        </tr>
Note: See TracChangeset for help on using the changeset viewer.