~eventum-developers/eventum/trunk

« back to all changes in this revision

Viewing changes to templates/manage/phone_categories.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 category{/t}{literal}');
 
10
            alert('{t escape=js}Please enter the title of this category{/t}');
11
11
            Validation.selectField('title');
12
12
            return false;
13
13
        }
16
16
    function checkDelete()
17
17
    {
18
18
        if (!Validation.hasOneChecked('items[]')) {
19
 
            alert('{/literal}{t escape=js}Please select at least one of the categories.{/t}{literal}');
 
19
            alert('{t escape=js}Please select at least one of the categories.{/t}');
20
20
            return false;
21
21
        }
22
 
        if (!confirm('{/literal}{t escape=js}This action will remove the selected entries.{/t}{literal}')) {
 
22
        if (!confirm('{t escape=js}This action will remove the selected entries.{/t}')) {
23
23
            return false;
24
24
        } else {
25
25
            return true;
33
33
    });
34
34
    //-->
35
35
</script>
36
 
{/literal}
 
36
 
37
37
<form id="phone_category_form" method="post">
38
38
    <input type="hidden" name="prj_id" value="{$project.prj_id}">
39
39
    {if $smarty.get.cat|default:'' == 'edit'}