~eventum-developers/eventum/trunk

« back to all changes in this revision

Viewing changes to templates/manage/time_tracking.tpl.html

  • Committer: Elan Ruusamäe
  • Date: 2015-04-03 17:16:08 UTC
  • Revision ID: glen@delfi.ee-20150403171608-u41tcmt49uayv0g4
discard {literal} from templates

it is rarely needed in Smarty3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{extends "manage/manage.tpl.html"}
2
2
 
3
3
{block "manage_content"}
4
 
  {literal}
 
4
 
5
5
  <script type="text/javascript">
6
6
  <!--
7
7
  function validateForm()
8
8
  {
9
9
      if (Validation.isFieldWhitespace('title')) {
10
 
          alert('{/literal}{t escape=js}Please enter the title of this time tracking category{/t}{literal}');
 
10
          alert('{t escape=js}Please enter the title of this time tracking category{/t}');
11
11
          Validation.selectField('title');
12
12
          return false;
13
13
      }
17
17
  function checkDelete()
18
18
  {
19
19
      if (!Validation.hasOneChecked('items[]')) {
20
 
          alert('{/literal}{t escape=js}Please select at least one of the time tracking categories.{/t}{literal}');
 
20
          alert('{t escape=js}Please select at least one of the time tracking categories.{/t}');
21
21
          return false;
22
22
      }
23
 
      if (!confirm('{/literal}{t escape=js}This action will remove the selected entries.{/t}{literal}')) {
 
23
      if (!confirm('{t escape=js}This action will remove the selected entries.{/t}')) {
24
24
          return false;
25
25
      } else {
26
26
          return true;
36
36
  });
37
37
  //-->
38
38
  </script>
39
 
  {/literal}
 
39
 
40
40
          <form id="time_tracking_form" method="post">
41
41
          <input type="hidden" name="prj_id" value="{$project.prj_id}">
42
42
          {if $smarty.get.cat|default:'' == 'edit'}