~eventum-developers/eventum/trunk

« back to all changes in this revision

Viewing changes to templates/manage/statuses.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 status.{/t}{literal}');
 
10
          alert('{t escape=js}Please enter the title of this status.{/t}');
11
11
          Validation.selectField('title');
12
12
          return false;
13
13
      }
14
14
      if (Validation.isFieldWhitespace('abbreviation')) {
15
 
          alert('{/literal}{t escape=js}Please enter the abbreviation of this status.{/t}{literal}');
 
15
          alert('{t escape=js}Please enter the abbreviation of this status.{/t}');
16
16
          Validation.selectField('abbreviation');
17
17
          return false;
18
18
      }
19
19
      if (Validation.isFieldWhitespace('rank')) {
20
 
          alert('{/literal}{t escape=js}Please enter the rank of this status.{/t}{literal}');
 
20
          alert('{t escape=js}Please enter the rank of this status.{/t}');
21
21
          Validation.selectField('rank');
22
22
          return false;
23
23
      }
24
24
      if (!Validation.hasOneSelected('projects[]')) {
25
 
          alert('{/literal}{t escape=js}Please assign the appropriate projects for this status.{/t}{literal}');
 
25
          alert('{t escape=js}Please assign the appropriate projects for this status.{/t}');
26
26
          Validation.selectField('projects[]');
27
27
          return false;
28
28
      }
29
29
      if (Validation.isFieldWhitespace('color')) {
30
 
          alert('{/literal}{t escape=js}Please enter the color of this status.{/t}{literal}');
 
30
          alert('{t escape=js}Please enter the color of this status.{/t}');
31
31
          Validation.selectField('color');
32
32
          return false;
33
33
      }
37
37
  function checkDelete()
38
38
  {
39
39
      if (!Validation.hasOneChecked('items[]')) {
40
 
          alert('{/literal}{t escape=js}Please select at least one of the statuses.{/t}{literal}');
 
40
          alert('{t escape=js}Please select at least one of the statuses.{/t}');
41
41
          return false;
42
42
      }
43
 
      if (!confirm("{/literal}{t escape=js}This action will remove the selected entries. This will also update any issues currently set to this status to a new status 'undefined'.{/t}{literal}")) {
 
43
      if (!confirm("{t escape=js}This action will remove the selected entries. This will also update any issues currently set to this status to a new status 'undefined'.{/t}")) {
44
44
          return false;
45
45
      } else {
46
46
          return true;
54
54
  });
55
55
  //-->
56
56
  </script>
57
 
  {/literal}
 
57
 
58
58
  <form name="status_form" method="post">
59
59
  {if $smarty.get.cat|default:'' == 'edit'}
60
60
  <input type="hidden" name="cat" value="update">