Changeset 131 for trunk/grails-app/views/subAssembly/edit.gsp
- Timestamp:
- May 8, 2009, 1:01:56 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/subAssembly/edit.gsp
r122 r131 32 32 <tr class="prop"> 33 33 <td valign="top" class="name"> 34 <label for="assembl ies">Assemblies:</label>34 <label for="assembly">Assembly:</label> 35 35 </td> 36 <td valign="top" class="value ${hasErrors(bean:subAssemblyInstance,field:'assembl ies','errors')}">37 36 <td valign="top" class="value ${hasErrors(bean:subAssemblyInstance,field:'assembly','errors')}"> 37 <g:select optionKey="id" from="${Assembly.list()}" name="assembly.id" value="${subAssemblyInstance?.assembly?.id}" ></g:select> 38 38 </td> 39 39 </tr> … … 44 44 </td> 45 45 <td valign="top" class="value ${hasErrors(bean:subAssemblyInstance,field:'componentItems','errors')}"> 46 <g:select name="componentItems" 47 from="${ComponentItem.list()}" 48 size="5" multiple="yes" optionKey="id" 49 value="${subAssemblyInstance?.componentItems}" /> 46 47 <ul> 48 <g:each var="c" in="${subAssemblyInstance?.componentItems?}"> 49 <li><g:link controller="componentItem" action="show" id="${c.id}">${c?.encodeAsHTML()}</g:link></li> 50 </g:each> 51 </ul> 52 <g:link controller="componentItem" params="['subAssembly.id':subAssemblyInstance?.id]" action="create">Add ComponentItem</g:link> 50 53 51 54 </td>
Note: See TracChangeset
for help on using the changeset viewer.