Changeset 268 for trunk/grails-app/views/extendedAttributeType
- Timestamp:
- Jan 14, 2010, 10:51:03 PM (15 years ago)
- Location:
- trunk/grails-app/views/extendedAttributeType
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/extendedAttributeType/create.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>Create AssetExtendedAttributeType</title>7 <title>Create 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>11 <span class="menuButton"><g:link class="list" action="list">ExtendedAttributeType List</g:link></span> 12 12 </div> 13 13 <div class="body"> 14 <h1>Create AssetExtendedAttributeType</h1>14 <h1>Create ExtendedAttributeType</h1> 15 15 <g:if test="${flash.message}"> 16 16 <div class="message">${flash.message}</div> 17 17 </g:if> 18 <g:hasErrors bean="${ assetExtendedAttributeTypeInstance}">18 <g:hasErrors bean="${extendedAttributeTypeInstance}"> 19 19 <div class="errors"> 20 <g:renderErrors bean="${ assetExtendedAttributeTypeInstance}" as="list" />20 <g:renderErrors bean="${extendedAttributeTypeInstance}" as="list" /> 21 21 </div> 22 22 </g:hasErrors> … … 28 28 <tr class="prop"> 29 29 <td valign="top" class="name"> 30 <label for="name">Name:</label> 31 </td> 32 <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'name','errors')}"> 33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:extendedAttributeTypeInstance,field:'name')}"/> 34 </td> 35 </tr> 36 37 <tr class="prop"> 38 <td valign="top" class="name"> 30 39 <label for="description">Description:</label> 31 40 </td> 32 <td valign="top" class="value ${hasErrors(bean: assetExtendedAttributeTypeInstance,field:'description','errors')}">33 <input type="text" id="description" name="description" value="${fieldValue(bean:assetExtendedAttributeTypeInstance,field:'description')}"/>41 <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'description','errors')}"> 42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:extendedAttributeTypeInstance,field:'description')}"/> 34 43 </td> 35 44 </tr> … … 39 48 <label for="isActive">Is Active:</label> 40 49 </td> 41 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'isActive','errors')}"> 42 <g:checkBox name="isActive" value="${assetExtendedAttributeTypeInstance?.isActive}" ></g:checkBox> 43 </td> 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name"> 48 <label for="name">Name:</label> 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'name','errors')}"> 51 <input type="text" id="name" name="name" value="${fieldValue(bean:assetExtendedAttributeTypeInstance,field:'name')}"/> 50 <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'isActive','errors')}"> 51 <g:checkBox name="isActive" value="${extendedAttributeTypeInstance?.isActive}" ></g:checkBox> 52 52 </td> 53 53 </tr> -
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> -
trunk/grails-app/views/extendedAttributeType/list.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> AssetExtendedAttributeType List</title>7 <title>ExtendedAttributeType List</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="create" action="create">New AssetExtendedAttributeType</g:link></span>11 <span class="menuButton"><g:link class="create" action="create">New ExtendedAttributeType</g:link></span> 12 12 </div> 13 13 <div class="body"> 14 <h1> AssetExtendedAttributeType List</h1>14 <h1>ExtendedAttributeType List</h1> 15 15 <g:if test="${flash.message}"> 16 16 <div class="message">${flash.message}</div> … … 23 23 <g:sortableColumn property="id" title="Id" /> 24 24 25 <g:sortableColumn property="name" title="Name" /> 26 25 27 <g:sortableColumn property="description" title="Description" /> 26 28 27 29 <g:sortableColumn property="isActive" title="Is Active" /> 28 30 29 <g:sortableColumn property="name" title="Name" />30 31 31 </tr> 32 32 </thead> 33 33 <tbody> 34 <g:each in="${ assetExtendedAttributeTypeInstanceList}" status="i" var="assetExtendedAttributeTypeInstance">34 <g:each in="${extendedAttributeTypeInstanceList}" status="i" var="extendedAttributeTypeInstance"> 35 35 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 36 36 37 <td><g:link action="show" id="${ assetExtendedAttributeTypeInstance.id}">${fieldValue(bean:assetExtendedAttributeTypeInstance, field:'id')}</g:link></td>37 <td><g:link action="show" id="${extendedAttributeTypeInstance.id}">${fieldValue(bean:extendedAttributeTypeInstance, field:'id')}</g:link></td> 38 38 39 <td>${fieldValue(bean: assetExtendedAttributeTypeInstance, field:'description')}</td>39 <td>${fieldValue(bean:extendedAttributeTypeInstance, field:'name')}</td> 40 40 41 <td>${fieldValue(bean: assetExtendedAttributeTypeInstance, field:'isActive')}</td>41 <td>${fieldValue(bean:extendedAttributeTypeInstance, field:'description')}</td> 42 42 43 <td>${fieldValue(bean: assetExtendedAttributeTypeInstance, field:'name')}</td>43 <td>${fieldValue(bean:extendedAttributeTypeInstance, field:'isActive')}</td> 44 44 45 45 </tr> … … 49 49 </div> 50 50 <div class="paginateButtons"> 51 <g:paginate total="${ assetExtendedAttributeTypeInstanceTotal}" />51 <g:paginate total="${extendedAttributeTypeInstanceTotal}" /> 52 52 </div> 53 53 </div> -
trunk/grails-app/views/extendedAttributeType/show.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>Show AssetExtendedAttributeType</title>7 <title>Show 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>Show AssetExtendedAttributeType</h1>15 <h1>Show ExtendedAttributeType</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> … … 25 25 <td valign="top" class="name">Id:</td> 26 26 27 <td valign="top" class="value">${fieldValue(bean: assetExtendedAttributeTypeInstance, field:'id')}</td>27 <td valign="top" class="value">${fieldValue(bean:extendedAttributeTypeInstance, field:'id')}</td> 28 28 29 29 </tr> 30 30 31 31 <tr class="prop"> 32 <td valign="top" class="name"> Asset Extended Attributes:</td>32 <td valign="top" class="name">Name:</td> 33 33 34 <td valign="top" style="text-align:left;" class="value"> 35 <ul> 36 <g:each var="a" in="${assetExtendedAttributeTypeInstance.assetExtendedAttributes}"> 37 <li><g:link controller="assetExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 38 </g:each> 39 </ul> 40 </td> 34 <td valign="top" class="value">${fieldValue(bean:extendedAttributeTypeInstance, field:'name')}</td> 41 35 42 36 </tr> … … 45 39 <td valign="top" class="name">Description:</td> 46 40 47 <td valign="top" class="value">${fieldValue(bean: assetExtendedAttributeTypeInstance, field:'description')}</td>41 <td valign="top" class="value">${fieldValue(bean:extendedAttributeTypeInstance, field:'description')}</td> 48 42 49 43 </tr> … … 52 46 <td valign="top" class="name">Is Active:</td> 53 47 54 <td valign="top" class="value">${fieldValue(bean:assetExtendedAttributeTypeInstance, field:'isActive')}</td> 55 56 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name">Name:</td> 60 61 <td valign="top" class="value">${fieldValue(bean:assetExtendedAttributeTypeInstance, field:'name')}</td> 48 <td valign="top" class="value">${fieldValue(bean:extendedAttributeTypeInstance, field:'isActive')}</td> 62 49 63 50 </tr> … … 68 55 <div class="buttons"> 69 56 <g:form> 70 <input type="hidden" name="id" value="${ assetExtendedAttributeTypeInstance?.id}" />57 <input type="hidden" name="id" value="${extendedAttributeTypeInstance?.id}" /> 71 58 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 72 59 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
Note: See TracChangeset
for help on using the changeset viewer.