Changeset 268 for trunk/grails-app/views/extendedAttributeType/edit.gsp
- Timestamp:
- Jan 14, 2010, 10:51:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/extendedAttributeType/edit.gsp
r178 r268 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Edit AssetExtendedAttributeType</title>7 <title>Edit ExtendedAttributeType</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list"> AssetExtendedAttributeType List</g:link></span>12 <span class="menuButton"><g:link class="create" action="create">New AssetExtendedAttributeType</g:link></span>11 <span class="menuButton"><g:link class="list" action="list">ExtendedAttributeType List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New ExtendedAttributeType</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Edit AssetExtendedAttributeType</h1>15 <h1>Edit ExtendedAttributeType</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> 18 18 </g:if> 19 <g:hasErrors bean="${ assetExtendedAttributeTypeInstance}">19 <g:hasErrors bean="${extendedAttributeTypeInstance}"> 20 20 <div class="errors"> 21 <g:renderErrors bean="${ assetExtendedAttributeTypeInstance}" as="list" />21 <g:renderErrors bean="${extendedAttributeTypeInstance}" as="list" /> 22 22 </div> 23 23 </g:hasErrors> 24 24 <g:form method="post" > 25 <input type="hidden" name="id" value="${ assetExtendedAttributeTypeInstance?.id}" />26 <input type="hidden" name="version" value="${ assetExtendedAttributeTypeInstance?.version}" />25 <input type="hidden" name="id" value="${extendedAttributeTypeInstance?.id}" /> 26 <input type="hidden" name="version" value="${extendedAttributeTypeInstance?.version}" /> 27 27 <div class="dialog"> 28 28 <table> … … 31 31 <tr class="prop"> 32 32 <td valign="top" class="name"> 33 <label for=" assetExtendedAttributes">Asset Extended Attributes:</label>33 <label for="name">Name:</label> 34 34 </td> 35 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'assetExtendedAttributes','errors')}"> 36 37 <ul> 38 <g:each var="a" in="${assetExtendedAttributeTypeInstance?.assetExtendedAttributes?}"> 39 <li><g:link controller="assetExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 40 </g:each> 41 </ul> 42 <g:link controller="assetExtendedAttribute" params="['assetExtendedAttributeType.id':assetExtendedAttributeTypeInstance?.id]" action="create">Add AssetExtendedAttribute</g:link> 43 35 <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'name','errors')}"> 36 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:extendedAttributeTypeInstance,field:'name')}"/> 44 37 </td> 45 38 </tr> … … 49 42 <label for="description">Description:</label> 50 43 </td> 51 <td valign="top" class="value ${hasErrors(bean: assetExtendedAttributeTypeInstance,field:'description','errors')}">52 <input type="text" id="description" name="description" value="${fieldValue(bean:assetExtendedAttributeTypeInstance,field:'description')}"/>44 <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'description','errors')}"> 45 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:extendedAttributeTypeInstance,field:'description')}"/> 53 46 </td> 54 47 </tr> … … 58 51 <label for="isActive">Is Active:</label> 59 52 </td> 60 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'isActive','errors')}"> 61 <g:checkBox name="isActive" value="${assetExtendedAttributeTypeInstance?.isActive}" ></g:checkBox> 62 </td> 63 </tr> 64 65 <tr class="prop"> 66 <td valign="top" class="name"> 67 <label for="name">Name:</label> 68 </td> 69 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'name','errors')}"> 70 <input type="text" id="name" name="name" value="${fieldValue(bean:assetExtendedAttributeTypeInstance,field:'name')}"/> 53 <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'isActive','errors')}"> 54 <g:checkBox name="isActive" value="${extendedAttributeTypeInstance?.isActive}" ></g:checkBox> 71 55 </td> 72 56 </tr>
Note: See TracChangeset
for help on using the changeset viewer.