Changeset 663
- Timestamp:
- Sep 24, 2010, 9:13:24 PM (14 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AssetSubItemExtendedAttributeDetailedController.groovy
r403 r663 87 87 if(!assetSubItemExtendedAttributeInstance.hasErrors() && assetSubItemExtendedAttributeInstance.save(flush: true)) { 88 88 flash.message = "AssetSubItemExtendedAttribute ${assetSubItemExtendedAttributeInstance.id} created" 89 redirect( action:show,id:assetSubItemExtendedAttributeInstance.id)89 redirect(controller:'assetSubItemDetailed', action:'edit',id:assetSubItemExtendedAttributeInstance.assetSubItem.id) 90 90 } 91 91 else { -
trunk/grails-app/views/assetSubItemExtendedAttributeDetailed/create.gsp
r413 r663 22 22 <table> 23 23 <tbody> 24 25 <tr class="prop"> 26 <td valign="top" class="name"> 27 <label for="asset">Asset Sub Item:</label> 28 </td> 29 30 <td valign="top" class="value"> 31 <g:link controller="assetSubItemDetailed" action="show" id="${assetSubItemExtendedAttributeInstance?.assetSubItem?.id}"> 32 <g:hiddenField name="assetSubItem.id" value="${assetSubItemExtendedAttributeInstance?.assetSubItem.id}" /> 33 ${assetSubItemExtendedAttributeInstance?.assetSubItem?.encodeAsHTML()} 34 </g:link> 35 </td> 36 </tr> 24 37 25 38 <tr class="prop"> 26 39 <td valign="top" class="name"> 27 <label for="value">Value:</label> 40 <g:select optionKey="id" 41 from="${ExtendedAttributeType.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" 42 name="extendedAttributeType.id" 43 value="${assetSubItemExtendedAttributeInstance?.extendedAttributeType?.id}" > 44 </g:select> 45 28 46 </td> 29 47 <td valign="top" class="value ${hasErrors(bean:assetSubItemExtendedAttributeInstance,field:'value','errors')}"> 30 48 <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:assetSubItemExtendedAttributeInstance,field:'value')}"/> 31 </td>32 </tr>33 34 <tr class="prop">35 <td valign="top" class="name">36 <label for="isActive">Is Active:</label>37 </td>38 <td valign="top" class="value ${hasErrors(bean:assetSubItemExtendedAttributeInstance,field:'isActive','errors')}">39 <g:checkBox name="isActive" value="${assetSubItemExtendedAttributeInstance?.isActive}" ></g:checkBox>40 </td>41 </tr>42 43 <tr class="prop">44 <td valign="top" class="name">45 <label for="assetSubItem">Asset Sub Item:</label>46 </td>47 <td valign="top" class="value ${hasErrors(bean:assetSubItemExtendedAttributeInstance,field:'assetSubItem','errors')}">48 <g:select optionKey="id" from="${AssetSubItem.list()}" name="assetSubItem.id" value="${assetSubItemExtendedAttributeInstance?.assetSubItem?.id}" ></g:select>49 </td>50 </tr>51 52 <tr class="prop">53 <td valign="top" class="name">54 <label for="extendedAttributeType">Extended Attribute Type:</label>55 </td>56 <td valign="top" class="value ${hasErrors(bean:assetSubItemExtendedAttributeInstance,field:'extendedAttributeType','errors')}">57 <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${assetSubItemExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select>58 49 </td> 59 50 </tr>
Note: See TracChangeset
for help on using the changeset viewer.