Changeset 17900
- Timestamp:
- 08/18/08 06:40:40 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/core/web/jsp/workflow/xsl/workflow_designer.xsl
r17043 r17900 40 40 <xsl:template match="workflow"><tr class="tableContent" align="left"> 41 41 <td class="tableContent"> 42 <xsl:variable name="mypos" select="position()" /> 43 <xsl:apply-templates select="workflow_id"> 44 <xsl:with-param name="pos" select="$mypos" /> 45 </xsl:apply-templates> 42 <input id="workflow{name}" name="workflow_id" type="radio" value="{workflow_id}" /> 46 43 </td> 47 44 <td class="tableContent"> … … 71 68 <xsl:template match="name"><xsl:apply-templates/></xsl:template> 72 69 73 <xsl:template match="workflow_id">74 <xsl:param name="pos" />75 <xsl:choose>76 <xsl:when test="$pos=1">77 <input name="workflow_id" type="radio" value="{.}" />78 </xsl:when>79 <xsl:otherwise>80 <input name="workflow_id" type="radio" value="{.}" />81 </xsl:otherwise>82 </xsl:choose>83 </xsl:template>84 85 70 <xsl:template name="no_workflows"> 86 71 <tr class="tableContent" align="left"> trunk/test/acceptance/src/net/project/test/acceptance/framework/PnetAcceptanceTestFramework.java
r17898 r17900 422 422 clickActionWorkflow(); 423 423 clickLinkWithExactText("Workflow Designer"); 424 assertLinkPresentWithExactText(name); 425 clickRadioOptionWithId("workflow" + name); 426 clickActionRemove(); 427 setExpectedJavaScriptConfirm("Remove this Workflow?", true); 428 assertTextPresent("There was a problem performing the remove"); 429 assertTextPresent("A workflow may not be removed while it is published"); 424 430 431 clickCancelActionbarButton(); 432 clickRadioOptionWithId("workflow" + name); 433 clickLinkWithExactText(name); 434 assertTextPresent("Change to unpublished"); 435 clickSubmitActionbarButton(); 436 clickLinkWithExactText("Workflow Designer"); 437 clickRadioOptionWithId("workflow" + name); 438 clickActionRemove(); 439 setExpectedJavaScriptConfirm("Remove this Workflow?", true); 425 440 426 441 assertLinkNotPresentWithExactText(name); 427 442 } 428 443 … … 757 772 assertLinkPresentWithExactText(newWorkflowName); 758 773 759 /*_dataCleaner.registerCreatedObject(760 new PnetWorkflowObject(existentProjectName, newWorkflowName)); */774 _dataCleaner.registerCreatedObject( 775 new PnetWorkflowObject(existentProjectName, newWorkflowName)); 761 776 762 777 return newWorkflowName;
