71cc13a335e155b652822f172d0bcbcf2bf0bb48
[timetracker.git] / WEB-INF / templates / notifications.tpl
1 {$forms.notificationsForm.open}
2 <table cellspacing="0" cellpadding="7" border="0" width="720">
3   <tr>
4     <td valign="top">
5 {if $user->canManageTeam()}
6       <table cellspacing="1" cellpadding="3" border="0" width="100%">
7         <tr>
8           <td class="tableHeader">{$i18n.label.thing_name}</td>
9           <td class="tableHeader">{$i18n.label.cron_schedule}</td>
10           <td class="tableHeader">{$i18n.label.email}</td>
11           <td class="tableHeader">{$i18n.label.condition}</td>
12           <td class="tableHeader">{$i18n.label.edit}</td>
13           <td class="tableHeader">{$i18n.label.delete}</td>
14         </tr>
15   {if $notifications}
16     {foreach $notifications as $notification}
17         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
18           <td>{$notification['name']|escape}</td>
19           <td>{$notification['cron_spec']|escape}</td>
20           <td>{$notification['email']|escape}</td>
21           <td>{$notification['report_condition']|escape}</td>
22           <td><a href="notification_edit.php?id={$notification['id']}">{$i18n.label.edit}</a></td>
23           <td><a href="notification_delete.php?id={$notification['id']}">{$i18n.label.delete}</a></td>
24         </tr>
25     {/foreach}
26   {/if}
27       </table>
28
29       <table width="100%">
30         <tr><td align="center"><br>{$forms.notificationsForm.btn_add.control}</td></tr>
31       </table>
32 {/if}
33     </td>
34   </tr>
35 </table>
36 {$forms.notificationsForm.close}