~eventum-developers/eventum/trunk

« back to all changes in this revision

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