~eventum-developers/eventum/trunk

« back to all changes in this revision

Viewing changes to templates/manage/severities.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
10
            Validation.selectField('title');
11
 
            alert('{/literal}{t escape=js}Please enter the title of this severity{/t}{literal}');
 
11
            alert('{t escape=js}Please enter the title of this severity{/t}');
12
12
            return false;
13
13
        }
14
14
        if (Validation.isFieldWhitespace('rank')) {
15
15
            Validation.selectField('rank');
16
 
            alert('{/literal}{t escape=js}Please enter the rank of this severity{/t}{literal}');
 
16
            alert('{t escape=js}Please enter the rank of this severity{/t}');
17
17
            return false;
18
18
        }
19
19
        return true;
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 severities.{/t}{literal}');
 
24
            alert('{t escape=js}Please select at least one of the severities.{/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="severity_form" method="post">
43
43
    <input type="hidden" name="prj_id" value="{$project.prj_id}">
44
44
    {if $smarty.get.cat|default:'' == 'edit'}