2 function chLocation(newLocation) { document.location = newLocation; }
5 <table cellspacing="0" cellpadding="7" border="0" width="720">
8 {if $user->can('manage_tasks')}
10 {$forms.tasksForm.open} {* tasksForm consists only of one dropdown group control *}
13 <td align="center">{$i18n.label.group}: {$forms.tasksForm.group.control}</td>
16 {$forms.tasksForm.close}
19 <table cellspacing="1" cellpadding="3" border="0" width="100%">
21 <tr><td class="sectionHeaderNoBorder">{$i18n.form.tasks.active_tasks}</td></tr>
24 <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
25 <td width="35%" class="tableHeader">{$i18n.label.description}</td>
26 <td class="tableHeader">{$i18n.label.edit}</td>
27 <td class="tableHeader">{$i18n.label.delete}</td>
30 {foreach $active_tasks as $task}
31 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
32 <td>{$task.name|escape}</td>
33 <td>{$task.description|escape}</td>
34 <td><a href="task_edit.php?id={$task.id}">{$i18n.label.edit}</a></td>
35 <td><a href="task_delete.php?id={$task.id}">{$i18n.label.delete}</a></td>
43 <td align="center"><br>
44 <form><input type="button" onclick="chLocation('task_add.php');" value="{$i18n.button.add}"></form>
50 <table cellspacing="1" cellpadding="3" border="0" width="100%">
51 <tr><td class="sectionHeaderNoBorder">{$i18n.form.tasks.inactive_tasks}</td></tr>
53 <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
54 <td width="35%" class="tableHeader">{$i18n.label.description}</td>
55 <td class="tableHeader">{$i18n.label.edit}</td>
56 <td class="tableHeader">{$i18n.label.delete}</td>
58 {foreach $inactive_tasks as $task}
59 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
60 <td>{$task.name|escape}</td>
61 <td>{$task.description|escape}</td>
62 <td><a href="task_edit.php?id={$task.id}">{$i18n.label.edit}</a></td>
63 <td><a href="task_delete.php?id={$task.id}">{$i18n.label.delete}</a></td>
70 <td align="center"><br>
71 <form><input type="button" onclick="chLocation('task_add.php');" value="{$i18n.button.add}"></form>
77 <table cellspacing="1" cellpadding="3" border="0" width="100%">
79 <td class="tableHeader">{$i18n.label.thing_name}</td>
80 <td class="tableHeader">{$i18n.label.description}</td>
83 {foreach $active_tasks as $task}
84 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
85 <td>{$task.name|escape}</td>
86 <td>{$task.description|escape}</td>