Added a capability to add attachment on project_add.php.
[timetracker.git] / WEB-INF / templates / time_delete.tpl
index 946a21e..41b7a4e 100644 (file)
 {if (($smarty.const.TYPE_DURATION == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
     <td class="tableHeader" align="center">{$i18n.label.duration}</td>
 {/if}
-       <td class="tableHeader" align="center">{$i18n.label.note}</td>
+    <td class="tableHeader" align="center">{$i18n.label.note}</td>
   </tr>
-  <tr bgcolor="{cycle values="#f5f5f5,#ccccce"}">
+  <tr>
 {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
-    <td>{$time_rec.project_name|escape:'html'}</td>
+    <td>{$time_rec.project_name|escape}</td>
 {/if}
 {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
-    <td>{$time_rec.task_name|escape:'html'}</td>
+    <td>{$time_rec.task_name|escape}</td>
 {/if}
 {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
     <td align="right">{if $time_rec.start}{$time_rec.start}{else}&nbsp;{/if}</td>
     <td align="right">{if $time_rec.finish<>$time_rec.start}{$time_rec.finish}{else}&nbsp;{/if}</td>
 {/if}
 {if (($smarty.const.TYPE_DURATION == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
-    <td align="right">{if $time_rec.duration<>'0:00'}{$time_rec.duration}{else}<font color="#ff0000">{$i18n.form.time.uncompleted}</font>{/if}</td>
+    <td align="right">{if ($time_rec.duration == '0:00' && $time_rec.start <> '')}<font color="#ff0000">{$i18n.form.time.uncompleted}</font>{else}{$time_rec.duration}{/if}</td>
 {/if}
-    <td>{if $time_rec.comment}{$time_rec.comment|escape:'html'}{else}&nbsp;{/if}</td>
+    <td>{if $time_rec.comment}{$time_rec.comment|escape}{else}&nbsp;{/if}</td>
   </tr>
   </table>
   <table width="100%">
@@ -47,4 +47,4 @@
   </td>
 </tr>
 </table>
-{$forms.timeRecordForm.close}
\ No newline at end of file
+{$forms.timeRecordForm.close}