~eventum-developers/eventum/trunk

« back to all changes in this revision

Viewing changes to templates/index.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:
4
4
 
5
5
{block "content"}
6
6
 
7
 
{literal}
 
7
 
8
8
<script type="text/javascript">
9
9
<!--
10
10
function validateForm()
11
11
{
12
12
    if (Validation.isFieldWhitespace(Eventum.getField('email'))) {
13
 
        Validation.errors[Validation.errors.length] = new Option('{/literal}{t escape=js}Email Address{/t}{literal}', 'email');
 
13
        Validation.errors[Validation.errors.length] = new Option('{t escape=js}Email Address{/t}', 'email');
14
14
    }
15
15
    if (Validation.isFieldWhitespace(Eventum.getField('passwd'))) {
16
 
        Validation.errors[Validation.errors.length] = new Option('{/literal}{t escape=js}Password{/t}{literal}', 'passwd');
 
16
        Validation.errors[Validation.errors.length] = new Option('{t escape=js}Password{/t}', 'passwd');
17
17
    }
18
18
}
19
19
$().ready(function() {
21
21
});
22
22
//-->
23
23
</script>
24
 
{/literal}
 
24
 
25
25
<form id="login_form" method="post" action="login.php" class="validate" data-validation-function="validateForm">
26
26
<input type="hidden" name="cat" value="login">
27
27
<input type="hidden" name="url" value="{$smarty.request.url|default     :''}">