Ignore:
Timestamp:
May 8, 2009, 1:01:56 AM (15 years ago)
Author:
gav
Message:

Reconfigure Planned Maintenance again, now Preventative Maintenance, TaskProcedure? and MaintenanceAction?

File:
1 edited

Legend:

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

    r122 r131  
    3232                            <tr class="prop">
    3333                                <td valign="top" class="name">
    34                                     <label for="assetTypes">Asset Types:</label>
     34                                    <label for="assetType">Asset Type:</label>
    3535                                </td>
    36                                 <td valign="top" class="value ${hasErrors(bean:assemblyInstance,field:'assetTypes','errors')}">
    37                                    
     36                                <td valign="top" class="value ${hasErrors(bean:assemblyInstance,field:'assetType','errors')}">
     37                                    <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${assemblyInstance?.assetType?.id}" ></g:select>
    3838                                </td>
    3939                            </tr>
     
    8787                                </td>
    8888                                <td valign="top" class="value ${hasErrors(bean:assemblyInstance,field:'subAssemblies','errors')}">
    89                                     <g:select name="subAssemblies"
    90 from="${SubAssembly.list()}"
    91 size="5" multiple="yes" optionKey="id"
    92 value="${assemblyInstance?.subAssemblies}" />
     89                                   
     90<ul>
     91<g:each var="s" in="${assemblyInstance?.subAssemblies?}">
     92    <li><g:link controller="subAssembly" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
     93</g:each>
     94</ul>
     95<g:link controller="subAssembly" params="['assembly.id':assemblyInstance?.id]" action="create">Add SubAssembly</g:link>
    9396
    9497                                </td>
Note: See TracChangeset for help on using the changeset viewer.