Changeset 271 for trunk/grails-app/views
- Timestamp:
- Jan 15, 2010, 11:37:52 AM (15 years ago)
- Location:
- trunk/grails-app/views
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/asset/edit.gsp
r268 r271 83 83 <tr class="prop"> 84 84 <td valign="top" class="name"> 85 <label for="assetSubItem ">Asset Sub Item:</label>85 <label for="assetSubItems">Asset Sub Items:</label> 86 86 </td> 87 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetSubItem ','errors')}">87 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetSubItems','errors')}"> 88 88 89 89 <ul> 90 <g:each var="a" in="${assetInstance?.assetSubItem ?}">90 <g:each var="a" in="${assetInstance?.assetSubItems?}"> 91 91 <li><g:link controller="assetSubItem" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 92 92 </g:each> -
trunk/grails-app/views/asset/show.gsp
r268 r271 71 71 72 72 <tr class="prop"> 73 <td valign="top" class="name">Asset Sub Item :</td>73 <td valign="top" class="name">Asset Sub Items:</td> 74 74 75 75 <td valign="top" style="text-align:left;" class="value"> 76 76 <ul> 77 <g:each var="a" in="${assetInstance.assetSubItem }">77 <g:each var="a" in="${assetInstance.assetSubItems}"> 78 78 <li><g:link controller="assetSubItem" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 79 79 </g:each> -
trunk/grails-app/views/assetDetailed/create.gsp
r161 r271 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create Asset</title> 7 <title>Create Asset</title> 8 8 <nav:resources override="true"/> 9 9 </head> … … 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')}"/>33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 34 34 </td> 35 </tr> 35 </tr> 36 36 37 37 <tr class="prop"> … … 40 40 </td> 41 41 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}"> 42 <input type="text" id="description" name="description" value="${fieldValue(bean:assetInstance,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:assetInstance,field:'costCode','errors')}"> 51 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetInstance,field:'costCode')}"/> 52 </td> 53 </tr> 54 55 <tr class="prop"> 56 <td valign="top" class="name"> 57 <label for="assetType">Asset Type:</label> 58 </td> 59 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetType','errors')}"> 60 <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${assetInstance?.assetType?.id}" ></g:select> 42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> 61 43 </td> 62 44 </tr> 63 64 <tr class="prop"> 65 <td valign="top" class="name"> 66 <label for="systemSection">System Section:</label> 67 </td> 68 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}"> 69 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select> 70 </td> 71 </tr> 72 45 73 46 <tr class="prop"> 74 47 <td valign="top" class="name"> … … 79 52 </td> 80 53 </tr> 81 54 55 <tr class="prop"> 56 <td valign="top" class="name"> 57 <label for="section">Section:</label> 58 </td> 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> 61 </td> 62 </tr> 63 82 64 </tbody> 83 65 </table> -
trunk/grails-app/views/assetDetailed/edit.gsp
r161 r271 33 33 </td> 34 34 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}"> 35 <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/>35 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 36 36 </td> 37 37 </tr> … … 42 42 </td> 43 43 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}"> 44 <input type="text" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/>44 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> 45 45 </td> 46 </tr> 46 </tr> 47 47 48 48 <tr class="prop"> 49 49 <td valign="top" class="name"> 50 <label for=" costCode">Cost Code:</label>50 <label for="isActive">Is Active:</label> 51 51 </td> 52 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:' costCode','errors')}">53 < input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetInstance,field:'costCode')}"/>52 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'isActive','errors')}"> 53 <g:checkBox name="isActive" value="${assetInstance?.isActive}" ></g:checkBox> 54 54 </td> 55 </tr> 55 </tr> 56 56 57 57 <tr class="prop"> 58 58 <td valign="top" class="name"> 59 <label for=" assetType">Asset Type:</label>59 <label for="section">Section:</label> 60 60 </td> 61 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:' assetType','errors')}">62 <g:select optionKey="id" from="${ AssetType.list()}" name="assetType.id" value="${assetInstance?.assetType?.id}" ></g:select>61 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'section','errors')}"> 62 <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${assetInstance?.section?.id}" ></g:select> 63 63 </td> 64 </tr> 64 </tr> 65 65 66 <tr class="prop">67 <td valign="top" class="name">68 <label for="systemSection">System Section:</label>69 </td>70 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}">71 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select>72 </td>73 </tr>74 75 66 <tr class="prop"> 76 67 <td valign="top" class="name"> … … 91 82 <tr class="prop"> 92 83 <td valign="top" class="name"> 93 <label for=" isActive">Is Active:</label>84 <label for="assetSubItems">Asset Sub Items:</label> 94 85 </td> 95 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'isActive','errors')}"> 96 <g:checkBox name="isActive" value="${assetInstance?.isActive}" ></g:checkBox> 86 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetSubItems','errors')}"> 87 88 <ul> 89 <g:each var="a" in="${assetInstance?.assetSubItems?}"> 90 <li><g:link controller="assetSubItemDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 91 </g:each> 92 </ul> 93 <g:link controller="assetSubItemDetailed" params="['asset.id':assetInstance?.id]" action="create">Add AssetSubItem</g:link> 94 97 95 </td> 98 96 </tr> -
trunk/grails-app/views/assetDetailed/list.gsp
r182 r271 22 22 23 23 <g:sortableColumn property="id" title="Id" /> 24 25 <g:sortableColumn property="name" title="Name" />26 27 <g:sortableColumn property="assetType" title="Asset Type" />28 24 29 <g:sortableColumn property="systemSection" title="System Section" /> 30 31 <g:sortableColumn property="isActive" title="Is Active" /> 32 33 <th></th> 25 <g:sortableColumn property="name" title="Name" /> 26 27 <g:sortableColumn property="description" title="Description" /> 28 29 <g:sortableColumn property="isActive" title="Is Active" /> 30 31 <th>Section</th> 34 32 35 33 </tr> … … 40 38 41 39 <td>${fieldValue(bean:assetInstance, field:'id')}</td> 42 43 <td>${fieldValue(bean:assetInstance, field:'name')}</td> 44 45 <td>${fieldValue(bean:assetInstance, field:'assetType')}</td> 46 47 <td>${fieldValue(bean:assetInstance, field:'systemSection')}</td> 48 40 41 <td>${fieldValue(bean:assetInstance, field:'name')}</td> 42 43 <td>${fieldValue(bean:assetInstance, field:'description')}</td> 44 49 45 <td>${fieldValue(bean:assetInstance, field:'isActive')}</td> 46 47 <td>${fieldValue(bean:assetInstance, field:'section')}</td> 50 48 51 49 <td> -
trunk/grails-app/views/assetDetailed/search.gsp
r221 r271 8 8 <nav:resources override="true"/> 9 9 <filterpane:includes /> 10 <export:resource /> 10 11 </head> 11 12 <body> … … 39 40 40 41 <g:sortableColumn property="name" title="Name" params="${filterParams}" /> 41 42 <g:sortableColumn property="assetType" title="Asset Type" params="${filterParams}" />43 42 44 <g:sortableColumn property="systemSection" title="System Section" params="${filterParams}" />43 <g:sortableColumn property="description" title="Description" params="${filterParams}" /> 45 44 46 45 <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" /> 46 47 <g:sortableColumn property="section" title="Section" params="${filterParams}" /> 47 48 48 49 <th></th> … … 58 59 <td>${fieldValue(bean:assetInstance, field:'name')}</td> 59 60 60 <td>${fieldValue(bean:assetInstance, field:'assetType')}</td> 61 62 <td>${fieldValue(bean:assetInstance, field:'systemSection')}</td> 61 <td>${fieldValue(bean:assetInstance, field:'description')}</td> 63 62 64 63 <td>${fieldValue(bean:assetInstance, field:'isActive')}</td> 64 65 <td>${fieldValue(bean:assetInstance, field:'section')}</td> 65 66 66 67 <td> … … 78 79 <g:paginate total="${assetInstanceTotal}" params="${filterParams}" /> 79 80 </div> 81 <export:formats params="${filterParams}" formats="['csv', 'excel', 'pdf', 'rtf']"/> 82 <br /> 83 Asset Tree: 84 <g:link action="exportAssetTree"> 85 Export 86 </g:link> 87 / 88 <g:link action="exportAssetTreeTemplate"> 89 Template 90 </g:link> 91 / 92 <g:link action="importAssetTree"> 93 Import 94 </g:link> 80 95 81 96 <filterpane:filterPane domainBean="Asset" … … 84 99 class="overlayPane" 85 100 excludeProperties="" 86 associatedProperties="systemSection.name, assetType.name" 87 filterPropertyValues="${['systemSection.name':[values:SystemSection.list()], 88 'assetType.name':[values:AssetType.list()] ]}" /> 101 associatedProperties="section.name" 102 filterPropertyValues="${['section.name':[values:Section.list()] ]}" /> 89 103 </div> <!-- end body div --> 90 104 </body> -
trunk/grails-app/views/assetDetailed/show.gsp
r161 r271 19 19 <table> 20 20 <tbody> 21 22 21 23 22 <tr class="prop"> … … 29 28 30 29 <tr class="prop"> 31 <td valign="top" class="name">Name:</td> 32 33 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'name')}</td> 34 30 <td valign="top" class="name">Asset:</td> 31 32 <td valign="top" style="text-align:left;" class="value"> 33 ${assetInstance.encodeAsHTML()} 34 <g:link controller="assetSubItemDetailed" params="['asset.id':assetInstance?.id]" action="create"> 35 <img src="${resource(dir:'images/skin',file:'database_add.png')}" alt="Add" title="Add Sub Item"/> 36 </g:link> 37 <g:link params="['asset.id':assetInstance?.id]" action="copy"> 38 <img src="${resource(dir:'images/skin',file:'page_copy.png')}" alt="Copy" title="Copy Asset"/> 39 </g:link> 40 <br /> 41 <br /> 42 <ul> 43 <g:each var="assetSubItem1" in="${assetInstance.assetSubItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> 44 <li> 45 <g:link controller="assetSubItemDetailed" action="edit" id="${assetSubItem1.id}">${assetSubItem1?.encodeAsHTML()}</g:link> 46 <g:link controller="assetSubItemDetailed" params="['parentItem.id':assetSubItem1?.id]" action="create"> 47 <img src="${resource(dir:'images/skin',file:'database_add.png')}" alt="Add" title="Add Sub Item" /> 48 </g:link> 49 </li> 50 <ul> 51 <g:each var="assetSubItem2" in="${assetSubItem1.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> 52 <li> 53 <g:link controller="assetSubItemDetailed" action="edit" id="${assetSubItem2.id}">${assetSubItem2?.encodeAsHTML()}</g:link> 54 <g:link controller="assetSubItemDetailed" params="['parentItem.id':assetSubItem2?.id]" action="create"> 55 <img src="${resource(dir:'images/skin',file:'database_add.png')}" alt="Add" title="Add Sub Item" /> 56 </g:link> 57 </li> 58 <ul> 59 <g:each var="assetSubItem3" in="${assetSubItem2.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> 60 <li> 61 <g:link controller="assetSubItemDetailed" action="edit" id="${assetSubItem3.id}">${assetSubItem3?.encodeAsHTML()}</g:link> 62 <g:link controller="assetSubItemDetailed" params="['parentItem.id':assetSubItem3?.id]" action="create"> 63 <img src="${resource(dir:'images/skin',file:'database_add.png')}" alt="Add" title="Add Sub Item" /> 64 </g:link> 65 </li> 66 <ul> 67 <g:each var="assetSubItem4" in="${assetSubItem3.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> 68 <li><g:link controller="assetSubItemDetailed" action="edit" id="${assetSubItem4.id}">${assetSubItem4?.encodeAsHTML()}</g:link></li> 69 </g:each> <!--assetSubItem4--> 70 </ul> 71 </g:each> <!--assetSubItem3--> 72 </ul> 73 </g:each> <!--assetSubItem2--> 74 </ul> 75 <br /> 76 <br /> 77 </g:each> <!--assetSubItem1--> 78 </ul> 79 </td> 80 35 81 </tr> 36 82 … … 39 85 40 86 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td> 41 42 </tr>43 44 <tr class="prop">45 <td valign="top" class="name">Cost Code:</td>46 47 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'costCode')}</td>48 49 </tr>50 51 <tr class="prop">52 <td valign="top" class="name">Asset Type:</td>53 54 <td valign="top" class="value">55 ${assetInstance?.assetType?.encodeAsHTML()}56 <ul>57 <g:each var="a" in="${assetInstance.assetType.assemblies}">58 <li>59 ${a?.encodeAsHTML()}60 <ul>61 <g:each var="s" in="${a.subAssemblies}">62 <li>${s?.encodeAsHTML()}</li>63 </g:each>64 </ul>65 </li>66 </g:each>67 </ul>68 </td>69 70 </tr>71 72 <tr class="prop">73 <td valign="top" class="name">System Section:</td>74 75 <td valign="top" class="value"><g:link controller="systemSectionDetailed" action="show" id="${assetInstance?.systemSection?.id}">${assetInstance?.systemSection?.encodeAsHTML()}</g:link></td>76 77 </tr>78 79 <tr class="prop">80 <td valign="top" class="name">Asset Extended Attributes:</td>81 82 <td valign="top" style="text-align:left;" class="value">83 <ul>84 <g:each var="a" in="${assetInstance.assetExtendedAttributes}">85 <li><g:link controller="assetExtendedAttributeDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>86 </g:each>87 </ul>88 </td>89 87 90 88 </tr> … … 98 96 99 97 <tr class="prop"> 98 <td valign="top" class="name">Section:</td> 99 100 <td valign="top" class="value"><g:link controller="sectionDetailed" action="show" id="${assetInstance?.section?.id}">${assetInstance?.section?.encodeAsHTML()}</g:link></td> 101 102 </tr> 103 104 <tr class="prop"> 105 <td valign="top" class="name">Asset Extended Attributes:</td> 106 107 <td valign="top" style="text-align:left;" class="value"> 108 <ul> 109 <g:each var="a" in="${assetInstance.assetExtendedAttributes}"> 110 <li><g:link controller="assetExtendedAttributeDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 111 </g:each> 112 </ul> 113 </td> 114 115 </tr> 116 117 <tr class="prop"> 100 118 <td valign="top" class="name">Maintenance Actions:</td> 101 119 … … 103 121 <ul> 104 122 <g:each var="m" in="${assetInstance.maintenanceActions}"> 105 <li><g:link controller="maintenanceActionDetailed" action=" show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>123 <li><g:link controller="maintenanceActionDetailed" action="edit" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 106 124 </g:each> 107 125 </ul>
Note: See TracChangeset
for help on using the changeset viewer.