Changeset 122 for trunk/grails-app/views/systemSection
- Timestamp:
- May 1, 2009, 3:27:41 PM (16 years ago)
- Location:
- trunk/grails-app/views/systemSection
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/systemSection/create.gsp
r118 r122 54 54 </tr> 55 55 56 <tr class="prop"> 57 <td valign="top" class="name"> 58 <label for="site">Site:</label> 59 </td> 60 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'site','errors')}"> 61 <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${systemSectionInstance?.site?.id}" ></g:select> 62 </td> 63 </tr> 64 56 65 </tbody> 57 66 </table> -
trunk/grails-app/views/systemSection/edit.gsp
r118 r122 32 32 <tr class="prop"> 33 33 <td valign="top" class="name"> 34 <label for="asset Types">Asset Types:</label>34 <label for="assets">Assets:</label> 35 35 </td> 36 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'asset Types','errors')}">36 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'assets','errors')}"> 37 37 38 38 <ul> 39 <g:each var="a" in="${systemSectionInstance?.asset Types?}">40 <li><g:link controller="asset Type" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>39 <g:each var="a" in="${systemSectionInstance?.assets?}"> 40 <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 41 41 </g:each> 42 42 </ul> 43 <g:link controller="asset Type" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add AssetType</g:link>43 <g:link controller="asset" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add Asset</g:link> 44 44 45 45 </td> … … 66 66 <tr class="prop"> 67 67 <td valign="top" class="name"> 68 <label for=" lifePlans">Life Plans:</label>68 <label for="maintenanceActions">Maintenance Actions:</label> 69 69 </td> 70 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'lifePlans','errors')}"> 71 <g:select name="lifePlans" 72 from="${LifePlan.list()}" 73 size="5" multiple="yes" optionKey="id" 74 value="${systemSectionInstance?.lifePlans}" /> 70 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'maintenanceActions','errors')}"> 71 72 <ul> 73 <g:each var="m" in="${systemSectionInstance?.maintenanceActions?}"> 74 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 75 </g:each> 76 </ul> 77 <g:link controller="maintenanceAction" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add MaintenanceAction</g:link> 75 78 76 79 </td> … … 83 86 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}"> 84 87 <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/> 88 </td> 89 </tr> 90 91 <tr class="prop"> 92 <td valign="top" class="name"> 93 <label for="site">Site:</label> 94 </td> 95 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'site','errors')}"> 96 <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${systemSectionInstance?.site?.id}" ></g:select> 85 97 </td> 86 98 </tr> -
trunk/grails-app/views/systemSection/list.gsp
r118 r122 30 30 <g:sortableColumn property="name" title="Name" /> 31 31 32 <th>Site</th> 33 32 34 </tr> 33 35 </thead> … … 44 46 <td>${fieldValue(bean:systemSectionInstance, field:'name')}</td> 45 47 48 <td>${fieldValue(bean:systemSectionInstance, field:'site')}</td> 49 46 50 </tr> 47 51 </g:each> -
trunk/grails-app/views/systemSection/show.gsp
r118 r122 31 31 32 32 <tr class="prop"> 33 <td valign="top" class="name">Asset Types:</td>33 <td valign="top" class="name">Assets:</td> 34 34 35 35 <td valign="top" style="text-align:left;" class="value"> 36 36 <ul> 37 <g:each var="a" in="${systemSectionInstance.asset Types}">38 <li><g:link controller="asset Type" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>37 <g:each var="a" in="${systemSectionInstance.assets}"> 38 <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 39 39 </g:each> 40 40 </ul> … … 58 58 59 59 <tr class="prop"> 60 <td valign="top" class="name"> Life Plans:</td>60 <td valign="top" class="name">Maintenance Actions:</td> 61 61 62 62 <td valign="top" style="text-align:left;" class="value"> 63 63 <ul> 64 <g:each var=" l" in="${systemSectionInstance.lifePlans}">65 <li><g:link controller=" lifePlan" action="show" id="${l.id}">${l?.encodeAsHTML()}</g:link></li>64 <g:each var="m" in="${systemSectionInstance.maintenanceActions}"> 65 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 66 66 </g:each> 67 67 </ul> … … 74 74 75 75 <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'name')}</td> 76 77 </tr> 78 79 <tr class="prop"> 80 <td valign="top" class="name">Site:</td> 81 82 <td valign="top" class="value"><g:link controller="site" action="show" id="${systemSectionInstance?.site?.id}">${systemSectionInstance?.site?.encodeAsHTML()}</g:link></td> 76 83 77 84 </tr>
Note: See TracChangeset
for help on using the changeset viewer.