Changeset 762 for branches/features/taskProcedureRework/grails-app/views/taskProcedureDetailed/_maintenanceActions.gsp
- Timestamp:
- Jan 28, 2011, 10:04:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/features/taskProcedureRework/grails-app/views/taskProcedureDetailed/_maintenanceActions.gsp
r761 r762 6 6 var deleteIcon = "${resource(dir:'images/skin', file:'database_delete.png')}"; 7 7 var templateHtml = "<div id='" + htmlId + "' name='" + htmlId + "'>\n"; 8 templateHtml += "<input type='text' id=' expandableMaintenanceActionList[" + childCount + "].description' name='expandableMaintenanceActionList[" + childCount + "].description' />\n";8 templateHtml += "<input type='text' id='maintenanceActionLazyList[" + childCount + "].description' name='maintenanceActionLazyList[" + childCount + "].description' />\n"; 9 9 templateHtml += "<span onClick='jQuery(\"#" + htmlId + "\").remove();'><img src='" + deleteIcon + "' /></span>\n"; 10 10 templateHtml += "</div>\n"; … … 15 15 16 16 <div id="childList"> 17 <g:each var="m " in="${taskProcedureInstance.maintenanceActions}" status="i">17 <g:each var="ma" in="${taskProcedureInstance.maintenanceActions}" status="i"> 18 18 <div id="maintenanceAction${i}"> 19 <g:hiddenField name='expandableMaintenanceActionList[${i}].id' value='${maintenanceAction.id}'/> 20 <g:textField name='expandableMaintenanceActionList[${i}].description' value='${maintenanceAction.description}'/> 21 <input type="hidden" name='expandableMaintenanceActionList[${i}].deleted' id='expandableMaintenanceActionList[${i}].deleted' value='false'/> 22 <span onClick="jQuery('#expandableMaintenanceActionList\\[${i}\\]\\.deleted').val('true'); jQuery('#maintenanceAction${i}').hide()"><img src="${resource(dir:'images/skin', file:'database_delete.png')}" /></span> 19 <g:hiddenField name='maintenanceActionLazyList[${i}].id' value='${ma.id}'/> 20 <g:textField name='maintenanceActionLazyList[${i}].description' value='${ma.description}'/> 21 <input type="hidden" name='maintenanceActionLazyList[${i}].deleted' id='maintenanceActionLazyList[${i}].deleted' value='false'/> 22 <span onClick="jQuery('#maintenanceActionLazyList\\[${i}\\]\\.deleted').val('true'); jQuery('#maintenanceAction${i}').hide()"> 23 <img src="${resource(dir:'images/skin', file:'database_delete.png')}" /> 24 </span> 23 25 </div> 24 26 </g:each>
Note: See TracChangeset
for help on using the changeset viewer.