~eventum-developers/eventum/trunk

« back to all changes in this revision

Viewing changes to templates/notification.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:
9
9
{section name="i" loop=$allowed_emails}
10
10
allowed_emails[allowed_emails.length] = '{$allowed_emails[i]}';
11
11
{/section}
12
 
{literal}
 
12
 
13
13
function validate(f)
14
14
{
15
15
    if (isWhitespace(f.email.value)) {
16
 
        alert('{/literal}{t escape=js}Please enter a valid email address.{/t}{literal}');
 
16
        alert('{t escape=js}Please enter a valid email address.{/t}');
17
17
        selectField(f, 'email');
18
18
        return false;
19
19
    }
20
20
    // extra check to see if the given email address is allowed in this issue or not
21
21
    var email = getEmailFromAddress(f.email.value);
22
22
    if (!inArray(email, allowed_emails)) {
23
 
        var msg = "{/literal}{t escape=js}The given email address{/t}{literal} '" + f.email.value + "' {/literal}{t}is neither a known staff member or customer technical contact.{/t}{literal}";
24
 
        msg += "\n{/literal}{t escape=js}Are you sure you want to add this address to the notification list?{/t}{literal}";
 
23
        var msg = "{t escape=js}The given email address{/t} '" + f.email.value + "' {t}is neither a known staff member or customer technical contact.{/t}";
 
24
        msg += "\n{t escape=js}Are you sure you want to add this address to the notification list?{/t}";
25
25
        if (!confirm(msg)) {
26
26
            return false;
27
27
        } else {
52
52
function checkDelete(f)
53
53
{
54
54
    if (!hasOneChecked(f, 'items[]')) {
55
 
        alert('{/literal}{t escape=js}Please select at least one of the subscribers.{/t}{literal}');
 
55
        alert('{t escape=js}Please select at least one of the subscribers.{/t}');
56
56
        return false;
57
57
    }
58
 
    if (!confirm('{/literal}{t escape=js}This action will remove the selected entries.{/t}{literal}')) {
 
58
    if (!confirm('{t escape=js}This action will remove the selected entries.{/t}')) {
59
59
        return false;
60
60
    } else {
61
61
        return true;
63
63
}
64
64
//-->
65
65
</script>
66
 
{/literal}
 
66
 
67
67
<form name="notification_form" onSubmit="return validate(this);" method="post">
68
68
<table class="bordered">
69
69
    {if $smarty.get.cat|default:'' == 'edit'}