source: branches/features/taskProcedureRework/grails-app/views/taskProcedureDetailed/_maintenanceAction.gsp @ 776

Last change on this file since 776 was 776, checked in by gav, 9 years ago

TaskProcedure? improvements, filter assemblies, pre populate a maintenanceAction for each assembly at creation.

File size: 2.1 KB
Line 
1
2    <tr id="maintenanceActionLazyList${i}" class="ma-div" <g:if test="${ma?.toBeDeleted}">style="display:none;"</g:if>>
3
4        <td valign="top" class="value ${hasErrors(bean:tp,field:/maintenanceActionLazyList[$i].procedureStepNumber/,'errors')}">
5            <g:hiddenField name="maintenanceActionLazyList[${i}].toBeDeleted" value="${ma?.toBeDeleted}"/>
6            <g:hiddenField name='maintenanceActionLazyList[${i}].isNew' value="${ma?.id == null?'true':'false'}"/>
7            <g:textField name="maintenanceActionLazyList[${i}].procedureStepNumber"
8                                    value="${ma?.procedureStepNumber}"
9                                    style="width:3em;"/>
10        </td>
11
12        <td valign="top" class="value ${hasErrors(bean:ma,field:'assetSubItem','errors')}">
13            <g:select optionKey="id"
14                                from="${assemblies}"
15                                name="maintenanceActionLazyList[${i}].assetSubItem.id"
16                                value="${ma?.assetSubItem?.id}"
17                                noSelection="['null':/${g.message(code:'default.none.select.text')}/]">
18            </g:select>
19        </td>
20
21        <td valign="top" class="value ${hasErrors(bean:ma,field:'description','errors')}">
22            <g:textArea name="maintenanceActionLazyList[${i}].description"
23                                    value="${ma?.description}"
24                                    style="width:100%;height:auto;"
25                                    rows="2"
26                                    cols="25"/>
27        </td>
28
29        <td valign="top" class="value ${hasErrors(bean:ma,field:'reasoning','errors')}">
30            <g:textArea name="maintenanceActionLazyList[${i}].reasoning"
31                                    value="${ma?.reasoning}"
32                                    style="width:100%;height:auto;"
33                                    rows="2"
34                                    cols="25"/>
35        </td>
36
37        <td>
38            <span class="del-ma">
39                <img src="${resource(dir:'images/skin', file:'database_delete.png')}" />
40            </span>
41        </td>
42    </tr>
Note: See TracBrowser for help on using the repository browser.