2 function chLocation(newLocation) { document.location = newLocation; }
5 <table class="mobile-table">
8 {if $user->can('manage_projects')}
9 <table class="mobile-table-details">
10 {if $inactive_projects}
11 <tr><td class="sectionHeaderNoBorder">{$i18n.form.projects.active_projects}</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_projects as $project}
19 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
20 <td><a href="project_edit.php?id={$project.id}">{$project.name|escape}</a></td>
21 <td>{$project.description|escape}</td>
29 <td align="center"><br>
30 <form><input type="button" onclick="chLocation('project_add.php');" value="{$i18n.button.add}"></form>
35 {if $inactive_projects}
36 <table cellspacing="1" cellpadding="3" border="0" width="100%">
37 <tr><td class="sectionHeaderNoBorder">{$i18n.form.projects.inactive_projects}</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_projects as $project}
43 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
44 <td><a href="project_edit.php?id={$project.id}">{$project.name|escape}</a></td>
45 <td>{$project.description|escape}</td>
52 <td align="center"><br>
53 <form><input type="button" onclick="chLocation('project_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_projects as $project}
66 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
67 <td>{$project.name|escape}</td>
68 <td>{$project.description|escape}</td>