Changeset 122 for trunk/grails-app/views/componentItem
- Timestamp:
- May 1, 2009, 3:27:41 PM (16 years ago)
- Location:
- trunk/grails-app/views/componentItem
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/componentItem/create.gsp
r118 r122 38 38 <tr class="prop"> 39 39 <td valign="top" class="name"> 40 <label for="fmeaNumber">Fmea Number:</label>41 </td>42 <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'fmeaNumber','errors')}">43 <input type="text" id="fmeaNumber" name="fmeaNumber" value="${fieldValue(bean:componentItemInstance,field:'fmeaNumber')}" />44 </td>45 </tr>46 47 <tr class="prop">48 <td valign="top" class="name">49 40 <label for="isActive">Is Active:</label> 50 41 </td> 51 42 <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'isActive','errors')}"> 52 43 <g:checkBox name="isActive" value="${componentItemInstance?.isActive}" ></g:checkBox> 53 </td>54 </tr>55 56 <tr class="prop">57 <td valign="top" class="name">58 <label for="lifeplan">Lifeplan:</label>59 </td>60 <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'lifeplan','errors')}">61 <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${componentItemInstance?.lifeplan?.id}" ></g:select>62 44 </td> 63 45 </tr> -
trunk/grails-app/views/componentItem/edit.gsp
r118 r122 41 41 <tr class="prop"> 42 42 <td valign="top" class="name"> 43 <label for="fmeaNumber">Fmea Number:</label>44 </td>45 <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'fmeaNumber','errors')}">46 <input type="text" id="fmeaNumber" name="fmeaNumber" value="${fieldValue(bean:componentItemInstance,field:'fmeaNumber')}" />47 </td>48 </tr>49 50 <tr class="prop">51 <td valign="top" class="name">52 43 <label for="isActive">Is Active:</label> 53 44 </td> … … 59 50 <tr class="prop"> 60 51 <td valign="top" class="name"> 61 <label for=" lifeplan">Lifeplan:</label>52 <label for="maintenanceActions">Maintenance Actions:</label> 62 53 </td> 63 <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'lifeplan','errors')}"> 64 <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${componentItemInstance?.lifeplan?.id}" ></g:select> 54 <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'maintenanceActions','errors')}"> 55 56 <ul> 57 <g:each var="m" in="${componentItemInstance?.maintenanceActions?}"> 58 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 59 </g:each> 60 </ul> 61 <g:link controller="maintenanceAction" params="['componentItem.id':componentItemInstance?.id]" action="create">Add MaintenanceAction</g:link> 62 65 63 </td> 66 64 </tr> -
trunk/grails-app/views/componentItem/list.gsp
r118 r122 26 26 <g:sortableColumn property="description" title="Description" /> 27 27 28 <g:sortableColumn property="fmeaNumber" title="Fmea Number" />29 30 28 <g:sortableColumn property="isActive" title="Is Active" /> 31 29 32 <th>Lifeplan</th>33 34 30 <g:sortableColumn property="name" title="Name" /> 35 31 … … 44 40 <td>${fieldValue(bean:componentItemInstance, field:'description')}</td> 45 41 46 <td>${fieldValue(bean:componentItemInstance, field:'fmeaNumber')}</td>47 48 42 <td>${fieldValue(bean:componentItemInstance, field:'isActive')}</td> 49 50 <td>${fieldValue(bean:componentItemInstance, field:'lifeplan')}</td>51 43 52 44 <td>${fieldValue(bean:componentItemInstance, field:'name')}</td> -
trunk/grails-app/views/componentItem/show.gsp
r118 r122 38 38 39 39 <tr class="prop"> 40 <td valign="top" class="name">Fmea Number:</td>41 42 <td valign="top" class="value">${fieldValue(bean:componentItemInstance, field:'fmeaNumber')}</td>43 44 </tr>45 46 <tr class="prop">47 40 <td valign="top" class="name">Is Active:</td> 48 41 … … 52 45 53 46 <tr class="prop"> 54 <td valign="top" class="name"> Lifeplan:</td>47 <td valign="top" class="name">Maintenance Actions:</td> 55 48 56 <td valign="top" class="value"><g:link controller="lifePlan" action="show" id="${componentItemInstance?.lifeplan?.id}">${componentItemInstance?.lifeplan?.encodeAsHTML()}</g:link></td> 49 <td valign="top" style="text-align:left;" class="value"> 50 <ul> 51 <g:each var="m" in="${componentItemInstance.maintenanceActions}"> 52 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 53 </g:each> 54 </ul> 55 </td> 57 56 58 57 </tr>
Note: See TracChangeset
for help on using the changeset viewer.