~eventum-developers/eventum/trunk

« back to all changes in this revision

Viewing changes to templates/authorized_replier.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:
3
3
{block title}#{$issue_id} - Authorized Replier List{/block}
4
4
 
5
5
{block "content"}
6
 
{literal}
 
6
 
7
7
<script type="text/javascript">
8
8
<!--
9
9
function validate(f)
10
10
{
11
11
    if (isWhitespace(f.email.value)) {
12
 
        alert('{/literal}{t escape=js}Please enter a valid email address.{/t}{literal}');
 
12
        alert('{t escape=js}Please enter a valid email address.{/t}');
13
13
        selectField(f, 'email');
14
14
        return false;
15
15
    }
35
35
function checkDelete(f)
36
36
{
37
37
    if (!hasOneChecked(f, 'items[]')) {
38
 
        alert('{/literal}{t escape=js}Please select at least one of the authorized repliers.{/t}{literal}');
 
38
        alert('{t escape=js}Please select at least one of the authorized repliers.{/t}');
39
39
        return false;
40
40
    }
41
 
    if (!confirm('{/literal}{t escape=js}This action will remove the selected entries.{/t}{literal}')) {
 
41
    if (!confirm('{t escape=js}This action will remove the selected entries.{/t}')) {
42
42
        return false;
43
43
    } else {
44
44
        return true;
46
46
}
47
47
//-->
48
48
</script>
49
 
{/literal}
 
49
 
50
50
{if $core.current_role > $core.roles.reporter}
51
51
<form name="replier_form" onSubmit="return validate(this);" method="post">
52
52
{if $smarty.get.cat|default:'' == 'edit'}