~eventum-developers/eventum/trunk

« back to all changes in this revision

Viewing changes to templates/manage/resolution.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 resolution.{/t}{literal}');
 
10
              alert('{t escape=js}Please enter the title of this resolution.{/t}');
11
11
              Validation.selectField('title');
12
12
              return false;
13
13
          }
14
14
          if (Validation.isFieldWhitespace('rank')) {
15
 
              alert('{/literal}{t escape=js}Please enter the rank of this resolution.{/t}{literal}');
 
15
              alert('{t escape=js}Please enter the rank of this resolution.{/t}');
16
16
              Validation.selectField('rank');
17
17
              return false;
18
18
          }
21
21
      function checkDelete()
22
22
      {
23
23
          if (!Validation.hasOneChecked('items[]')) {
24
 
              alert('{/literal}{t escape=js}Please select at least one of the resolutions.{/t}{literal}');
 
24
              alert('{t escape=js}Please select at least one of the resolutions.{/t}');
25
25
              return false;
26
26
          }
27
 
          if (!confirm('{/literal}{t escape=js}This action will remove the selected entries.{/t}{literal}')) {
 
27
          if (!confirm('{t escape=js}This action will remove the selected entries.{/t}')) {
28
28
              return false;
29
29
          } else {
30
30
              return true;
38
38
      });
39
39
      //-->
40
40
      </script>
41
 
      {/literal}
 
41
 
42
42
      <form id="resolution_form" method="post">
43
43
      {if $smarty.get.cat|default:'' == 'edit'}
44
44
      <input type="hidden" name="cat" value="update">