From cb523b782f3a741704866da7f0b3f34419af2dfd Mon Sep 17 00:00:00 2001 From: nbm Date: Wed, 5 Oct 2005 07:21:06 +0000 Subject: [PATCH] Workflow management templates --- templates/ktcore/workflow/editState.smarty | 34 ++++++++++++++++++++++++++++++++++ templates/ktcore/workflow/editTransition.smarty | 23 +++++++++++++++++++++++ templates/ktcore/workflow/editWorkflow.smarty | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ templates/ktcore/workflow/listWorkflows.smarty | 19 +++++++++++++++++++ 4 files changed, 142 insertions(+), 0 deletions(-) create mode 100644 templates/ktcore/workflow/editState.smarty create mode 100644 templates/ktcore/workflow/editTransition.smarty create mode 100644 templates/ktcore/workflow/editWorkflow.smarty create mode 100644 templates/ktcore/workflow/listWorkflows.smarty diff --git a/templates/ktcore/workflow/editState.smarty b/templates/ktcore/workflow/editState.smarty new file mode 100644 index 0000000..edb1b05 --- /dev/null +++ b/templates/ktcore/workflow/editState.smarty @@ -0,0 +1,34 @@ +

State: {$oState->getName()|escape}

+ +

Edit state properties

+ +
+ + + + + +
+ +{if $aTransitionsTo} +

Transitions to this state

+ + + +{/if} + +

Transitions

+
+ + + +{entity_checkboxes entities=$aTransitions name="fTransitionIds" multiple="true" selected=$aTransitionsSelected} + +
diff --git a/templates/ktcore/workflow/editTransition.smarty b/templates/ktcore/workflow/editTransition.smarty new file mode 100644 index 0000000..31e9ebd --- /dev/null +++ b/templates/ktcore/workflow/editTransition.smarty @@ -0,0 +1,23 @@ +

Transition: {$oTransition->getName()|escape}

+ +

Edit transition properties

+ +
+ + + + + + + + + + + + + + +
Name
Target State{entity_select entities=$aStates selected=$oTransition->getTargetStateId() name="fTargetStateId"}
Guard Permission{entity_select entities=$aPermissions selected=$oTransition->getGuardPermissionId() name="fPermissionId"}
+ +
+ diff --git a/templates/ktcore/workflow/editWorkflow.smarty b/templates/ktcore/workflow/editWorkflow.smarty new file mode 100644 index 0000000..a2ce006 --- /dev/null +++ b/templates/ktcore/workflow/editWorkflow.smarty @@ -0,0 +1,66 @@ +

Workflow: {$oWorkflow->getName()|escape}

+ +

Edit workflow properties

+ +
+ + + + +
+ +

States

+ +{if $aStates} +

Existing states

+ + +{/if} + +

Create a new state

+ +
+ + + + +
+ +

Transitions

+ +{if $aTransitions} +

Existing transitions

+ + +{/if} + +

Create a new transition

+ +
+ + + + + + + + + + + + +
Name
Target State{entity_select entities=$aStates name="fTargetStateId"}
Guard permission{entity_select entities=$aPermissions name="fPermissionId"}
+ +
diff --git a/templates/ktcore/workflow/listWorkflows.smarty b/templates/ktcore/workflow/listWorkflows.smarty new file mode 100644 index 0000000..0d5a74b --- /dev/null +++ b/templates/ktcore/workflow/listWorkflows.smarty @@ -0,0 +1,19 @@ +

Workflow

+ +{if $aWorkflow} +

Existing workflows

+ + +{/if} + +

Create a new workflow

+ +
+ + + +
-- libgit2 0.21.4