Changeset 268 for trunk/grails-app/views
- Timestamp:
- Jan 14, 2010, 10:51:03 PM (15 years ago)
- Location:
- trunk/grails-app/views
- Files:
-
- 20 added
- 36 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/asset/create.gsp
r178 r268 31 31 </td> 32 32 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}"> 33 <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 34 </td> 35 </tr> 36 37 <tr class="prop"> 38 <td valign="top" class="name"> 39 <label for="assetType">Asset Type:</label> 40 </td> 41 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetType','errors')}"> 42 <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${assetInstance?.assetType?.id}" ></g:select> 43 </td> 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name"> 48 <label for="costCode">Cost Code:</label> 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'costCode','errors')}"> 51 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetInstance,field:'costCode')}"/> 33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 52 34 </td> 53 35 </tr> … … 58 40 </td> 59 41 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}"> 60 <input type="text" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/>42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> 61 43 </td> 62 44 </tr> … … 73 55 <tr class="prop"> 74 56 <td valign="top" class="name"> 75 <label for="s ystemSection">SystemSection:</label>57 <label for="section">Section:</label> 76 58 </td> 77 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'s ystemSection','errors')}">78 <g:select optionKey="id" from="${S ystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select>59 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'section','errors')}"> 60 <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${assetInstance?.section?.id}" ></g:select> 79 61 </td> 80 62 </tr> -
trunk/grails-app/views/asset/edit.gsp
r178 r268 34 34 </td> 35 35 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}"> 36 <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 36 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 37 </td> 38 </tr> 39 40 <tr class="prop"> 41 <td valign="top" class="name"> 42 <label for="description">Description:</label> 43 </td> 44 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}"> 45 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> 46 </td> 47 </tr> 48 49 <tr class="prop"> 50 <td valign="top" class="name"> 51 <label for="isActive">Is Active:</label> 52 </td> 53 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'isActive','errors')}"> 54 <g:checkBox name="isActive" value="${assetInstance?.isActive}" ></g:checkBox> 55 </td> 56 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name"> 60 <label for="section">Section:</label> 61 </td> 62 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'section','errors')}"> 63 <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${assetInstance?.section?.id}" ></g:select> 37 64 </td> 38 65 </tr> … … 56 83 <tr class="prop"> 57 84 <td valign="top" class="name"> 58 <label for="asset Type">Asset Type:</label>85 <label for="assetSubItem">Asset Sub Item:</label> 59 86 </td> 60 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetType','errors')}"> 61 <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${assetInstance?.assetType?.id}" ></g:select> 62 </td> 63 </tr> 64 65 <tr class="prop"> 66 <td valign="top" class="name"> 67 <label for="costCode">Cost Code:</label> 68 </td> 69 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'costCode','errors')}"> 70 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetInstance,field:'costCode')}"/> 71 </td> 72 </tr> 73 74 <tr class="prop"> 75 <td valign="top" class="name"> 76 <label for="description">Description:</label> 77 </td> 78 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}"> 79 <input type="text" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> 80 </td> 81 </tr> 82 83 <tr class="prop"> 84 <td valign="top" class="name"> 85 <label for="isActive">Is Active:</label> 86 </td> 87 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'isActive','errors')}"> 88 <g:checkBox name="isActive" value="${assetInstance?.isActive}" ></g:checkBox> 87 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetSubItem','errors')}"> 88 89 <ul> 90 <g:each var="a" in="${assetInstance?.assetSubItem?}"> 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> 95 89 96 </td> 90 97 </tr> … … 106 113 </tr> 107 114 108 <tr class="prop">109 <td valign="top" class="name">110 <label for="systemSection">System Section:</label>111 </td>112 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}">113 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select>114 </td>115 </tr>116 117 115 </tbody> 118 116 </table> -
trunk/grails-app/views/asset/list.gsp
r178 r268 25 25 <g:sortableColumn property="name" title="Name" /> 26 26 27 <th>Asset Type</th>28 29 <g:sortableColumn property="costCode" title="Cost Code" />30 31 27 <g:sortableColumn property="description" title="Description" /> 32 28 33 29 <g:sortableColumn property="isActive" title="Is Active" /> 34 30 31 <th>Section</th> 32 35 33 </tr> 36 34 </thead> … … 43 41 <td>${fieldValue(bean:assetInstance, field:'name')}</td> 44 42 45 <td>${fieldValue(bean:assetInstance, field:'assetType')}</td>46 47 <td>${fieldValue(bean:assetInstance, field:'costCode')}</td>48 49 43 <td>${fieldValue(bean:assetInstance, field:'description')}</td> 50 44 51 45 <td>${fieldValue(bean:assetInstance, field:'isActive')}</td> 46 47 <td>${fieldValue(bean:assetInstance, field:'section')}</td> 52 48 53 49 </tr> -
trunk/grails-app/views/asset/show.gsp
r178 r268 37 37 38 38 <tr class="prop"> 39 <td valign="top" class="name">Description:</td> 40 41 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td> 42 43 </tr> 44 45 <tr class="prop"> 46 <td valign="top" class="name">Is Active:</td> 47 48 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'isActive')}</td> 49 50 </tr> 51 52 <tr class="prop"> 53 <td valign="top" class="name">Section:</td> 54 55 <td valign="top" class="value"><g:link controller="section" action="show" id="${assetInstance?.section?.id}">${assetInstance?.section?.encodeAsHTML()}</g:link></td> 56 57 </tr> 58 59 <tr class="prop"> 39 60 <td valign="top" class="name">Asset Extended Attributes:</td> 40 61 … … 50 71 51 72 <tr class="prop"> 52 <td valign="top" class="name">Asset Type:</td>73 <td valign="top" class="name">Asset Sub Item:</td> 53 74 54 <td valign="top" class="value"><g:link controller="assetType" action="show" id="${assetInstance?.assetType?.id}">${assetInstance?.assetType?.encodeAsHTML()}</g:link></td> 55 56 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name">Cost Code:</td> 60 61 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'costCode')}</td> 62 63 </tr> 64 65 <tr class="prop"> 66 <td valign="top" class="name">Description:</td> 67 68 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td> 69 70 </tr> 71 72 <tr class="prop"> 73 <td valign="top" class="name">Is Active:</td> 74 75 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'isActive')}</td> 75 <td valign="top" style="text-align:left;" class="value"> 76 <ul> 77 <g:each var="a" in="${assetInstance.assetSubItem}"> 78 <li><g:link controller="assetSubItem" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 79 </g:each> 80 </ul> 81 </td> 76 82 77 83 </tr> … … 90 96 </tr> 91 97 92 <tr class="prop">93 <td valign="top" class="name">System Section:</td>94 95 <td valign="top" class="value"><g:link controller="systemSection" action="show" id="${assetInstance?.systemSection?.id}">${assetInstance?.systemSection?.encodeAsHTML()}</g:link></td>96 97 </tr>98 99 98 </tbody> 100 99 </table> -
trunk/grails-app/views/assetExtendedAttribute/create.gsp
r178 r268 28 28 <tr class="prop"> 29 29 <td valign="top" class="name"> 30 <label for=" asset">Asset:</label>30 <label for="value">Value:</label> 31 31 </td> 32 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}"> 33 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select> 34 </td> 35 </tr> 36 37 <tr class="prop"> 38 <td valign="top" class="name"> 39 <label for="assetExtendedAttributeType">Asset Extended Attribute Type:</label> 40 </td> 41 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'assetExtendedAttributeType','errors')}"> 42 <g:select optionKey="id" from="${AssetExtendedAttributeType.list()}" name="assetExtendedAttributeType.id" value="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}" ></g:select> 32 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'value','errors')}"> 33 <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:assetExtendedAttributeInstance,field:'value')}"/> 43 34 </td> 44 35 </tr> … … 55 46 <tr class="prop"> 56 47 <td valign="top" class="name"> 57 <label for=" value">Value:</label>48 <label for="asset">Asset:</label> 58 49 </td> 59 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'value','errors')}"> 60 <input type="text" id="value" name="value" value="${fieldValue(bean:assetExtendedAttributeInstance,field:'value')}"/> 50 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}"> 51 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select> 52 </td> 53 </tr> 54 55 <tr class="prop"> 56 <td valign="top" class="name"> 57 <label for="extendedAttributeType">Extended Attribute Type:</label> 58 </td> 59 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'extendedAttributeType','errors')}"> 60 <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${assetExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select> 61 61 </td> 62 62 </tr> -
trunk/grails-app/views/assetExtendedAttribute/edit.gsp
r178 r268 31 31 <tr class="prop"> 32 32 <td valign="top" class="name"> 33 <label for=" asset">Asset:</label>33 <label for="value">Value:</label> 34 34 </td> 35 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}"> 36 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select> 37 </td> 38 </tr> 39 40 <tr class="prop"> 41 <td valign="top" class="name"> 42 <label for="assetExtendedAttributeType">Asset Extended Attribute Type:</label> 43 </td> 44 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'assetExtendedAttributeType','errors')}"> 45 <g:select optionKey="id" from="${AssetExtendedAttributeType.list()}" name="assetExtendedAttributeType.id" value="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}" ></g:select> 35 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'value','errors')}"> 36 <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:assetExtendedAttributeInstance,field:'value')}"/> 46 37 </td> 47 38 </tr> … … 58 49 <tr class="prop"> 59 50 <td valign="top" class="name"> 60 <label for=" value">Value:</label>51 <label for="asset">Asset:</label> 61 52 </td> 62 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'value','errors')}"> 63 <input type="text" id="value" name="value" value="${fieldValue(bean:assetExtendedAttributeInstance,field:'value')}"/> 53 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}"> 54 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select> 55 </td> 56 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name"> 60 <label for="extendedAttributeType">Extended Attribute Type:</label> 61 </td> 62 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'extendedAttributeType','errors')}"> 63 <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${assetExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select> 64 64 </td> 65 65 </tr> -
trunk/grails-app/views/assetExtendedAttribute/list.gsp
r178 r268 23 23 <g:sortableColumn property="id" title="Id" /> 24 24 25 <g:sortableColumn property="value" title="Value" /> 26 27 <g:sortableColumn property="isActive" title="Is Active" /> 28 25 29 <th>Asset</th> 26 30 27 <th> AssetExtended Attribute Type</th>31 <th>Extended Attribute Type</th> 28 32 29 <g:sortableColumn property="isActive" title="Is Active" />30 31 <g:sortableColumn property="value" title="Value" />32 33 33 </tr> 34 34 </thead> … … 39 39 <td><g:link action="show" id="${assetExtendedAttributeInstance.id}">${fieldValue(bean:assetExtendedAttributeInstance, field:'id')}</g:link></td> 40 40 41 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'asset')}</td> 42 43 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'assetExtendedAttributeType')}</td> 41 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'value')}</td> 44 42 45 43 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'isActive')}</td> 46 44 47 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'value')}</td> 45 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'asset')}</td> 46 47 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'extendedAttributeType')}</td> 48 48 49 49 </tr> -
trunk/grails-app/views/assetExtendedAttribute/show.gsp
r178 r268 30 30 31 31 <tr class="prop"> 32 <td valign="top" class="name"> Asset:</td>32 <td valign="top" class="name">Value:</td> 33 33 34 <td valign="top" class="value"><g:link controller="asset" action="show" id="${assetExtendedAttributeInstance?.asset?.id}">${assetExtendedAttributeInstance?.asset?.encodeAsHTML()}</g:link></td> 35 36 </tr> 37 38 <tr class="prop"> 39 <td valign="top" class="name">Asset Extended Attribute Type:</td> 40 41 <td valign="top" class="value"><g:link controller="assetExtendedAttributeType" action="show" id="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}">${assetExtendedAttributeInstance?.assetExtendedAttributeType?.encodeAsHTML()}</g:link></td> 34 <td valign="top" class="value">${fieldValue(bean:assetExtendedAttributeInstance, field:'value')}</td> 42 35 43 36 </tr> … … 51 44 52 45 <tr class="prop"> 53 <td valign="top" class="name"> Value:</td>46 <td valign="top" class="name">Asset:</td> 54 47 55 <td valign="top" class="value">${fieldValue(bean:assetExtendedAttributeInstance, field:'value')}</td> 48 <td valign="top" class="value"><g:link controller="asset" action="show" id="${assetExtendedAttributeInstance?.asset?.id}">${assetExtendedAttributeInstance?.asset?.encodeAsHTML()}</g:link></td> 49 50 </tr> 51 52 <tr class="prop"> 53 <td valign="top" class="name">Extended Attribute Type:</td> 54 55 <td valign="top" class="value"><g:link controller="extendedAttributeType" action="show" id="${assetExtendedAttributeInstance?.extendedAttributeType?.id}">${assetExtendedAttributeInstance?.extendedAttributeType?.encodeAsHTML()}</g:link></td> 56 56 57 57 </tr> -
trunk/grails-app/views/assetSubItem/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 Asset Type</title>7 <title>Create AssetSubItem</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">Asset TypeList</g:link></span>11 <span class="menuButton"><g:link class="list" action="list">AssetSubItem List</g:link></span> 12 12 </div> 13 13 <div class="body"> 14 <h1>Create Asset Type</h1>14 <h1>Create AssetSubItem</h1> 15 15 <g:if test="${flash.message}"> 16 16 <div class="message">${flash.message}</div> 17 17 </g:if> 18 <g:hasErrors bean="${asset TypeInstance}">18 <g:hasErrors bean="${assetSubItemInstance}"> 19 19 <div class="errors"> 20 <g:renderErrors bean="${asset TypeInstance}" as="list" />20 <g:renderErrors bean="${assetSubItemInstance}" as="list" /> 21 21 </div> 22 22 </g:hasErrors> … … 28 28 <tr class="prop"> 29 29 <td valign="top" class="name"> 30 <label for=" costCode">Cost Code:</label>30 <label for="name">Name:</label> 31 31 </td> 32 <td valign="top" class="value ${hasErrors(bean:asset TypeInstance,field:'costCode','errors')}">33 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetTypeInstance,field:'costCode')}"/>32 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'name','errors')}"> 33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetSubItemInstance,field:'name')}"/> 34 34 </td> 35 35 </tr> … … 39 39 <label for="description">Description:</label> 40 40 </td> 41 <td valign="top" class="value ${hasErrors(bean:asset TypeInstance,field:'description','errors')}">42 <input type="text" id="description" name="description" value="${fieldValue(bean:assetTypeInstance,field:'description')}"/>41 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'description','errors')}"> 42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetSubItemInstance,field:'description')}"/> 43 43 </td> 44 44 </tr> … … 48 48 <label for="isActive">Is Active:</label> 49 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:asset TypeInstance,field:'isActive','errors')}">51 <g:checkBox name="isActive" value="${asset TypeInstance?.isActive}" ></g:checkBox>50 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'isActive','errors')}"> 51 <g:checkBox name="isActive" value="${assetSubItemInstance?.isActive}" ></g:checkBox> 52 52 </td> 53 53 </tr> … … 55 55 <tr class="prop"> 56 56 <td valign="top" class="name"> 57 <label for=" name">Name:</label>57 <label for="asset">Asset:</label> 58 58 </td> 59 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'name','errors')}"> 60 <input type="text" id="name" name="name" value="${fieldValue(bean:assetTypeInstance,field:'name')}"/> 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 <label for="parentItem">Parent Item:</label> 67 </td> 68 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'parentItem','errors')}"> 69 <g:select optionKey="id" from="${AssetSubItem.list()}" name="parentItem.id" value="${assetSubItemInstance?.parentItem?.id}" noSelection="['null':'']"></g:select> 61 70 </td> 62 71 </tr> -
trunk/grails-app/views/assetSubItem/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 Asset Type</title>7 <title>Edit AssetSubItem</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">Asset TypeList</g:link></span>12 <span class="menuButton"><g:link class="create" action="create">New Asset Type</g:link></span>11 <span class="menuButton"><g:link class="list" action="list">AssetSubItem List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New AssetSubItem</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Edit Asset Type</h1>15 <h1>Edit AssetSubItem</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> 18 18 </g:if> 19 <g:hasErrors bean="${asset TypeInstance}">19 <g:hasErrors bean="${assetSubItemInstance}"> 20 20 <div class="errors"> 21 <g:renderErrors bean="${asset TypeInstance}" as="list" />21 <g:renderErrors bean="${assetSubItemInstance}" as="list" /> 22 22 </div> 23 23 </g:hasErrors> 24 24 <g:form method="post" > 25 <input type="hidden" name="id" value="${asset TypeInstance?.id}" />26 <input type="hidden" name="version" value="${asset TypeInstance?.version}" />25 <input type="hidden" name="id" value="${assetSubItemInstance?.id}" /> 26 <input type="hidden" name="version" value="${assetSubItemInstance?.version}" /> 27 27 <div class="dialog"> 28 28 <table> … … 31 31 <tr class="prop"> 32 32 <td valign="top" class="name"> 33 <label for=" assemblies">Assemblies:</label>33 <label for="name">Name:</label> 34 34 </td> 35 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'assemblies','errors')}"> 36 37 <ul> 38 <g:each var="a" in="${assetTypeInstance?.assemblies?}"> 39 <li><g:link controller="assembly" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 40 </g:each> 41 </ul> 42 <g:link controller="assembly" params="['assetType.id':assetTypeInstance?.id]" action="create">Add Assembly</g:link> 43 44 </td> 45 </tr> 46 47 <tr class="prop"> 48 <td valign="top" class="name"> 49 <label for="assets">Assets:</label> 50 </td> 51 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'assets','errors')}"> 52 53 <ul> 54 <g:each var="a" in="${assetTypeInstance?.assets?}"> 55 <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 56 </g:each> 57 </ul> 58 <g:link controller="asset" params="['assetType.id':assetTypeInstance?.id]" action="create">Add Asset</g:link> 59 60 </td> 61 </tr> 62 63 <tr class="prop"> 64 <td valign="top" class="name"> 65 <label for="costCode">Cost Code:</label> 66 </td> 67 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'costCode','errors')}"> 68 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetTypeInstance,field:'costCode')}"/> 35 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'name','errors')}"> 36 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetSubItemInstance,field:'name')}"/> 69 37 </td> 70 38 </tr> … … 74 42 <label for="description">Description:</label> 75 43 </td> 76 <td valign="top" class="value ${hasErrors(bean:asset TypeInstance,field:'description','errors')}">77 <input type="text" id="description" name="description" value="${fieldValue(bean:assetTypeInstance,field:'description')}"/>44 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'description','errors')}"> 45 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetSubItemInstance,field:'description')}"/> 78 46 </td> 79 47 </tr> … … 83 51 <label for="isActive">Is Active:</label> 84 52 </td> 85 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'isActive','errors')}"> 86 <g:checkBox name="isActive" value="${assetTypeInstance?.isActive}" ></g:checkBox> 53 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'isActive','errors')}"> 54 <g:checkBox name="isActive" value="${assetSubItemInstance?.isActive}" ></g:checkBox> 55 </td> 56 </tr> 57 58 <tr class="prop"> 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 <label for="parentItem">Parent Item:</label> 70 </td> 71 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'parentItem','errors')}"> 72 <g:select optionKey="id" from="${AssetSubItem.list()}" name="parentItem.id" value="${assetSubItemInstance?.parentItem?.id}" noSelection="['null':'']"></g:select> 73 </td> 74 </tr> 75 76 <tr class="prop"> 77 <td valign="top" class="name"> 78 <label for="assetSubItemExtendedAttributes">Asset Sub Item Extended Attributes:</label> 79 </td> 80 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'assetSubItemExtendedAttributes','errors')}"> 81 82 <ul> 83 <g:each var="a" in="${assetSubItemInstance?.assetSubItemExtendedAttributes?}"> 84 <li><g:link controller="assetSubItemExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 85 </g:each> 86 </ul> 87 <g:link controller="assetSubItemExtendedAttribute" params="['assetSubItem.id':assetSubItemInstance?.id]" action="create">Add AssetSubItemExtendedAttribute</g:link> 88 87 89 </td> 88 90 </tr> … … 92 94 <label for="maintenanceActions">Maintenance Actions:</label> 93 95 </td> 94 <td valign="top" class="value ${hasErrors(bean:asset TypeInstance,field:'maintenanceActions','errors')}">96 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'maintenanceActions','errors')}"> 95 97 96 98 <ul> 97 <g:each var="m" in="${asset TypeInstance?.maintenanceActions?}">99 <g:each var="m" in="${assetSubItemInstance?.maintenanceActions?}"> 98 100 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 99 101 </g:each> 100 102 </ul> 101 <g:link controller="maintenanceAction" params="['asset Type.id':assetTypeInstance?.id]" action="create">Add MaintenanceAction</g:link>103 <g:link controller="maintenanceAction" params="['assetSubItem.id':assetSubItemInstance?.id]" action="create">Add MaintenanceAction</g:link> 102 104 103 105 </td> … … 106 108 <tr class="prop"> 107 109 <td valign="top" class="name"> 108 <label for=" name">Name:</label>110 <label for="subItems">Sub Items:</label> 109 111 </td> 110 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'name','errors')}"> 111 <input type="text" id="name" name="name" value="${fieldValue(bean:assetTypeInstance,field:'name')}"/> 112 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'subItems','errors')}"> 113 114 <ul> 115 <g:each var="s" in="${assetSubItemInstance?.subItems?}"> 116 <li><g:link controller="assetSubItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 117 </g:each> 118 </ul> 119 <g:link controller="assetSubItem" params="['assetSubItem.id':assetSubItemInstance?.id]" action="create">Add AssetSubItem</g:link> 120 112 121 </td> 113 122 </tr> -
trunk/grails-app/views/assetSubItem/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>Asset TypeList</title>7 <title>AssetSubItem List</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="create" action="create">New Asset Type</g:link></span>11 <span class="menuButton"><g:link class="create" action="create">New AssetSubItem</g:link></span> 12 12 </div> 13 13 <div class="body"> 14 <h1>Asset TypeList</h1>14 <h1>AssetSubItem 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=" costCode" title="Cost Code" />25 <g:sortableColumn property="name" title="Name" /> 26 26 27 27 <g:sortableColumn property="description" title="Description" /> … … 29 29 <g:sortableColumn property="isActive" title="Is Active" /> 30 30 31 <g:sortableColumn property="name" title="Name" /> 32 31 <th>Asset</th> 32 33 <th>Parent Item</th> 34 33 35 </tr> 34 36 </thead> 35 37 <tbody> 36 <g:each in="${asset TypeInstanceList}" status="i" var="assetTypeInstance">38 <g:each in="${assetSubItemInstanceList}" status="i" var="assetSubItemInstance"> 37 39 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 38 40 39 <td><g:link action="show" id="${asset TypeInstance.id}">${fieldValue(bean:assetTypeInstance, field:'id')}</g:link></td>41 <td><g:link action="show" id="${assetSubItemInstance.id}">${fieldValue(bean:assetSubItemInstance, field:'id')}</g:link></td> 40 42 41 <td>${fieldValue(bean:asset TypeInstance, field:'costCode')}</td>43 <td>${fieldValue(bean:assetSubItemInstance, field:'name')}</td> 42 44 43 <td>${fieldValue(bean:asset TypeInstance, field:'description')}</td>45 <td>${fieldValue(bean:assetSubItemInstance, field:'description')}</td> 44 46 45 <td>${fieldValue(bean:asset TypeInstance, field:'isActive')}</td>47 <td>${fieldValue(bean:assetSubItemInstance, field:'isActive')}</td> 46 48 47 <td>${fieldValue(bean:assetTypeInstance, field:'name')}</td> 49 <td>${fieldValue(bean:assetSubItemInstance, field:'asset')}</td> 50 51 <td>${fieldValue(bean:assetSubItemInstance, field:'parentItem')}</td> 48 52 49 53 </tr> … … 53 57 </div> 54 58 <div class="paginateButtons"> 55 <g:paginate total="${asset TypeInstanceTotal}" />59 <g:paginate total="${assetSubItemInstanceTotal}" /> 56 60 </div> 57 61 </div> -
trunk/grails-app/views/assetSubItem/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 Asset Type</title>7 <title>Show AssetSubItem</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">Asset TypeList</g:link></span>12 <span class="menuButton"><g:link class="create" action="create">New Asset Type</g:link></span>11 <span class="menuButton"><g:link class="list" action="list">AssetSubItem List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New AssetSubItem</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Show Asset Type</h1>15 <h1>Show AssetSubItem</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:asset TypeInstance, field:'id')}</td>27 <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'id')}</td> 28 28 29 29 </tr> 30 30 31 31 <tr class="prop"> 32 <td valign="top" class="name"> Assemblies:</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="${assetTypeInstance.assemblies}"> 37 <li><g:link controller="assembly" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 38 </g:each> 39 </ul> 40 </td> 41 42 </tr> 43 44 <tr class="prop"> 45 <td valign="top" class="name">Assets:</td> 46 47 <td valign="top" style="text-align:left;" class="value"> 48 <ul> 49 <g:each var="a" in="${assetTypeInstance.assets}"> 50 <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 51 </g:each> 52 </ul> 53 </td> 54 55 </tr> 56 57 <tr class="prop"> 58 <td valign="top" class="name">Cost Code:</td> 59 60 <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'costCode')}</td> 34 <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'name')}</td> 61 35 62 36 </tr> … … 65 39 <td valign="top" class="name">Description:</td> 66 40 67 <td valign="top" class="value">${fieldValue(bean:asset TypeInstance, field:'description')}</td>41 <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'description')}</td> 68 42 69 43 </tr> … … 72 46 <td valign="top" class="name">Is Active:</td> 73 47 74 <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'isActive')}</td> 48 <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'isActive')}</td> 49 50 </tr> 51 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 <td valign="top" class="name">Parent Item:</td> 61 62 <td valign="top" class="value"><g:link controller="assetSubItem" action="show" id="${assetSubItemInstance?.parentItem?.id}">${assetSubItemInstance?.parentItem?.encodeAsHTML()}</g:link></td> 63 64 </tr> 65 66 <tr class="prop"> 67 <td valign="top" class="name">Asset Sub Item Extended Attributes:</td> 68 69 <td valign="top" style="text-align:left;" class="value"> 70 <ul> 71 <g:each var="a" in="${assetSubItemInstance.assetSubItemExtendedAttributes}"> 72 <li><g:link controller="assetSubItemExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 73 </g:each> 74 </ul> 75 </td> 75 76 76 77 </tr> … … 81 82 <td valign="top" style="text-align:left;" class="value"> 82 83 <ul> 83 <g:each var="m" in="${asset TypeInstance.maintenanceActions}">84 <g:each var="m" in="${assetSubItemInstance.maintenanceActions}"> 84 85 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 85 86 </g:each> … … 90 91 91 92 <tr class="prop"> 92 <td valign="top" class="name"> Name:</td>93 <td valign="top" class="name">Sub Items:</td> 93 94 94 <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'name')}</td> 95 <td valign="top" style="text-align:left;" class="value"> 96 <ul> 97 <g:each var="s" in="${assetSubItemInstance.subItems}"> 98 <li><g:link controller="assetSubItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 99 </g:each> 100 </ul> 101 </td> 95 102 96 103 </tr> … … 101 108 <div class="buttons"> 102 109 <g:form> 103 <input type="hidden" name="id" value="${asset TypeInstance?.id}" />110 <input type="hidden" name="id" value="${assetSubItemInstance?.id}" /> 104 111 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 105 112 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> -
trunk/grails-app/views/department/create.gsp
r178 r268 31 31 </td> 32 32 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'name','errors')}"> 33 <input type="text" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/>33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/> 34 34 </td> 35 35 </tr> … … 40 40 </td> 41 41 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'description','errors')}"> 42 <input type="text" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/> 43 </td> 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name"> 48 <label for="costCode">Cost Code:</label> 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'costCode','errors')}"> 51 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:departmentInstance,field:'costCode')}"/> 42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/> 52 43 </td> 53 44 </tr> -
trunk/grails-app/views/department/edit.gsp
r178 r268 34 34 </td> 35 35 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'name','errors')}"> 36 <input type="text" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/>36 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/> 37 37 </td> 38 38 </tr> … … 43 43 </td> 44 44 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'description','errors')}"> 45 <input type="text" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/> 46 </td> 47 </tr> 48 49 <tr class="prop"> 50 <td valign="top" class="name"> 51 <label for="costCode">Cost Code:</label> 52 </td> 53 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'costCode','errors')}"> 54 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:departmentInstance,field:'costCode')}"/> 45 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/> 55 46 </td> 56 47 </tr> … … 67 58 <tr class="prop"> 68 59 <td valign="top" class="name"> 69 <label for=" persons">Persons:</label>60 <label for="departmentExtendedAttributes">Department Extended Attributes:</label> 70 61 </td> 71 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:' persons','errors')}">62 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'departmentExtendedAttributes','errors')}"> 72 63 73 64 <ul> 74 <g:each var=" p" in="${departmentInstance?.persons?}">75 <li><g:link controller=" person" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>65 <g:each var="d" in="${departmentInstance?.departmentExtendedAttributes?}"> 66 <li><g:link controller="departmentExtendedAttribute" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li> 76 67 </g:each> 77 68 </ul> 78 <g:link controller=" person" params="['department.id':departmentInstance?.id]" action="create">Add Person</g:link>69 <g:link controller="departmentExtendedAttribute" params="['department.id':departmentInstance?.id]" action="create">Add DepartmentExtendedAttribute</g:link> 79 70 80 71 </td> … … 83 74 <tr class="prop"> 84 75 <td valign="top" class="name"> 85 <label for="s ystemSections">SystemSections:</label>76 <label for="sections">Sections:</label> 86 77 </td> 87 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'s ystemSections','errors')}">78 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'sections','errors')}"> 88 79 89 80 <ul> 90 <g:each var="s" in="${departmentInstance?.s ystemSections?}">91 <li><g:link controller="s ystemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>81 <g:each var="s" in="${departmentInstance?.sections?}"> 82 <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 92 83 </g:each> 93 84 </ul> 94 <g:link controller="s ystemSection" params="['department.id':departmentInstance?.id]" action="create">Add SystemSection</g:link>85 <g:link controller="section" params="['department.id':departmentInstance?.id]" action="create">Add Section</g:link> 95 86 96 87 </td> -
trunk/grails-app/views/department/list.gsp
r178 r268 27 27 <g:sortableColumn property="description" title="Description" /> 28 28 29 <g:sortableColumn property="costCode" title="Cost Code" />30 31 29 <g:sortableColumn property="isActive" title="Is Active" /> 32 30 … … 43 41 <td>${fieldValue(bean:departmentInstance, field:'description')}</td> 44 42 45 <td>${fieldValue(bean:departmentInstance, field:'costCode')}</td>46 47 43 <td>${fieldValue(bean:departmentInstance, field:'isActive')}</td> 48 44 -
trunk/grails-app/views/department/show.gsp
r178 r268 44 44 45 45 <tr class="prop"> 46 <td valign="top" class="name">Cost Code:</td>47 48 <td valign="top" class="value">${fieldValue(bean:departmentInstance, field:'costCode')}</td>49 50 </tr>51 52 <tr class="prop">53 46 <td valign="top" class="name">Is Active:</td> 54 47 … … 58 51 59 52 <tr class="prop"> 60 <td valign="top" class="name"> Persons:</td>53 <td valign="top" class="name">Department Extended Attributes:</td> 61 54 62 55 <td valign="top" style="text-align:left;" class="value"> 63 56 <ul> 64 <g:each var=" p" in="${departmentInstance.persons}">65 <li><g:link controller=" person" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>57 <g:each var="d" in="${departmentInstance.departmentExtendedAttributes}"> 58 <li><g:link controller="departmentExtendedAttribute" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li> 66 59 </g:each> 67 60 </ul> … … 71 64 72 65 <tr class="prop"> 73 <td valign="top" class="name">S ystem Sections:</td>66 <td valign="top" class="name">Sections:</td> 74 67 75 68 <td valign="top" style="text-align:left;" class="value"> 76 69 <ul> 77 <g:each var="s" in="${departmentInstance.s ystemSections}">78 <li><g:link controller="s ystemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>70 <g:each var="s" in="${departmentInstance.sections}"> 71 <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 79 72 </g:each> 80 73 </ul> -
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> -
trunk/grails-app/views/maintenanceAction/create.gsp
r178 r268 28 28 <tr class="prop"> 29 29 <td valign="top" class="name"> 30 <label for=" maintenancePolicy">Maintenance Policy:</label>30 <label for="section">Section:</label> 31 31 </td> 32 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenancePolicy','errors')}"> 33 <g:select optionKey="id" from="${MaintenancePolicy.list()}" name="maintenancePolicy.id" value="${maintenanceActionInstance?.maintenancePolicy?.id}" noSelection="['null':'']"></g:select> 34 </td> 35 </tr> 36 37 <tr class="prop"> 38 <td valign="top" class="name"> 39 <label for="systemSection">System Section:</label> 40 </td> 41 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'systemSection','errors')}"> 42 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${maintenanceActionInstance?.systemSection?.id}" noSelection="['null':'']"></g:select> 32 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'section','errors')}"> 33 <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${maintenanceActionInstance?.section?.id}" noSelection="['null':'']"></g:select> 43 34 </td> 44 35 </tr> … … 55 46 <tr class="prop"> 56 47 <td valign="top" class="name"> 57 <label for="asset Type">Asset Type:</label>48 <label for="assetSubItem">Asset Sub Item:</label> 58 49 </td> 59 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'asset Type','errors')}">60 <g:select optionKey="id" from="${Asset Type.list()}" name="assetType.id" value="${maintenanceActionInstance?.assetType?.id}" noSelection="['null':'']"></g:select>50 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assetSubItem','errors')}"> 51 <g:select optionKey="id" from="${AssetSubItem.list()}" name="assetSubItem.id" value="${maintenanceActionInstance?.assetSubItem?.id}" noSelection="['null':'']"></g:select> 61 52 </td> 62 53 </tr> … … 64 55 <tr class="prop"> 65 56 <td valign="top" class="name"> 66 <label for=" assembly">Assembly:</label>57 <label for="maintenancePolicy">Maintenance Policy:</label> 67 58 </td> 68 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assembly','errors')}"> 69 <g:select optionKey="id" from="${Assembly.list()}" name="assembly.id" value="${maintenanceActionInstance?.assembly?.id}" noSelection="['null':'']"></g:select> 70 </td> 71 </tr> 72 73 <tr class="prop"> 74 <td valign="top" class="name"> 75 <label for="subAssembly">Sub Assembly:</label> 76 </td> 77 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'subAssembly','errors')}"> 78 <g:select optionKey="id" from="${SubAssembly.list()}" name="subAssembly.id" value="${maintenanceActionInstance?.subAssembly?.id}" noSelection="['null':'']"></g:select> 79 </td> 80 </tr> 81 82 <tr class="prop"> 83 <td valign="top" class="name"> 84 <label for="componentItem">Component Item:</label> 85 </td> 86 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'componentItem','errors')}"> 87 <g:select optionKey="id" from="${ComponentItem.list()}" name="componentItem.id" value="${maintenanceActionInstance?.componentItem?.id}" noSelection="['null':'']"></g:select> 59 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenancePolicy','errors')}"> 60 <g:select optionKey="id" from="${MaintenancePolicy.list()}" name="maintenancePolicy.id" value="${maintenanceActionInstance?.maintenancePolicy?.id}" noSelection="['null':'']"></g:select> 88 61 </td> 89 62 </tr> … … 109 82 <tr class="prop"> 110 83 <td valign="top" class="name"> 111 <label for=" isActive">Is Active:</label>84 <label for="reasoning">Reasoning:</label> 112 85 </td> 113 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:' isActive','errors')}">114 < g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox>86 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'reasoning','errors')}"> 87 <input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/> 115 88 </td> 116 89 </tr> … … 118 91 <tr class="prop"> 119 92 <td valign="top" class="name"> 120 <label for=" reasoning">Reasoning:</label>93 <label for="isActive">Is Active:</label> 121 94 </td> 122 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:' reasoning','errors')}">123 < input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/>95 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'isActive','errors')}"> 96 <g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox> 124 97 </td> 125 98 </tr> -
trunk/grails-app/views/maintenanceAction/edit.gsp
r178 r268 31 31 <tr class="prop"> 32 32 <td valign="top" class="name"> 33 <label for=" maintenancePolicy">Maintenance Policy:</label>33 <label for="section">Section:</label> 34 34 </td> 35 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenancePolicy','errors')}"> 36 <g:select optionKey="id" from="${MaintenancePolicy.list()}" name="maintenancePolicy.id" value="${maintenanceActionInstance?.maintenancePolicy?.id}" noSelection="['null':'']"></g:select> 37 </td> 38 </tr> 39 40 <tr class="prop"> 41 <td valign="top" class="name"> 42 <label for="systemSection">System Section:</label> 43 </td> 44 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'systemSection','errors')}"> 45 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${maintenanceActionInstance?.systemSection?.id}" noSelection="['null':'']"></g:select> 35 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'section','errors')}"> 36 <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${maintenanceActionInstance?.section?.id}" noSelection="['null':'']"></g:select> 46 37 </td> 47 38 </tr> … … 58 49 <tr class="prop"> 59 50 <td valign="top" class="name"> 60 <label for="asset Type">Asset Type:</label>51 <label for="assetSubItem">Asset Sub Item:</label> 61 52 </td> 62 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'asset Type','errors')}">63 <g:select optionKey="id" from="${Asset Type.list()}" name="assetType.id" value="${maintenanceActionInstance?.assetType?.id}" noSelection="['null':'']"></g:select>53 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assetSubItem','errors')}"> 54 <g:select optionKey="id" from="${AssetSubItem.list()}" name="assetSubItem.id" value="${maintenanceActionInstance?.assetSubItem?.id}" noSelection="['null':'']"></g:select> 64 55 </td> 65 56 </tr> … … 67 58 <tr class="prop"> 68 59 <td valign="top" class="name"> 69 <label for=" assembly">Assembly:</label>60 <label for="maintenancePolicy">Maintenance Policy:</label> 70 61 </td> 71 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assembly','errors')}"> 72 <g:select optionKey="id" from="${Assembly.list()}" name="assembly.id" value="${maintenanceActionInstance?.assembly?.id}" noSelection="['null':'']"></g:select> 73 </td> 74 </tr> 75 76 <tr class="prop"> 77 <td valign="top" class="name"> 78 <label for="subAssembly">Sub Assembly:</label> 79 </td> 80 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'subAssembly','errors')}"> 81 <g:select optionKey="id" from="${SubAssembly.list()}" name="subAssembly.id" value="${maintenanceActionInstance?.subAssembly?.id}" noSelection="['null':'']"></g:select> 82 </td> 83 </tr> 84 85 <tr class="prop"> 86 <td valign="top" class="name"> 87 <label for="componentItem">Component Item:</label> 88 </td> 89 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'componentItem','errors')}"> 90 <g:select optionKey="id" from="${ComponentItem.list()}" name="componentItem.id" value="${maintenanceActionInstance?.componentItem?.id}" noSelection="['null':'']"></g:select> 62 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenancePolicy','errors')}"> 63 <g:select optionKey="id" from="${MaintenancePolicy.list()}" name="maintenancePolicy.id" value="${maintenanceActionInstance?.maintenancePolicy?.id}" noSelection="['null':'']"></g:select> 91 64 </td> 92 65 </tr> … … 112 85 <tr class="prop"> 113 86 <td valign="top" class="name"> 114 <label for=" isActive">Is Active:</label>87 <label for="reasoning">Reasoning:</label> 115 88 </td> 116 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:' isActive','errors')}">117 < g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox>89 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'reasoning','errors')}"> 90 <input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/> 118 91 </td> 119 92 </tr> … … 121 94 <tr class="prop"> 122 95 <td valign="top" class="name"> 123 <label for=" reasoning">Reasoning:</label>96 <label for="isActive">Is Active:</label> 124 97 </td> 125 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:' reasoning','errors')}">126 < input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/>98 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'isActive','errors')}"> 99 <g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox> 127 100 </td> 128 101 </tr> -
trunk/grails-app/views/maintenanceAction/list.gsp
r178 r268 23 23 <g:sortableColumn property="id" title="Id" /> 24 24 25 <th>Maintenance Policy</th> 26 27 <th>System Section</th> 25 <th>Section</th> 28 26 29 27 <th>Asset</th> 30 28 31 <th>Asset Type</th>29 <th>Asset Sub Item</th> 32 30 33 <th> Assembly</th>31 <th>Maintenance Policy</th> 34 32 33 <g:sortableColumn property="procedureStepNumber" title="Procedure Step Number" /> 34 35 35 </tr> 36 36 </thead> … … 41 41 <td><g:link action="show" id="${maintenanceActionInstance.id}">${fieldValue(bean:maintenanceActionInstance, field:'id')}</g:link></td> 42 42 43 <td>${fieldValue(bean:maintenanceActionInstance, field:'maintenancePolicy')}</td> 44 45 <td>${fieldValue(bean:maintenanceActionInstance, field:'systemSection')}</td> 43 <td>${fieldValue(bean:maintenanceActionInstance, field:'section')}</td> 46 44 47 45 <td>${fieldValue(bean:maintenanceActionInstance, field:'asset')}</td> 48 46 49 <td>${fieldValue(bean:maintenanceActionInstance, field:'asset Type')}</td>47 <td>${fieldValue(bean:maintenanceActionInstance, field:'assetSubItem')}</td> 50 48 51 <td>${fieldValue(bean:maintenanceActionInstance, field:'assembly')}</td> 49 <td>${fieldValue(bean:maintenanceActionInstance, field:'maintenancePolicy')}</td> 50 51 <td>${fieldValue(bean:maintenanceActionInstance, field:'procedureStepNumber')}</td> 52 52 53 53 </tr> -
trunk/grails-app/views/maintenanceAction/show.gsp
r178 r268 30 30 31 31 <tr class="prop"> 32 <td valign="top" class="name"> Maintenance Policy:</td>32 <td valign="top" class="name">Section:</td> 33 33 34 <td valign="top" class="value"><g:link controller="maintenancePolicy" action="show" id="${maintenanceActionInstance?.maintenancePolicy?.id}">${maintenanceActionInstance?.maintenancePolicy?.encodeAsHTML()}</g:link></td> 35 36 </tr> 37 38 <tr class="prop"> 39 <td valign="top" class="name">System Section:</td> 40 41 <td valign="top" class="value"><g:link controller="systemSection" action="show" id="${maintenanceActionInstance?.systemSection?.id}">${maintenanceActionInstance?.systemSection?.encodeAsHTML()}</g:link></td> 34 <td valign="top" class="value"><g:link controller="section" action="show" id="${maintenanceActionInstance?.section?.id}">${maintenanceActionInstance?.section?.encodeAsHTML()}</g:link></td> 42 35 43 36 </tr> … … 51 44 52 45 <tr class="prop"> 53 <td valign="top" class="name">Asset Type:</td>46 <td valign="top" class="name">Asset Sub Item:</td> 54 47 55 <td valign="top" class="value"><g:link controller="asset Type" action="show" id="${maintenanceActionInstance?.assetType?.id}">${maintenanceActionInstance?.assetType?.encodeAsHTML()}</g:link></td>48 <td valign="top" class="value"><g:link controller="assetSubItem" action="show" id="${maintenanceActionInstance?.assetSubItem?.id}">${maintenanceActionInstance?.assetSubItem?.encodeAsHTML()}</g:link></td> 56 49 57 50 </tr> 58 51 59 52 <tr class="prop"> 60 <td valign="top" class="name"> Assembly:</td>53 <td valign="top" class="name">Maintenance Policy:</td> 61 54 62 <td valign="top" class="value"><g:link controller="assembly" action="show" id="${maintenanceActionInstance?.assembly?.id}">${maintenanceActionInstance?.assembly?.encodeAsHTML()}</g:link></td> 63 64 </tr> 65 66 <tr class="prop"> 67 <td valign="top" class="name">Sub Assembly:</td> 68 69 <td valign="top" class="value"><g:link controller="subAssembly" action="show" id="${maintenanceActionInstance?.subAssembly?.id}">${maintenanceActionInstance?.subAssembly?.encodeAsHTML()}</g:link></td> 70 71 </tr> 72 73 <tr class="prop"> 74 <td valign="top" class="name">Component Item:</td> 75 76 <td valign="top" class="value"><g:link controller="componentItem" action="show" id="${maintenanceActionInstance?.componentItem?.id}">${maintenanceActionInstance?.componentItem?.encodeAsHTML()}</g:link></td> 55 <td valign="top" class="value"><g:link controller="maintenancePolicy" action="show" id="${maintenanceActionInstance?.maintenancePolicy?.id}">${maintenanceActionInstance?.maintenancePolicy?.encodeAsHTML()}</g:link></td> 77 56 78 57 </tr> … … 93 72 94 73 <tr class="prop"> 95 <td valign="top" class="name"> Is Active:</td>74 <td valign="top" class="name">Reasoning:</td> 96 75 97 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:' isActive')}</td>76 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:'reasoning')}</td> 98 77 99 78 </tr> 100 79 101 80 <tr class="prop"> 102 <td valign="top" class="name"> Reasoning:</td>81 <td valign="top" class="name">Is Active:</td> 103 82 104 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:' reasoning')}</td>83 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:'isActive')}</td> 105 84 106 85 </tr> -
trunk/grails-app/views/maintenancePolicy/create.gsp
r178 r268 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:maintenancePolicyInstance,field:'name','errors')}"> 33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:maintenancePolicyInstance,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 41 <td valign="top" class="value ${hasErrors(bean:maintenancePolicyInstance,field:'description','errors')}"> 33 <input type="text" id="description" name="description" value="${fieldValue(bean:maintenancePolicyInstance,field:'description')}"/>42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:maintenancePolicyInstance,field:'description')}"/> 34 43 </td> 35 44 </tr> … … 41 50 <td valign="top" class="value ${hasErrors(bean:maintenancePolicyInstance,field:'isActive','errors')}"> 42 51 <g:checkBox name="isActive" value="${maintenancePolicyInstance?.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:maintenancePolicyInstance,field:'name','errors')}">51 <input type="text" id="name" name="name" value="${fieldValue(bean:maintenancePolicyInstance,field:'name')}"/>52 52 </td> 53 53 </tr> -
trunk/grails-app/views/maintenancePolicy/edit.gsp
r178 r268 31 31 <tr class="prop"> 32 32 <td valign="top" class="name"> 33 <label for="name">Name:</label> 34 </td> 35 <td valign="top" class="value ${hasErrors(bean:maintenancePolicyInstance,field:'name','errors')}"> 36 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:maintenancePolicyInstance,field:'name')}"/> 37 </td> 38 </tr> 39 40 <tr class="prop"> 41 <td valign="top" class="name"> 33 42 <label for="description">Description:</label> 34 43 </td> 35 44 <td valign="top" class="value ${hasErrors(bean:maintenancePolicyInstance,field:'description','errors')}"> 36 <input type="text" id="description" name="description" value="${fieldValue(bean:maintenancePolicyInstance,field:'description')}"/>45 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:maintenancePolicyInstance,field:'description')}"/> 37 46 </td> 38 47 </tr> … … 63 72 </tr> 64 73 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:maintenancePolicyInstance,field:'name','errors')}">70 <input type="text" id="name" name="name" value="${fieldValue(bean:maintenancePolicyInstance,field:'name')}"/>71 </td>72 </tr>73 74 74 </tbody> 75 75 </table> -
trunk/grails-app/views/maintenancePolicy/list.gsp
r178 r268 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 29 <g:sortableColumn property="name" title="Name" />30 30 31 31 </tr> … … 37 37 <td><g:link action="show" id="${maintenancePolicyInstance.id}">${fieldValue(bean:maintenancePolicyInstance, field:'id')}</g:link></td> 38 38 39 <td>${fieldValue(bean:maintenancePolicyInstance, field:'name')}</td> 40 39 41 <td>${fieldValue(bean:maintenancePolicyInstance, field:'description')}</td> 40 42 41 43 <td>${fieldValue(bean:maintenancePolicyInstance, field:'isActive')}</td> 42 43 <td>${fieldValue(bean:maintenancePolicyInstance, field:'name')}</td>44 44 45 45 </tr> -
trunk/grails-app/views/maintenancePolicy/show.gsp
r178 r268 30 30 31 31 <tr class="prop"> 32 <td valign="top" class="name">Name:</td> 33 34 <td valign="top" class="value">${fieldValue(bean:maintenancePolicyInstance, field:'name')}</td> 35 36 </tr> 37 38 <tr class="prop"> 32 39 <td valign="top" class="name">Description:</td> 33 40 … … 56 63 </tr> 57 64 58 <tr class="prop">59 <td valign="top" class="name">Name:</td>60 61 <td valign="top" class="value">${fieldValue(bean:maintenancePolicyInstance, field:'name')}</td>62 63 </tr>64 65 65 </tbody> 66 66 </table> -
trunk/grails-app/views/section/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 S ystemSection</title>7 <title>Create Section</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">S ystemSection List</g:link></span>11 <span class="menuButton"><g:link class="list" action="list">Section List</g:link></span> 12 12 </div> 13 13 <div class="body"> 14 <h1>Create S ystemSection</h1>14 <h1>Create Section</h1> 15 15 <g:if test="${flash.message}"> 16 16 <div class="message">${flash.message}</div> 17 17 </g:if> 18 <g:hasErrors bean="${s ystemSectionInstance}">18 <g:hasErrors bean="${sectionInstance}"> 19 19 <div class="errors"> 20 <g:renderErrors bean="${s ystemSectionInstance}" as="list" />20 <g:renderErrors bean="${sectionInstance}" as="list" /> 21 21 </div> 22 22 </g:hasErrors> … … 28 28 <tr class="prop"> 29 29 <td valign="top" class="name"> 30 <label for=" costCode">Cost Code:</label>30 <label for="name">Name:</label> 31 31 </td> 32 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'costCode','errors')}"> 33 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:systemSectionInstance,field:'costCode')}"/> 32 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'name','errors')}"> 33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:sectionInstance,field:'name')}"/> 34 </td> 35 </tr> 36 37 <tr class="prop"> 38 <td valign="top" class="name"> 39 <label for="description">Description:</label> 40 </td> 41 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'description','errors')}"> 42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:sectionInstance,field:'description')}"/> 43 </td> 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name"> 48 <label for="isActive">Is Active:</label> 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'isActive','errors')}"> 51 <g:checkBox name="isActive" value="${sectionInstance?.isActive}" ></g:checkBox> 34 52 </td> 35 53 </tr> … … 39 57 <label for="department">Department:</label> 40 58 </td> 41 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'department','errors')}"> 42 <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${systemSectionInstance?.department?.id}" ></g:select> 43 </td> 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name"> 48 <label for="description">Description:</label> 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'description','errors')}"> 51 <input type="text" id="description" name="description" value="${fieldValue(bean:systemSectionInstance,field:'description')}"/> 52 </td> 53 </tr> 54 55 <tr class="prop"> 56 <td valign="top" class="name"> 57 <label for="isActive">Is Active:</label> 58 </td> 59 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'isActive','errors')}"> 60 <g:checkBox name="isActive" value="${systemSectionInstance?.isActive}" ></g:checkBox> 61 </td> 62 </tr> 63 64 <tr class="prop"> 65 <td valign="top" class="name"> 66 <label for="name">Name:</label> 67 </td> 68 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}"> 69 <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/> 59 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'department','errors')}"> 60 <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${sectionInstance?.department?.id}" ></g:select> 70 61 </td> 71 62 </tr> … … 75 66 <label for="site">Site:</label> 76 67 </td> 77 <td valign="top" class="value ${hasErrors(bean:s ystemSectionInstance,field:'site','errors')}">78 <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${s ystemSectionInstance?.site?.id}" ></g:select>68 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'site','errors')}"> 69 <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${sectionInstance?.site?.id}" ></g:select> 79 70 </td> 80 71 </tr> -
trunk/grails-app/views/section/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 S ystemSection</title>7 <title>Edit Section</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">S ystemSection List</g:link></span>12 <span class="menuButton"><g:link class="create" action="create">New S ystemSection</g:link></span>11 <span class="menuButton"><g:link class="list" action="list">Section List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New Section</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Edit S ystemSection</h1>15 <h1>Edit Section</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> 18 18 </g:if> 19 <g:hasErrors bean="${s ystemSectionInstance}">19 <g:hasErrors bean="${sectionInstance}"> 20 20 <div class="errors"> 21 <g:renderErrors bean="${s ystemSectionInstance}" as="list" />21 <g:renderErrors bean="${sectionInstance}" as="list" /> 22 22 </div> 23 23 </g:hasErrors> 24 24 <g:form method="post" > 25 <input type="hidden" name="id" value="${s ystemSectionInstance?.id}" />26 <input type="hidden" name="version" value="${s ystemSectionInstance?.version}" />25 <input type="hidden" name="id" value="${sectionInstance?.id}" /> 26 <input type="hidden" name="version" value="${sectionInstance?.version}" /> 27 27 <div class="dialog"> 28 28 <table> … … 31 31 <tr class="prop"> 32 32 <td valign="top" class="name"> 33 <label for=" assets">Assets:</label>33 <label for="name">Name:</label> 34 34 </td> 35 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'assets','errors')}"> 36 37 <ul> 38 <g:each var="a" in="${systemSectionInstance?.assets?}"> 39 <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 40 </g:each> 41 </ul> 42 <g:link controller="asset" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add Asset</g:link> 43 35 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'name','errors')}"> 36 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:sectionInstance,field:'name')}"/> 44 37 </td> 45 38 </tr> … … 47 40 <tr class="prop"> 48 41 <td valign="top" class="name"> 49 <label for=" costCode">Cost Code:</label>42 <label for="description">Description:</label> 50 43 </td> 51 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'costCode','errors')}"> 52 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:systemSectionInstance,field:'costCode')}"/> 44 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'description','errors')}"> 45 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:sectionInstance,field:'description')}"/> 46 </td> 47 </tr> 48 49 <tr class="prop"> 50 <td valign="top" class="name"> 51 <label for="isActive">Is Active:</label> 52 </td> 53 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'isActive','errors')}"> 54 <g:checkBox name="isActive" value="${sectionInstance?.isActive}" ></g:checkBox> 55 </td> 56 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name"> 60 <label for="assets">Assets:</label> 61 </td> 62 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'assets','errors')}"> 63 64 <ul> 65 <g:each var="a" in="${sectionInstance?.assets?}"> 66 <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 67 </g:each> 68 </ul> 69 <g:link controller="asset" params="['section.id':sectionInstance?.id]" action="create">Add Asset</g:link> 70 53 71 </td> 54 72 </tr> … … 58 76 <label for="department">Department:</label> 59 77 </td> 60 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'department','errors')}"> 61 <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${systemSectionInstance?.department?.id}" ></g:select> 62 </td> 63 </tr> 64 65 <tr class="prop"> 66 <td valign="top" class="name"> 67 <label for="description">Description:</label> 68 </td> 69 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'description','errors')}"> 70 <input type="text" id="description" name="description" value="${fieldValue(bean:systemSectionInstance,field:'description')}"/> 71 </td> 72 </tr> 73 74 <tr class="prop"> 75 <td valign="top" class="name"> 76 <label for="isActive">Is Active:</label> 77 </td> 78 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'isActive','errors')}"> 79 <g:checkBox name="isActive" value="${systemSectionInstance?.isActive}" ></g:checkBox> 78 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'department','errors')}"> 79 <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${sectionInstance?.department?.id}" ></g:select> 80 80 </td> 81 81 </tr> … … 85 85 <label for="maintenanceActions">Maintenance Actions:</label> 86 86 </td> 87 <td valign="top" class="value ${hasErrors(bean:s ystemSectionInstance,field:'maintenanceActions','errors')}">87 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'maintenanceActions','errors')}"> 88 88 89 89 <ul> 90 <g:each var="m" in="${s ystemSectionInstance?.maintenanceActions?}">90 <g:each var="m" in="${sectionInstance?.maintenanceActions?}"> 91 91 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 92 92 </g:each> 93 93 </ul> 94 <g:link controller="maintenanceAction" params="['s ystemSection.id':systemSectionInstance?.id]" action="create">Add MaintenanceAction</g:link>94 <g:link controller="maintenanceAction" params="['section.id':sectionInstance?.id]" action="create">Add MaintenanceAction</g:link> 95 95 96 96 </td> … … 99 99 <tr class="prop"> 100 100 <td valign="top" class="name"> 101 <label for=" name">Name:</label>101 <label for="sectionExtendedAttributes">Section Extended Attributes:</label> 102 102 </td> 103 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}"> 104 <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/> 103 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'sectionExtendedAttributes','errors')}"> 104 105 <ul> 106 <g:each var="s" in="${sectionInstance?.sectionExtendedAttributes?}"> 107 <li><g:link controller="sectionExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 108 </g:each> 109 </ul> 110 <g:link controller="sectionExtendedAttribute" params="['section.id':sectionInstance?.id]" action="create">Add SectionExtendedAttribute</g:link> 111 105 112 </td> 106 113 </tr> … … 110 117 <label for="site">Site:</label> 111 118 </td> 112 <td valign="top" class="value ${hasErrors(bean:s ystemSectionInstance,field:'site','errors')}">113 <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${s ystemSectionInstance?.site?.id}" ></g:select>119 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'site','errors')}"> 120 <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${sectionInstance?.site?.id}" ></g:select> 114 121 </td> 115 122 </tr> -
trunk/grails-app/views/section/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>S ystemSection List</title>7 <title>Section List</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="create" action="create">New S ystemSection</g:link></span>11 <span class="menuButton"><g:link class="create" action="create">New Section</g:link></span> 12 12 </div> 13 13 <div class="body"> 14 <h1>S ystemSection List</h1>14 <h1>Section 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=" costCode" title="Cost Code" />25 <g:sortableColumn property="name" title="Name" /> 26 26 27 <th>Department</th>28 29 27 <g:sortableColumn property="description" title="Description" /> 30 28 31 29 <g:sortableColumn property="isActive" title="Is Active" /> 32 30 33 <g:sortableColumn property="name" title="Name" /> 34 31 <th>Department</th> 32 33 <th>Site</th> 34 35 35 </tr> 36 36 </thead> 37 37 <tbody> 38 <g:each in="${s ystemSectionInstanceList}" status="i" var="systemSectionInstance">38 <g:each in="${sectionInstanceList}" status="i" var="sectionInstance"> 39 39 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 40 40 41 <td><g:link action="show" id="${s ystemSectionInstance.id}">${fieldValue(bean:systemSectionInstance, field:'id')}</g:link></td>41 <td><g:link action="show" id="${sectionInstance.id}">${fieldValue(bean:sectionInstance, field:'id')}</g:link></td> 42 42 43 <td>${fieldValue(bean:s ystemSectionInstance, field:'costCode')}</td>43 <td>${fieldValue(bean:sectionInstance, field:'name')}</td> 44 44 45 <td>${fieldValue(bean:s ystemSectionInstance, field:'department')}</td>45 <td>${fieldValue(bean:sectionInstance, field:'description')}</td> 46 46 47 <td>${fieldValue(bean:s ystemSectionInstance, field:'description')}</td>47 <td>${fieldValue(bean:sectionInstance, field:'isActive')}</td> 48 48 49 <td>${fieldValue(bean:s ystemSectionInstance, field:'isActive')}</td>49 <td>${fieldValue(bean:sectionInstance, field:'department')}</td> 50 50 51 <td>${fieldValue(bean:s ystemSectionInstance, field:'name')}</td>51 <td>${fieldValue(bean:sectionInstance, field:'site')}</td> 52 52 53 53 </tr> … … 57 57 </div> 58 58 <div class="paginateButtons"> 59 <g:paginate total="${s ystemSectionInstanceTotal}" />59 <g:paginate total="${sectionInstanceTotal}" /> 60 60 </div> 61 61 </div> -
trunk/grails-app/views/section/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 S ystemSection</title>7 <title>Show Section</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">S ystemSection List</g:link></span>12 <span class="menuButton"><g:link class="create" action="create">New S ystemSection</g:link></span>11 <span class="menuButton"><g:link class="list" action="list">Section List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New Section</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Show S ystemSection</h1>15 <h1>Show Section</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:systemSectionInstance, field:'id')}</td> 27 <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'id')}</td> 28 29 </tr> 30 31 <tr class="prop"> 32 <td valign="top" class="name">Name:</td> 33 34 <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'name')}</td> 35 36 </tr> 37 38 <tr class="prop"> 39 <td valign="top" class="name">Description:</td> 40 41 <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'description')}</td> 42 43 </tr> 44 45 <tr class="prop"> 46 <td valign="top" class="name">Is Active:</td> 47 48 <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'isActive')}</td> 28 49 29 50 </tr> … … 34 55 <td valign="top" style="text-align:left;" class="value"> 35 56 <ul> 36 <g:each var="a" in="${s ystemSectionInstance.assets}">57 <g:each var="a" in="${sectionInstance.assets}"> 37 58 <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 38 59 </g:each> … … 43 64 44 65 <tr class="prop"> 45 <td valign="top" class="name">Cost Code:</td>46 47 <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'costCode')}</td>48 49 </tr>50 51 <tr class="prop">52 66 <td valign="top" class="name">Department:</td> 53 67 54 <td valign="top" class="value"><g:link controller="department" action="show" id="${systemSectionInstance?.department?.id}">${systemSectionInstance?.department?.encodeAsHTML()}</g:link></td> 55 56 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name">Description:</td> 60 61 <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'description')}</td> 62 63 </tr> 64 65 <tr class="prop"> 66 <td valign="top" class="name">Is Active:</td> 67 68 <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'isActive')}</td> 68 <td valign="top" class="value"><g:link controller="department" action="show" id="${sectionInstance?.department?.id}">${sectionInstance?.department?.encodeAsHTML()}</g:link></td> 69 69 70 70 </tr> … … 75 75 <td valign="top" style="text-align:left;" class="value"> 76 76 <ul> 77 <g:each var="m" in="${s ystemSectionInstance.maintenanceActions}">77 <g:each var="m" in="${sectionInstance.maintenanceActions}"> 78 78 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 79 79 </g:each> … … 84 84 85 85 <tr class="prop"> 86 <td valign="top" class="name"> Name:</td>86 <td valign="top" class="name">Section Extended Attributes:</td> 87 87 88 <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'name')}</td> 88 <td valign="top" style="text-align:left;" class="value"> 89 <ul> 90 <g:each var="s" in="${sectionInstance.sectionExtendedAttributes}"> 91 <li><g:link controller="sectionExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 92 </g:each> 93 </ul> 94 </td> 89 95 90 96 </tr> … … 93 99 <td valign="top" class="name">Site:</td> 94 100 95 <td valign="top" class="value"><g:link controller="site" action="show" id="${s ystemSectionInstance?.site?.id}">${systemSectionInstance?.site?.encodeAsHTML()}</g:link></td>101 <td valign="top" class="value"><g:link controller="site" action="show" id="${sectionInstance?.site?.id}">${sectionInstance?.site?.encodeAsHTML()}</g:link></td> 96 102 97 103 </tr> … … 102 108 <div class="buttons"> 103 109 <g:form> 104 <input type="hidden" name="id" value="${s ystemSectionInstance?.id}" />110 <input type="hidden" name="id" value="${sectionInstance?.id}" /> 105 111 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 106 112 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> -
trunk/grails-app/views/site/create.gsp
r178 r268 46 46 <tr class="prop"> 47 47 <td valign="top" class="name"> 48 <label for="costCode">Cost Code:</label>49 </td>50 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'costCode','errors')}">51 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:siteInstance,field:'costCode')}"/>52 </td>53 </tr>54 55 <tr class="prop">56 <td valign="top" class="name">57 48 <label for="isActive">Is Active:</label> 58 49 </td> -
trunk/grails-app/views/site/edit.gsp
r178 r268 49 49 <tr class="prop"> 50 50 <td valign="top" class="name"> 51 <label for="costCode">Cost Code:</label>52 </td>53 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'costCode','errors')}">54 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:siteInstance,field:'costCode')}"/>55 </td>56 </tr>57 58 <tr class="prop">59 <td valign="top" class="name">60 <label for="inventoryStores">Inventory Stores:</label>61 </td>62 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'inventoryStores','errors')}">63 64 <ul>65 <g:each var="i" in="${siteInstance?.inventoryStores?}">66 <li><g:link controller="inventoryStore" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>67 </g:each>68 </ul>69 <g:link controller="inventoryStore" params="['site.id':siteInstance?.id]" action="create">Add InventoryStore</g:link>70 71 </td>72 </tr>73 74 <tr class="prop">75 <td valign="top" class="name">76 51 <label for="isActive">Is Active:</label> 77 52 </td> … … 83 58 <tr class="prop"> 84 59 <td valign="top" class="name"> 85 <label for="s ystemSections">SystemSections:</label>60 <label for="sections">Sections:</label> 86 61 </td> 87 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'s ystemSections','errors')}">62 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'sections','errors')}"> 88 63 89 64 <ul> 90 <g:each var="s" in="${siteInstance?.s ystemSections?}">91 <li><g:link controller="s ystemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>65 <g:each var="s" in="${siteInstance?.sections?}"> 66 <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 92 67 </g:each> 93 68 </ul> 94 <g:link controller="systemSection" params="['site.id':siteInstance?.id]" action="create">Add SystemSection</g:link> 69 <g:link controller="section" params="['site.id':siteInstance?.id]" action="create">Add Section</g:link> 70 71 </td> 72 </tr> 73 74 <tr class="prop"> 75 <td valign="top" class="name"> 76 <label for="siteExtendedAttributes">Site Extended Attributes:</label> 77 </td> 78 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'siteExtendedAttributes','errors')}"> 79 80 <ul> 81 <g:each var="s" in="${siteInstance?.siteExtendedAttributes?}"> 82 <li><g:link controller="siteExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 83 </g:each> 84 </ul> 85 <g:link controller="siteExtendedAttribute" params="['site.id':siteInstance?.id]" action="create">Add SiteExtendedAttribute</g:link> 95 86 96 87 </td> -
trunk/grails-app/views/site/list.gsp
r178 r268 27 27 <g:sortableColumn property="description" title="Description" /> 28 28 29 <g:sortableColumn property="costCode" title="Cost Code" />30 31 29 <g:sortableColumn property="isActive" title="Is Active" /> 32 30 … … 43 41 <td>${fieldValue(bean:siteInstance, field:'description')}</td> 44 42 45 <td>${fieldValue(bean:siteInstance, field:'costCode')}</td>46 47 43 <td>${fieldValue(bean:siteInstance, field:'isActive')}</td> 48 44 -
trunk/grails-app/views/site/show.gsp
r178 r268 44 44 45 45 <tr class="prop"> 46 <td valign="top" class="name"> Cost Code:</td>46 <td valign="top" class="name">Is Active:</td> 47 47 48 <td valign="top" class="value">${fieldValue(bean:siteInstance, field:' costCode')}</td>48 <td valign="top" class="value">${fieldValue(bean:siteInstance, field:'isActive')}</td> 49 49 50 50 </tr> 51 51 52 52 <tr class="prop"> 53 <td valign="top" class="name"> Inventory Stores:</td>53 <td valign="top" class="name">Sections:</td> 54 54 55 55 <td valign="top" style="text-align:left;" class="value"> 56 56 <ul> 57 <g:each var=" i" in="${siteInstance.inventoryStores}">58 <li><g:link controller=" inventoryStore" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>57 <g:each var="s" in="${siteInstance.sections}"> 58 <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 59 59 </g:each> 60 60 </ul> … … 64 64 65 65 <tr class="prop"> 66 <td valign="top" class="name">Is Active:</td> 67 68 <td valign="top" class="value">${fieldValue(bean:siteInstance, field:'isActive')}</td> 69 70 </tr> 71 72 <tr class="prop"> 73 <td valign="top" class="name">System Sections:</td> 66 <td valign="top" class="name">Site Extended Attributes:</td> 74 67 75 68 <td valign="top" style="text-align:left;" class="value"> 76 69 <ul> 77 <g:each var="s" in="${siteInstance.s ystemSections}">78 <li><g:link controller="s ystemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>70 <g:each var="s" in="${siteInstance.siteExtendedAttributes}"> 71 <li><g:link controller="siteExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 79 72 </g:each> 80 73 </ul>
Note: See TracChangeset
for help on using the changeset viewer.