Changeset 122 for trunk/grails-app/views/assembly
- Timestamp:
- May 1, 2009, 3:27:41 PM (16 years ago)
- Location:
- trunk/grails-app/views/assembly
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/assembly/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:assemblyInstance,field:'lifeplan','errors')}">52 <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${assemblyInstance?.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> -
trunk/grails-app/views/assembly/edit.gsp
r118 r122 59 59 <tr class="prop"> 60 60 <td valign="top" class="name"> 61 <label for=" lifeplan">Lifeplan:</label>61 <label for="maintenanceActions">Maintenance Actions:</label> 62 62 </td> 63 <td valign="top" class="value ${hasErrors(bean:assemblyInstance,field:'lifeplan','errors')}"> 64 <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${assemblyInstance?.lifeplan?.id}" ></g:select> 63 <td valign="top" class="value ${hasErrors(bean:assemblyInstance,field:'maintenanceActions','errors')}"> 64 65 <ul> 66 <g:each var="m" in="${assemblyInstance?.maintenanceActions?}"> 67 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 68 </g:each> 69 </ul> 70 <g:link controller="maintenanceAction" params="['assembly.id':assemblyInstance?.id]" action="create">Add MaintenanceAction</g:link> 71 65 72 </td> 66 73 </tr> -
trunk/grails-app/views/assembly/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:assemblyInstance, field:'isActive')}</td> 45 43 46 <td>${fieldValue(bean:assemblyInstance, field:'lifeplan')}</td>47 48 44 <td>${fieldValue(bean:assemblyInstance, field:'name')}</td> 49 45 -
trunk/grails-app/views/assembly/show.gsp
r118 r122 58 58 59 59 <tr class="prop"> 60 <td valign="top" class="name"> Lifeplan:</td>60 <td valign="top" class="name">Maintenance Actions:</td> 61 61 62 <td valign="top" class="value"><g:link controller="lifePlan" action="show" id="${assemblyInstance?.lifeplan?.id}">${assemblyInstance?.lifeplan?.encodeAsHTML()}</g:link></td> 62 <td valign="top" style="text-align:left;" class="value"> 63 <ul> 64 <g:each var="m" in="${assemblyInstance.maintenanceActions}"> 65 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 66 </g:each> 67 </ul> 68 </td> 63 69 64 70 </tr>
Note: See TracChangeset
for help on using the changeset viewer.