diff --git a/templates/ktcore/workflow/documentWorkflow.smarty b/templates/ktcore/workflow/documentWorkflow.smarty index f7b65b2..a382fb0 100644 --- a/templates/ktcore/workflow/documentWorkflow.smarty +++ b/templates/ktcore/workflow/documentWorkflow.smarty @@ -12,27 +12,6 @@ lifecycle of the document.{/i18n}

{i18n}Document has no assigned workflow.{/i18n}

-{if $aWorkflows} -
-
{i18n}Start workflow on document{/i18n} - - -{entity_select entities=$aWorkflows name=fWorkflowId} -
- -
-
-
-{else} -

{i18n}No defined workflows{/i18n}

-
-

{i18n}There are no defined workflows which can be started on this -document. An administrator can create workflows to map the lifecycle of -a document. Contact your administrator to discuss -workflows.{/i18n}

-
-{/if} - {else}

{i18n}Current workflow settings{/i18n}

@@ -56,5 +35,42 @@ workflows.{/i18n}

{/if} +{/if} +
+{if !$oWorkflow} + {i18n}Start workflow on document{/i18n} + {assign var=none value=""} +{else} + {i18n}Change workflow on document{/i18n} + {assign var=none value=true} {/if} +{if $aWorkflows} +{if $bHasPerm} +
+ + +{entity_select entities=$aWorkflows name=fWorkflowId none=$none} +
+{if !$oWorkflow} + +{else} + +{/if} +
+
+{else} +
+

{i18n}You do not have permission to change the workflow that is assigned to this document.{/i18n}

+
+{/if} +{else} +

{i18n}No defined workflows{/i18n}

+
+

{i18n}There are no defined workflows which can be started on this +document. An administrator can create workflows to map the lifecycle of +a document. Contact your administrator to discuss +workflows.{/i18n}

+
+{/if} +