Commit 8067cf912d17bbff34ced4bbe803682070cf6904
1 parent
9cb27927
New world order changes - descriptive text, no tables, and widgets.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4074 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
26 additions
and
19 deletions
templates/ktcore/workflow/documentWorkflow.smarty
| 1 | -<h1>Document Workflow</h1> | |
| 1 | +<h2>Document Workflow</h2> | |
| 2 | + | |
| 3 | +<p class="descriptiveText"> | |
| 4 | +Workflow is a description of a document's lifecycle. It is made up of | |
| 5 | +workflow states, which describe where in the lifecycle the document is, | |
| 6 | +and workflow transitions, which describe the next steps within the | |
| 7 | +lifecycle of the document. | |
| 8 | +</p> | |
| 2 | 9 | |
| 3 | 10 | {if !$oWorkflow} |
| 4 | -<h2>No workflow</h2> | |
| 11 | +<h3>No workflow</h3> | |
| 5 | 12 | |
| 6 | 13 | <p>Document has no assigned workflow.</p> |
| 7 | 14 | |
| 8 | 15 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 16 | +<fieldset><legend>Start workflow on document</legend> | |
| 9 | 17 | <input type="hidden" name="action" value="startWorkflow" /> |
| 10 | 18 | <input type="hidden" name="fDocumentId" value="{$oDocument->getId()}" /> |
| 11 | 19 | {entity_select entities=$aWorkflows name=fWorkflowId} |
| 20 | +<div class="form_actions"> | |
| 12 | 21 | <input type="submit" name="submit" value="Start Workflow" /> |
| 22 | +</div> | |
| 23 | +</fieldset> | |
| 13 | 24 | </form> |
| 14 | 25 | |
| 15 | 26 | {else} |
| 16 | 27 | |
| 17 | -<h2>Current workflow settings</h2> | |
| 18 | - | |
| 19 | -<table class="prettysw" cellpadding="0" cellspacing="0"> | |
| 20 | -<tr><th>Workflow</th><td>{$oWorkflow->getName()}</td></tr> | |
| 21 | -<tr><th>State</th><td>{$oState->getName()}</td></tr> | |
| 22 | -</table> | |
| 28 | +<h3>Current workflow settings</h3> | |
| 23 | 29 | |
| 24 | -<h2>Transition to another workflow state</h2> | |
| 30 | +<dl class="metadata"> | |
| 31 | +<dt>Workflow</dt><dd>{$oWorkflow->getName()}</dd> | |
| 32 | +<dt>State</dt><dd>{$oState->getName()}</dd> | |
| 33 | +</dl> | |
| 25 | 34 | |
| 35 | +{if $aTransitions} | |
| 26 | 36 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 27 | 37 | <input type="hidden" name="action" value="performTransition" /> |
| 28 | 38 | <input type="hidden" name="fDocumentId" value="{$oDocument->getId()}" /> |
| 29 | -<table class="prettysw" cellpadding="0" cellspacing="0"> | |
| 30 | -<tr><th>Transition to perform</th><td> | |
| 31 | -{entity_radios entities=$aTransitions name=fTransitionId assign=aRadio method=showDescription} | |
| 32 | -{foreach from=$aRadio item=sRadio} | |
| 33 | -{$sRadio}<br /> | |
| 39 | +<fieldset><legend>Transition to another workflow state</legend> | |
| 40 | +{foreach from=$transition_fields item=oWidget } | |
| 41 | + {$oWidget->render()} | |
| 34 | 42 | {/foreach} |
| 35 | -</td></tr> | |
| 36 | -<tr><th>Reason for transition</th><td><input type="textbox" name="fComments" | |
| 37 | -/></td></tr> | |
| 38 | -</table> | |
| 43 | +<div class="form_actions"> | |
| 39 | 44 | <input type="submit" name="submit" value="Perform Transition" /> |
| 45 | +</div> | |
| 46 | +</fieldset> | |
| 40 | 47 | </form> |
| 41 | - | |
| 48 | +{/if} | |
| 42 | 49 | |
| 43 | 50 | {/if} | ... | ... |