source: trunk/workflow/templates/default/admin_activities.tpl @ 795

Revision 795, 14.8 KB checked in by viani, 15 years ago (diff)

Ticket #488 - Inclusão do módulo workflow no ramo trunk do repositório Expresso.

  • Property svn:executable set to *
Line 
1<script language="javascript1.2" src="workflow/js/jscode/participants.js"></script>
2<script language="javascript1.2" src="workflow/js/jscode/adminInterface.js"></script>
3<div style="color:red; text-align:center">{message}</div>
4<div>
5        <div>
6                {proc_bar}
7        </div>
8        <div>
9                {errors}
10        </div>
11</div>
12<br />
13<form action="{form_details_action}" method="post">
14<input type="hidden" name="p_id" value="{p_id}" />
15<input type="hidden" name="activity_id" value="{activity_id}" />
16<input type="hidden" name="where2" value="{where2}" />
17<input type="hidden" name="sort_mode2" value="{sort_mode2}" />
18<input type="hidden" name="find" value="{find}" />
19<input type="hidden" name="where" value="{where}" />
20<input type="hidden" name="sort_mode" value="{sort_mode}" />
21<input type="hidden" name="filter_type" value="{filter_type_value}" />
22<input type="hidden" name="filter_interactive" value="{filter_interactive_value}" />
23<input type="hidden" name="filter_autoroute" value="{filter_autoroute_value}" />
24<input type="hidden" name="filter_trans_from" value="{filter_trans_from_value}" />
25<table id="activitiesPropertiesTable" style="border: 1px solid black;width:100%; margin-bottom:10px">
26        <tr class="th">
27                <td colspan="2" style="font-size: 120%; font-weight:bold">
28                                {lang_Add_or_edit_an_activity} - <a id="toggleLink" href="javascript:toggleTableVisibility('activitiesPropertiesTable')">Contrair</a>
29                </td>
30        </tr>
31        <tr class="row_on">
32          <td width="20%">{lang_Name}</td>
33          <td><input type="text" name="name" value="{name}" /></td>
34        </tr>
35        <tr class="row_off">
36          <td>{lang_Description}</td>
37          <td><textarea name="description" rows="4" cols="60">{description}</textarea></td>
38        </tr>
39        <tr class="row_on"> 
40        <td>{lang_Type}</td>
41                <td>
42                        <select name="type">
43                                <!-- BEGIN block_select_type -->
44                                        <option value="{type_value}" {type_selected}>{type_name}</option>
45                                <!-- END block_select_type -->
46                        </select>
47                </td>
48        </tr>
49        <tr class="row_off">
50         <td>{lang_Properties}</td>
51         <td>
52               <table cellpading="1" cellspacing="1">
53                        <tr class="row_off">
54                                <td colspan="4">{lang_users_can_act_on_activity_before_its_execution_with_form_and_after_by_sending_it_to_the_next_activity}</td>
55                        </tr>
56                        <tr class="row_on">
57                                <td>{img_interactive}</td>
58                                <td>{lang_Interactive}</td>
59                                <td><input type="checkbox" name="is_interactive" {checked_interactive} /></td>
60                                <td>{lang_interactive_activities_show_form_before_being_executed}</td>
61                        </tr>
62                        <tr class="row_on">
63                                <td>{img_transition_auto}</td>
64                                <td>{lang_auto_routed}</td>
65                                <td><input type="checkbox" name="is_autorouted" {checked_autorouted} /></td>
66                                <td>{lang_autorouted_activities_does_not_need_to_be_sent_by_any_user_after_their_execution}</td>
67                        </tr>
68               </table>
69         </td>
70       </tr>
71        <tr class="row_on">
72          <td>{lang_menu_path}</td>
73          <td><input type="text" name="menu_path" value="{menu_path}" /></td>
74        </tr>
75       <tr class="row_off">
76          <td>{lang_Add_transitions}</td>
77          <td>
78                <table border="0" width="70%">
79                        <tr>
80                                <td>
81                                        {lang_Add_transitions_from}:<br/>
82                                        {add_trans_from}
83                                </td>
84                                <td>
85                                        {lang_Add_transitions_to}:<br/>
86                                        {add_trans_to}
87                                </td>
88                        </tr>   
89                </table>
90          </td>
91        </tr>
92
93        <tr class="row_on">
94          <td>{lang_Roles_assigned_to_this_activity}</td>
95          <td>
96                <table style="border: 0;width:75%;">
97                <tr class="th">
98                        <th>{txt_read_only}</th>
99                        <th>{txt_role_name}</th>
100                        <th>&nbsp;</th>
101                </tr>
102          <!-- BEGIN block_activity_roles -->
103          <tr class="tr_activity_role">
104            <td width="25%" class="td_activity_role_ro" style="text-align:center"><input type="checkbox" name="activity_role_ro[{act_role_id}]" {act_role_ro_checked} disabled="disabled" /></td>
105            <td width="70%" class="td_activity_role_name">{act_role_name}</td>
106            <td width="5%" class="td_activity_role_del"><input type="checkbox" name="activity_role_delete[{act_role_id}]" {act_role_delete_checked} /></td>
107          </tr>
108          <!-- END block_activity_roles -->
109                <tr class="tr_activity_role">
110                        <td colspan="3" style="text-align:right"><input type="submit" name="remove_roles" value="{txt_Remove_selected_roles}"></td>
111                </tr>
112                </table>
113          </td>
114        </tr>
115        <tr class="row_off">
116
117          <td>{lang_Add_role}</td>
118          <td>
119                <table style="width=100%; border=0;">
120                <tr class="th">
121                        <th>{txt_Use_existing_roles}</th>
122                        <th>{lang_Add_new_role}</th>
123                </tr>
124                <tr>
125                        <td>
126          {txt_read_only}<input type="checkbox" name="userole_ro" {userole_ro_checked} />
127          <select name="userole">
128          <option value=""> </option>
129          <!-- BEGIN block_process_roles -->
130          <option value="{proc_roleId}">{proc_roleName}</option>
131          <!-- END block_process_roles -->
132          </select>
133                        </td>
134                        <td>
135          {txt_read_only}<input type="checkbox" name="newrole_ro" {userole_ro_checked} />
136          <input type="text" name="rolename" size="30"/>
137                        </td>
138                </tr>
139                <tr>
140                        <td>&nbsp;</td>
141                        <td>{lang_Description}<input type="text" name="roledescription" size="50"/></td>
142                </tr>
143                </table>
144          </td>
145        </tr>
146        <tr class="row_on">
147          <td>{lang_Agents_assigned_to_this_activity}</td>
148          <td>
149                <ul class="ul_activity_agents">
150          <!-- BEGIN block_activity_agents -->
151          <li class="li_activity_agent">{act_agent_type}&nbsp;&nbsp;[<a href="{act_agent_href}">{lang_delete}</a>]<br/>
152          <!-- END block_activity_agents -->
153                <ul>
154          </td>
155        </tr>
156        <tr class="row_off">
157          <td>{lang_Add_agent}</td>
158          <td>
159          <select name="useagent">
160          <option value="">{lang_None}</option>
161          <!-- BEGIN block_select_agents -->
162          <option value="{select_agentType}">{select_agentType}</option>
163          <!-- END block_select_agents -->
164          </select>
165          </td>
166        </tr>
167       <tr class="row_on">
168         <td>{lang_Default_User}</td>
169         <td>
170                        <input type="hidden" name="default_user" id="default_user" value="{wf_default_user}" />
171                        <input type="input" name="default_user_desc" id="default_user_desc" value="{wf_default_user_desc}" readonly="true" size="40" />
172                        <a href="javascript:void(0)" onclick="openParticipants('default_user', 'uid=1&hidegroups=1');"><img border="0" src="workflow/templateFile.php?file=images/add_user.png" /></a>
173                        <button onclick="document.getElementById('default_user_desc').value=''; document.getElementById('default_user').value='*'; return false">Sem usuário padrão</button>
174                <br />
175                {lang_the_default_user_will_only_be_set_if_he_is_mapped_to_a_role_on_the_activity}<br />
176                {lang_setNextUser_directives_can_override_it}
177         </td>
178       </tr>
179        {agents_config_rows}
180        <tr class="th">
181                <td colspan="2">
182                        <table width="100%" cellpadding="0" cellspacing="0">
183                        <tr><td style="font-size: 120%; font-weight:bold">
184                                <input type="submit" name="save_act" value="{lang_save}" />
185                        </td><td style="text-align: right;font-size: 120%; font-weight:bold">
186                                <input type="submit" name="new_activity" value="{lang_new}" />
187                        </td></tr>
188                        </table>
189                </td>
190        </tr>
191
192</table>
193</form>
194
195<div style="border: 1px solid black;margin-bottom:10px">
196<form action="{form_process_activities_action}" method="post">
197<div class="th" style="font-weight:bold; font-size:120%; margin-bottom:4px">{lang_Process_activities}</div>
198<input type="hidden" name="p_id" value="{p_id}" />
199<input type="hidden" name="activity_id" value="{activity_id}" />
200<input type="hidden" name="where2" value="{where2}" />
201<input type="hidden" name="sort_mode2" value="{sort_mode2}" />
202<input type="hidden" name="filter_trans_from" value="{filter_trans_from_value}" />
203<table width="100%" cellpadding="0" cellspacing="0">
204<tr class="th">
205        {left_arrow}
206        <td style="text-align:center">
207                {lang_Type}:
208                        <select name="filter_type" >
209                                <option {selected_filter_type_all} value="">{lang_All}</option>
210                                <!-- BEGIN block_select_filter_type -->
211                                <option {selected_filter_type} value="{filter_type_en_name}">{filter_type_name}</option>
212                                <!-- END block_select_filter_type -->
213                        </select>
214                {lang_Interactivity}:
215                        <select name="filter_interactive">
216                                <option {selected_filter_interactive_all} value="">{lang_All}</option>
217                                <!-- BEGIN block_select_filter_interactive -->
218                                <option {selected_filter_interactive} value="{filter_interactive_value}">{filter_interactive_name}</option>
219                                <!-- END block_select_filter_interactive -->
220                        </select>
221                {lang_Routing}:
222                        <select name="filter_autoroute">
223                                <option {selected_filter_autoroute_all} value="">{lang_All}</option>
224                                <!-- BEGIN block_select_filter_autoroute -->
225                                <option {selected_filter_autoroute} value="{filter_autoroute_value}">{filter_autoroute_name}</option>
226                                <!-- END block_select_filter_autoroute -->
227                        </select>
228                {lang_Search}:&nbsp;
229                <input size="18" type="text" name="find" value="{find}" />
230                <input type="submit" name="filter" value="{lang_Filter}" />
231        </td>
232        {right_arrow}
233</tr>
234</table>       
235</form>
236
237<form action="{form_process_activities_action}" method="post">
238<input type="hidden" name="find" value="{find}" />
239<input type="hidden" name="where" value="{where}" />
240<input type="hidden" name="sort_mode" value="{sort_mode}" />
241<input type="hidden" name="where2" value="{where2}" />
242<input type="hidden" name="sort_mode2" value="{sort_mode2}" />
243<input type="hidden" name="p_id" value="{p_id}" />
244<input type="hidden" name="activity_id" value="{activity_id}" />
245                                <input type="hidden" name="filter_type" value="{filter_type_value}" />
246                                <input type="hidden" name="filter_interactive" value="{filter_interactive_value}" />
247                                <input type="hidden" name="filter_autoroute" value="{filter_autoroute_value}" />
248<input type="hidden" name="filter_trans_from" value="{filter_trans_from_value}" />
249<div style="position:relative">
250<table border="0" width="100%">
251<!-- BEGIN block_process_activities_header -->
252<tr class="th" style="font-weight:bold">
253        <td style="width: 20px;" align="center">#</td>
254        <td style="width: 40%;">{header_name}</a></td>
255        <td align="center">{header_type}</a></td>
256        <td align="center">{header_interactive}</a></td>
257        <td align="center">{header_route}</a></td>
258        <td align="center">{header_default_user}</a></td>
259        <td width="70px">{lang_Action}</td>
260</tr>
261<!-- END block_process_activities_header -->
262<!-- BEGIN block_process_activities -->
263<tr bgcolor="{color_line}">
264        <td style="text-align:center;">
265          {act_flowNum}
266        </td>
267        <td>
268          <a href="{act_href}">{act_name}</a>
269          {no_roles}
270        </td>
271        <td style="text-align:center;">
272                {act_icon}
273        </td>
274        <td style="text-align:center;">
275          <input type="checkbox" name="activity_inter[{act_activity_id}]" {act_inter_checked} />
276        </td>
277        <td style="text-align:center;">
278          <input type="checkbox" name="activity_route[{act_activity_id}]" {act_route_checked} />
279        </td>
280        <td style="text-align:center;">
281          {act_default_user}
282        </td>
283        <td>
284                <a href="{act_href_edit}"><img src="{img_code}" alt="{lang_edit}" title="{lang_edit}" /></a>
285                {act_template}
286                <input style="position:absolute; right:5px" type="checkbox" name="activities[{act_activity_id}]" />
287        </td>
288</tr>
289<!-- END block_process_activities -->
290<!-- BEGIN block_process_activities_footer -->
291<tr class="th">
292<td colspan="7">
293        <input type="submit" name="update_act" value="{lang_update}" />
294        <input style="position:absolute; right:5px" type="submit" name="delete_act" value="{lang_Delete_selected}" />
295</td>
296</tr>
297<!-- END block_process_activities_footer -->
298</table>
299</div>
300</form>
301</div>
302
303<table border="0" width="100%" style="border: 1px solid black;">
304        <tr class="th">
305                <td colspan="2" style="font-size: 120%; font-weight:bold">
306                        {img_transition}{lang_Process_transitions}
307                </td>
308        </tr>
309        <tr valign="top">
310                <td width="50%">
311                        <form action="{form_list_transitions_action}" method="post">
312                                <input type="hidden" name="p_id" value="{p_id}" />
313                                <input type="hidden" name="activity_id" value="{activity_id}" />
314                                <input type="hidden" name="find" value="{find2}" />
315                                <input type="hidden" name="where" value="{where2}" />
316                                <input type="hidden" name="sort_mode" value="{sort_mode}" />
317                                <input type="hidden" name="where2" value="{where2}" />
318                                <input type="hidden" name="sort_mode2" value="{sort_mode2}" />
319                                <input type="hidden" name="filter_type" value="{filter_type_value}" />
320                                <input type="hidden" name="filter_interactive" value="{filter_interactive_value}" />
321                                <input type="hidden" name="filter_autoroute" value="{filter_autoroute_value}" />
322                                <input type="hidden" name="find" value="{find_value}" />
323                        <table border="0" width="100%">
324                                <tr class="th">
325                                        <td>
326                                                <span style="font-weight:bold; margin-right:15px">{lang_List_of_transitions}</span>{lang_From}: {filter_trans_from}
327                                        </td>
328                                        <td>
329                                                <input type="submit" name="filter" value="{lang_Filter}" />
330                                        </td>
331                                </tr>
332                                <!-- BEGIN block_transitions_table -->
333                                <tr bgcolor="{color_line}">
334                                        <td>
335                                                <a href="{trans_href_from}">{trans_actFromName}</a>
336                                                <img src='{trans_arrow}' alt='{lang_To}' />
337                                                <a href="{trans_href_to}">{trans_actToName}</a>
338                                        </td>
339                                        <td>
340                                                <input type="checkbox" name="transition[{trans_actFromId}_{trans_actToId}]" />
341                                        </td>
342                                </tr>
343                                <!-- END block_transitions_table -->
344                                <!-- BEGIN block_transitions_table_footer -->
345                                <tr class="th">
346                                        <td align="right">
347                                                {img_transition_delete}
348                                        </td>
349                                        <td style="text-align:right;"><input type="submit" name="delete_tran" value="{lang_Delete_selected}" /></td>
350                                </tr>
351                                <!-- END block_transitions_table_footer -->
352                                </table>
353                        </form>         
354                </td>
355                <td width="50%" valign="top" align="left">
356                        <form action="{form_list_transitions_action}" method="post">
357                        <input type="hidden" name="p_id" value="{p_id}" />
358                        <input type="hidden" name="activity_rd" value="{activity_id}" />
359                        <input type="hidden" name="find" value="{find2}" />
360                        <input type="hidden" name="where" value="{where2}" />
361                        <input type="hidden" name="sort_mode" value="{sort_mode}" />
362                        <input type="hidden" name="where2" value="{where2}" />
363                        <input type="hidden" name="sort_mode2" value="{sort_mode2}" />
364                        <input type="hidden" name="filter_type" value="{filter_type_value}" />
365                        <input type="hidden" name="filter_interactive" value="{filter_interactive_value}" />
366                        <input type="hidden" name="filter_autoroute" value="{filter_autoroute_value}" />
367                        <input type="hidden" name="filter_trans_from" value="{filter_trans_from_value}" />
368                        <input type="hidden" name="find" value="{find_value}" />
369                        <table class="normal" width="100%">
370                        <tr class="th" style="font-weight:bold">
371                                <td colspan="2">
372                                        {lang_Add_a_transition}
373                                </td>
374                        </tr>
375                        <tr class="row_off">
376                          <td>
377                          {lang_From}:
378                          </td>
379                          <td width="90%">
380                                {add_a_trans_from}
381                          </td>
382                        </tr>
383                        <tr class="row_on">
384                          <td>
385                          {lang_To}:
386                          </td>
387                          <td>
388                                {add_a_trans_to}
389                          </td>
390                        </tr>
391                        <tr class="th">
392                          <td align="right">
393                                {img_transition_add}
394                          </td>
395                          <td>
396                                <input type="submit" name="add_trans" value="{lang_Add_Transition}" />
397                          </td>
398                        </tr>
399                        </table>       
400                        </form>
401                </td>
402        </tr>
403</table>       
404<script language="javascript">
405if (!{expandTable})
406        toggleTableVisibility('activitiesPropertiesTable');
407</script>
Note: See TracBrowser for help on using the repository browser.