2 function chLocation(newLocation) { document.location = newLocation; }
5 <table class="mobile-table">
8 {if $user->can('manage_tasks')}
9 <table class="mobile-table-details">
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>
18 {foreach $active_tasks as $task}
19 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
20 <td><a href="task_edit.php?id={$task.id}">{$task.name|escape}</a></td>
21 <td>{$task.description|escape}</td>
29 <td align="center"><br>
30 <form><input type="button" onclick="chLocation('task_add.php');" value="{$i18n.button.add}"></form>
36 <table cellspacing="1" cellpadding="3" border="0" width="100%">
37 <tr><td class="sectionHeaderNoBorder">{$i18n.form.tasks.inactive_tasks}</td></tr>
39 <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
40 <td width="35%" class="tableHeader">{$i18n.label.description}</td>
42 {foreach $inactive_tasks as $task}
43 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
44 <td><a href="task_edit.php?id={$task.id}">{$task.name|escape}</a></td>
45 <td>{$task.description|escape}</td>
52 <td align="center"><br>
53 <form><input type="button" onclick="chLocation('task_add.php');" value="{$i18n.button.add}"></form>
59 <table cellspacing="1" cellpadding="3" border="0" width="100%">
61 <td class="tableHeader">{$i18n.label.thing_name}</td>
62 <td class="tableHeader">{$i18n.label.description}</td>
65 {foreach $active_tasks as $task}
66 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
67 <td>{$task.name|escape}</td>
68 <td>{$task.description|escape}</td>