Changeset 122 for trunk/grails-app/views/subAssembly
- Timestamp:
- May 1, 2009, 3:27:41 PM (16 years ago)
- Location:
- trunk/grails-app/views/subAssembly
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/grails-app/views/subAssembly/create.gsp ¶
r118 r122 47 47 <tr class="prop"> 48 48 <td valign="top" class="name"> 49 <label for="lifeplan">Lifeplan:</label>50 </td>51 <td valign="top" class="value ${hasErrors(bean:subAssemblyInstance,field:'lifeplan','errors')}">52 <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${subAssemblyInstance?.lifeplan?.id}" ></g:select>53 </td>54 </tr>55 56 <tr class="prop">57 <td valign="top" class="name">58 49 <label for="name">Name:</label> 59 50 </td> -
TabularUnified trunk/grails-app/views/subAssembly/edit.gsp ¶
r118 r122 72 72 <tr class="prop"> 73 73 <td valign="top" class="name"> 74 <label for=" lifeplan">Lifeplan:</label>74 <label for="maintenanceActions">Maintenance Actions:</label> 75 75 </td> 76 <td valign="top" class="value ${hasErrors(bean:subAssemblyInstance,field:'lifeplan','errors')}"> 77 <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${subAssemblyInstance?.lifeplan?.id}" ></g:select> 76 <td valign="top" class="value ${hasErrors(bean:subAssemblyInstance,field:'maintenanceActions','errors')}"> 77 78 <ul> 79 <g:each var="m" in="${subAssemblyInstance?.maintenanceActions?}"> 80 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 81 </g:each> 82 </ul> 83 <g:link controller="maintenanceAction" params="['subAssembly.id':subAssemblyInstance?.id]" action="create">Add MaintenanceAction</g:link> 84 78 85 </td> 79 86 </tr> -
TabularUnified trunk/grails-app/views/subAssembly/list.gsp ¶
r118 r122 28 28 <g:sortableColumn property="isActive" title="Is Active" /> 29 29 30 <th>Lifeplan</th>31 32 30 <g:sortableColumn property="name" title="Name" /> 33 31 … … 44 42 <td>${fieldValue(bean:subAssemblyInstance, field:'isActive')}</td> 45 43 46 <td>${fieldValue(bean:subAssemblyInstance, field:'lifeplan')}</td>47 48 44 <td>${fieldValue(bean:subAssemblyInstance, field:'name')}</td> 49 45 -
TabularUnified trunk/grails-app/views/subAssembly/show.gsp ¶
r118 r122 71 71 72 72 <tr class="prop"> 73 <td valign="top" class="name"> Lifeplan:</td>73 <td valign="top" class="name">Maintenance Actions:</td> 74 74 75 <td valign="top" class="value"><g:link controller="lifePlan" action="show" id="${subAssemblyInstance?.lifeplan?.id}">${subAssemblyInstance?.lifeplan?.encodeAsHTML()}</g:link></td> 75 <td valign="top" style="text-align:left;" class="value"> 76 <ul> 77 <g:each var="m" in="${subAssemblyInstance.maintenanceActions}"> 78 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 79 </g:each> 80 </ul> 81 </td> 76 82 77 83 </tr>
Note: See TracChangeset
for help on using the changeset viewer.