
    <tr id="maintenanceActionLazyList${i}" class="ma-div" <g:if test="${ma?.toBeDeleted}">style="display:none;"</g:if>>

        <td valign="top" class="value ${hasErrors(bean:tp,field:/maintenanceActionLazyList[$i].procedureStepNumber/,'errors')}">
            <g:hiddenField name="maintenanceActionLazyList[${i}].toBeDeleted" value="${ma?.toBeDeleted}"/>
            <g:hiddenField name='maintenanceActionLazyList[${i}].isNew' value="${ma?.id == null?'true':'false'}"/>
            <g:textField name="maintenanceActionLazyList[${i}].procedureStepNumber"
                                    value="${ma?.procedureStepNumber}"
                                    style="width:3em;"/>
        </td>

        <td valign="top" class="value ${hasErrors(bean:ma,field:'assetSubItem','errors')}">
            <g:select optionKey="id"
                                from="${assemblies}"
                                name="maintenanceActionLazyList[${i}].assetSubItem.id"
                                value="${ma?.assetSubItem?.id}"
                                noSelection="['null':/${g.message(code:'default.none.select.text')}/]">
            </g:select>
        </td>

        <td valign="top" class="value ${hasErrors(bean:ma,field:'description','errors')}">
            <g:textArea name="maintenanceActionLazyList[${i}].description"
                                    value="${ma?.description}"
                                    style="width:100%;height:auto;"
                                    rows="2"
                                    cols="25"/>
        </td>

        <td valign="top" class="value ${hasErrors(bean:ma,field:'reasoning','errors')}">
            <g:textArea name="maintenanceActionLazyList[${i}].reasoning"
                                    value="${ma?.reasoning}"
                                    style="width:100%;height:auto;"
                                    rows="2"
                                    cols="25"/>
        </td>

        <td>
            <span class="del-ma">
                <img src="${resource(dir:'images/skin', file:'database_delete.png')}" />
            </span>
        </td>
    </tr>
