Changeset 280 for trunk/grails-app/views
- Timestamp:
- Jan 21, 2010, 6:45:54 AM (15 years ago)
- Location:
- trunk/grails-app/views
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/asset/edit.gsp
r271 r280 86 86 </td> 87 87 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetSubItems','errors')}"> 88 89 <ul> 90 <g:each var="a" in="${assetInstance?.assetSubItems?}"> 91 <li><g:link controller="assetSubItem" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 92 </g:each> 93 </ul> 94 <g:link controller="assetSubItem" 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}" /> 95 92 96 93 </td> -
trunk/grails-app/views/assetSubItem/create.gsp
r268 r280 55 55 <tr class="prop"> 56 56 <td valign="top" class="name"> 57 <label for="asset">Asset:</label>58 </td>59 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'asset','errors')}">60 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetSubItemInstance?.asset?.id}" noSelection="['null':'']"></g:select>61 </td>62 </tr>63 64 <tr class="prop">65 <td valign="top" class="name">66 57 <label for="parentItem">Parent Item:</label> 67 58 </td> -
trunk/grails-app/views/assetSubItem/edit.gsp
r268 r280 58 58 <tr class="prop"> 59 59 <td valign="top" class="name"> 60 <label for="asset">Asset:</label>61 </td>62 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'asset','errors')}">63 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetSubItemInstance?.asset?.id}" noSelection="['null':'']"></g:select>64 </td>65 </tr>66 67 <tr class="prop">68 <td valign="top" class="name">69 60 <label for="parentItem">Parent Item:</label> 70 61 </td> … … 87 78 <g:link controller="assetSubItemExtendedAttribute" params="['assetSubItem.id':assetSubItemInstance?.id]" action="create">Add AssetSubItemExtendedAttribute</g:link> 88 79 80 </td> 81 </tr> 82 83 <tr class="prop"> 84 <td valign="top" class="name"> 85 <label for="assets">Assets:</label> 86 </td> 87 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'assets','errors')}"> 88 89 89 </td> 90 90 </tr> -
trunk/grails-app/views/assetSubItem/list.gsp
r268 r280 29 29 <g:sortableColumn property="isActive" title="Is Active" /> 30 30 31 <th>Asset</th>32 33 31 <th>Parent Item</th> 34 32 … … 47 45 <td>${fieldValue(bean:assetSubItemInstance, field:'isActive')}</td> 48 46 49 <td>${fieldValue(bean:assetSubItemInstance, field:'asset')}</td>50 51 47 <td>${fieldValue(bean:assetSubItemInstance, field:'parentItem')}</td> 52 48 -
trunk/grails-app/views/assetSubItem/show.gsp
r268 r280 51 51 52 52 <tr class="prop"> 53 <td valign="top" class="name">Asset:</td>54 55 <td valign="top" class="value"><g:link controller="asset" action="show" id="${assetSubItemInstance?.asset?.id}">${assetSubItemInstance?.asset?.encodeAsHTML()}</g:link></td>56 57 </tr>58 59 <tr class="prop">60 53 <td valign="top" class="name">Parent Item:</td> 61 54 … … 71 64 <g:each var="a" in="${assetSubItemInstance.assetSubItemExtendedAttributes}"> 72 65 <li><g:link controller="assetSubItemExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 66 </g:each> 67 </ul> 68 </td> 69 70 </tr> 71 72 <tr class="prop"> 73 <td valign="top" class="name">Assets:</td> 74 75 <td valign="top" style="text-align:left;" class="value"> 76 <ul> 77 <g:each var="a" in="${assetSubItemInstance.assets}"> 78 <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 73 79 </g:each> 74 80 </ul>
Note: See TracChangeset
for help on using the changeset viewer.