2 function chLocation(newLocation) { document.location = newLocation; }
5 <table cellspacing="0" cellpadding="7" border="0" width="720">
8 {if $user->can('manage_tasks')}
9 <table cellspacing="1" cellpadding="3" border="0" width="100%">
11 <tr><td class="sectionHeaderNoBorder">{$i18n.form.tasks.active_tasks}</td></tr>
14 <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
15 <td width="35%" class="tableHeader">{$i18n.label.description}</td>
16 <td class="tableHeader">{$i18n.label.edit}</td>
17 <td class="tableHeader">{$i18n.label.delete}</td>
20 {foreach $active_tasks as $task}
21 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
22 <td>{$task.name|escape}</td>
23 <td>{$task.description|escape}</td>
24 <td><a href="task_edit.php?id={$task.id}">{$i18n.label.edit}</a></td>
25 <td><a href="task_delete.php?id={$task.id}">{$i18n.label.delete}</a></td>
33 <td align="center"><br>
34 <form><input type="button" onclick="chLocation('task_add.php');" value="{$i18n.button.add}"></form>
40 <table cellspacing="1" cellpadding="3" border="0" width="100%">
41 <tr><td class="sectionHeaderNoBorder">{$i18n.form.tasks.inactive_tasks}</td></tr>
43 <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
44 <td width="35%" class="tableHeader">{$i18n.label.description}</td>
45 <td class="tableHeader">{$i18n.label.edit}</td>
46 <td class="tableHeader">{$i18n.label.delete}</td>
48 {foreach $inactive_tasks as $task}
49 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
50 <td>{$task.name|escape}</td>
51 <td>{$task.description|escape}</td>
52 <td><a href="task_edit.php?id={$task.id}">{$i18n.label.edit}</a></td>
53 <td><a href="task_delete.php?id={$task.id}">{$i18n.label.delete}</a></td>
60 <td align="center"><br>
61 <form><input type="button" onclick="chLocation('task_add.php');" value="{$i18n.button.add}"></form>
67 <table cellspacing="1" cellpadding="3" border="0" width="100%">
69 <td class="tableHeader">{$i18n.label.thing_name}</td>
70 <td class="tableHeader">{$i18n.label.description}</td>
73 {foreach $active_tasks as $task}
74 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
75 <td>{$task.name|escape}</td>
76 <td>{$task.description|escape}</td>