source: branches/1.2/workflow/templates/default/after_running.tpl @ 1349

Revision 1349, 3.0 KB checked in by niltonneto, 15 years ago (diff)

Ticket #561 - Inclusão do módulo Workflow faltante nessa versão.

  • Property svn:executable set to *
Line 
1{* define the variables depending on the event (completed or cancelled) *}
2{if $activityEvent == 'completed'}
3        {assign var="eventImage" value="apply.png"}
4        {assign var="eventTitle" value="Atividade Completada"}
5{else}
6        {assign var="eventImage" value="button_cancel.png"}
7        {assign var="eventTitle" value="Atividade Cancelada"}
8{/if}
9
10{$header}
11
12{* activity errors are displayed here *}
13{if count($activityErrors) > 0}
14        <div id="wf_run_activity_message">
15        {foreach from=$activityErrors item=activityError}
16                <p>{$activityError}</p>
17        {/foreach}
18        </div>
19{/if}
20
21<br/>
22<div id="activityCompleteMessage" align="center">{$activityCompleteMessage}</div>
23<br/><br/>
24
25<table style="border: 1px solid black;margin:0 auto;width:300px;" align="center">
26<tr class="th">
27        <td colspan="2" style="font-size: 18px; font-weight:bold; text-align:center; font-family: Verdana, Arial, Helvetica, sans-serif;">
28                <img align="middle" border="0" src="workflow/templateFile.php?file=images/{$eventImage}">
29        &nbsp;&nbsp;&nbsp;
30                {$eventTitle}
31        </td>
32</tr>
33<tr class="row_on">
34        <td class="th">Processo:</td>
35        <td>{$processName} {$processVersion}</td>
36</tr>
37<tr class="row_off">
38        <td class="th">Atividade:</td>
39        <td>{$activityName}</td>
40</tr>
41<tr class="row_on">
42        <td class="th">Ir Para:</td>
43        <td>{html_options name="redirectionMenu" id="redirectionMenu" options=$activityList onchange="redirectMenu();"}</td>
44</tr>
45</table>
46<br />
47<br/>
48<table style="border: 0px;margin:0 auto; width:600px" align="center">
49        <tr>
50                <td align="center">
51                        <a href="workflow/index.php?start_tab=0">
52                                <img border=0 src="workflow/templateFile.php?file=images/inbox.png" alt="Atividades Pendentes" title="Atividades Pendentes">
53                                <br/>
54                                Tarefas Pendentes
55                        </a>
56                </td>
57                <td align="center">
58                        <a href="workflow/index.php?start_tab=1">
59                                <img border=0 src="workflow/templateFile.php?file=images/process.png" alt="Lista de processos" title="Lista de processos">
60                                <br/>
61                                Processos
62                        </a>
63                </td>
64                <td align="center">
65                        <a href="workflow/index.php?start_tab=2">
66                                <img border=0 src="workflow/templateFile.php?file=images/goto.png" alt="Acompanhamento das atividades" title="Acompanhamento das atividades">
67                                <br/>
68                                Acompanhamento
69                        </a>
70                </td>
71                <td align="center">
72                        <a href="workflow/index.php?start_tab=3">
73                                <img border=0 src="workflow/templateFile.php?file=images/network.png" alt="Aplicações Externas" title="Aplicações Externas">
74                                <br/>
75                                Aplicações Externas
76                        </a>
77                </td>
78                <td align="center">
79                        <a href="workflow/index.php?start_tab=4">
80                                <img border=0 src="workflow/templateFile.php?file=images/organograma.png" alt="Organograma" title="Organograma">
81                                <br/>
82                                Organograma
83                        </a>
84                </td>
85        </tr>
86</table>
87<br/>
88<br/>
89
90<script language="javascript1.2">
91{literal}
92function redirectMenu()
93{
94        var element = document.getElementById("redirectionMenu");
95        var activityID = element.options[element.options.selectedIndex].value;
96        location.href = "{/literal}{$activityBaseURL}{literal}/index.php?menuaction=workflow.run_activity.go&activity_id=" + activityID;
97}
98{/literal}
99</script>
Note: See TracBrowser for help on using the repository browser.