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