Work in progress on project attachments.
[timetracker.git] / WEB-INF / templates / project_files.tpl
1 <table cellspacing="0" cellpadding="7" border="0" width="720">
2   <tr>
3     <td valign="top">
4       <table cellspacing="1" cellpadding="3" border="0" width="100%">
5         <tr>
6           <td width="35%" class="tableHeader">{$i18n.label.image}</td>
7           <td width="35%" class="tableHeader">{$i18n.label.description}</td>
8 {if $can_manage}
9           <td class="tableHeader">{$i18n.label.edit}</td>
10           <td class="tableHeader">{$i18n.label.delete}</td>
11 {/if}
12         </tr>
13 {if $files}
14   {foreach $files as $file}
15         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
16           <td>{$file.name|escape}</td>
17           <td>{$file.description|escape}</td>
18     {if $can_manage}
19           <td><a href="file_edit.php?id={$file.id}">{$i18n.label.edit}</a></td>
20           <td><a href="file_delete.php?id={$file.id}">{$i18n.label.delete}</a></td>
21     {/if}
22         </tr>
23   {/foreach}
24 {/if}
25       </table>
26     </td>
27   </tr>
28 </table>
29
30 {if $can_manage}
31 {$forms.fileUploadForm.open}
32 <table cellspacing="0" cellpadding="7" border="0" width="720">
33   <tr>
34     <td align="center">
35       <table border="0" width="60%">
36         <tr>
37             <td align="right">{$i18n.label.description}:</td>
38             <td>{$forms.fileUploadForm.description.control}</td>
39             <td align="left">{$forms.fileUploadForm.newfile.control}</td>
40         </tr>
41         <tr><td height="50" align="center" colspan="3">{$forms.fileUploadForm.btn_submit.control}</td></tr>
42       </table>
43     </td>
44   </tr>
45 </table>
46 {$forms.fileUploadForm.close}
47 {/if}