Changeset 276 for trunk/grails-app/views
- Timestamp:
- Jan 20, 2010, 8:12:16 AM (15 years ago)
- Location:
- trunk/grails-app/views
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/assetDetailed/edit.gsp
r271 r276 86 86 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetSubItems','errors')}"> 87 87 88 <ul> 89 <g:each var="a" in="${assetInstance?.assetSubItems?}"> 90 <li><g:link controller="assetSubItemDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 91 </g:each> 92 </ul> 93 <g:link controller="assetSubItemDetailed" params="['asset.id':assetInstance?.id]" action="create">Add AssetSubItem</g:link> 88 <g:select name="assetSubItems" 89 from="${AssetSubItem.list()}" 90 size="5" multiple="yes" optionKey="id" 91 value="${assetInstance?.assetSubItems}" /> 94 92 95 93 </td> -
trunk/grails-app/views/assetSubItemDetailed/create.gsp
r274 r276 24 24 <table> 25 25 <tbody> 26 27 <g:if test="${assetSubItemInstance?.asset}" >28 <g:hiddenField name="asset.id" value="${assetSubItemInstance.asset.id}" />29 <tr class="prop">30 <td valign="top" class="name">31 <label for="asset">Asset:</label>32 </td>33 <td valign="top" class="value">34 ${assetSubItemInstance.asset.encodeAsHTML()}35 </td>36 </tr>37 </g:if>38 26 39 27 <g:if test="${assetSubItemInstance?.parentItem}" > -
trunk/grails-app/views/assetSubItemDetailed/edit.gsp
r274 r276 56 56 <tr class="prop"> 57 57 <td valign="top" class="name"> 58 <label for="asset">Asset:</label>59 </td>60 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'asset','errors')}">61 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetSubItemInstance?.asset?.id}" noSelection="['null':'']"></g:select>62 </td>63 </tr>64 65 <tr class="prop">66 <td valign="top" class="name">67 58 <label for="parentItem">Parent Item:</label> 68 59 </td> … … 86 77 87 78 </td> 88 </tr> 79 </tr> 80 81 <tr class="prop"> 82 <td valign="top" class="name"> 83 <label for="assets">Assets:</label> 84 </td> 85 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'assets','errors')}"> 86 87 </td> 88 </tr> 89 90 <tr class="prop"> 89 91 90 92 <tr class="prop"> -
trunk/grails-app/views/assetSubItemDetailed/show.gsp
r274 r276 49 49 50 50 <tr class="prop"> 51 <td valign="top" class="name">Asset:</td>52 53 <td valign="top" class="value"><g:link controller="assetDetailed" action="show" id="${assetSubItemInstance?.asset?.id}">${assetSubItemInstance?.asset?.encodeAsHTML()}</g:link></td>54 55 </tr>56 57 <tr class="prop">58 51 <td valign="top" class="name">Parent Item:</td> 59 52 … … 73 66 </td> 74 67 68 </tr> 69 70 <tr class="prop"> 71 <td valign="top" class="name">Assets:</td> 72 73 <td valign="top" style="text-align:left;" class="value"> 74 <ul> 75 <g:each var="a" in="${assetSubItemInstance.assets}"> 76 <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 77 </g:each> 78 </ul> 79 </td> 80 75 81 </tr> 76 82
Note: See TracChangeset
for help on using the changeset viewer.