Changeset 131 for trunk/grails-app/views/subAssembly
- Timestamp:
- May 8, 2009, 1:01:56 AM (16 years ago)
- Location:
- trunk/grails-app/views/subAssembly
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/subAssembly/create.gsp
r122 r131 26 26 <table> 27 27 <tbody> 28 29 <tr class="prop"> 30 <td valign="top" class="name"> 31 <label for="assembly">Assembly:</label> 32 </td> 33 <td valign="top" class="value ${hasErrors(bean:subAssemblyInstance,field:'assembly','errors')}"> 34 <g:select optionKey="id" from="${Assembly.list()}" name="assembly.id" value="${subAssemblyInstance?.assembly?.id}" ></g:select> 35 </td> 36 </tr> 28 37 29 38 <tr class="prop"> -
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> -
trunk/grails-app/views/subAssembly/list.gsp
r122 r131 24 24 <g:sortableColumn property="id" title="Id" /> 25 25 26 <th>Assembly</th> 27 26 28 <g:sortableColumn property="description" title="Description" /> 27 29 … … 37 39 38 40 <td><g:link action="show" id="${subAssemblyInstance.id}">${fieldValue(bean:subAssemblyInstance, field:'id')}</g:link></td> 41 42 <td>${fieldValue(bean:subAssemblyInstance, field:'assembly')}</td> 39 43 40 44 <td>${fieldValue(bean:subAssemblyInstance, field:'description')}</td> -
trunk/grails-app/views/subAssembly/show.gsp
r122 r131 31 31 32 32 <tr class="prop"> 33 <td valign="top" class="name">Assembl ies:</td>33 <td valign="top" class="name">Assembly:</td> 34 34 35 <td valign="top" style="text-align:left;" class="value"> 36 <ul> 37 <g:each var="a" in="${subAssemblyInstance.assemblies}"> 38 <li><g:link controller="assembly" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 39 </g:each> 40 </ul> 41 </td> 35 <td valign="top" class="value"><g:link controller="assembly" action="show" id="${subAssemblyInstance?.assembly?.id}">${subAssemblyInstance?.assembly?.encodeAsHTML()}</g:link></td> 42 36 43 37 </tr>
Note: See TracChangeset
for help on using the changeset viewer.