Refactor export.tpl to use rights checks (#60)
[timetracker.git] / WEB-INF / templates / export.tpl
1 {$forms.exportForm.open}
2 <table cellspacing="0" cellpadding="7" border="0" width="720">
3   <tr>
4     <td align="center">
5 {if $user->can('export_data')}
6       <table border="0" width="60%">
7         <colgroup>
8           <col width="50%">
9           <col width="50%">
10         </colgroup>
11         <tr><td colspan="2">{$i18n.form.export.hint}<br></td></tr>
12         <tr><td colspan="2">&nbsp;</td></tr>
13         <tr>
14           <td align="right">{$i18n.form.export.compression}:</td>
15           <td>{$forms.exportForm.compression.control}</td>
16         </tr>
17         <tr><td height="50" align="center" colspan="2">{$forms.exportForm.btn_submit.control}</td></tr>
18       </table>
19 {/if}
20     </td>
21   </tr>
22 </table>
23 {$forms.exportForm.close}