Initial repo created
[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.edit}</td>
12           <td class="tableHeader">{$i18n.label.delete}</td>
13         </tr>
14         {if $notifications}
15           {foreach $notifications as $notification}
16         <tr bgcolor="{cycle values="#f5f5f5,#dedee5"}">
17           <td>{$notification['name']|escape:'html'}</td>
18           <td>{$notification['cron_spec']|escape:'html'}</td>
19           <td>{$notification['email']|escape:'html'}</td>
20           <td><a href="notification_edit.php?id={$notification['id']}">{$i18n.label.edit}</a></td>
21           <td><a href="notification_delete.php?id={$notification['id']}">{$i18n.label.delete}</a></td>
22         </tr>
23           {/foreach}
24         {/if}
25       </table>
26     
27       <table width="100%">
28         <tr><td align="center"><br>{$forms.notificationsForm.btn_add.control}</td></tr>
29           </table>
30       {/if}
31     </td>
32   </tr>
33 </table>
34 {$forms.notificationsForm.close}