~eventum-developers/eventum/trunk

« back to all changes in this revision

Viewing changes to templates/manage/ldap.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
{if $core.auth_backend == 'ldap_auth_backend'}
5
 
{literal}
 
5
 
6
6
<script type="text/javascript">
7
7
    <!--
8
8
    function validateForm()
9
9
    {
10
10
        if (Validation.isFieldWhitespace('host')) {
11
 
            alert('{/literal}{t escape=js}Please enter the LDAP Host.{/t}{literal}');
 
11
            alert('{t escape=js}Please enter the LDAP Host.{/t}');
12
12
            Validation.selectField('host');
13
13
            return false;
14
14
        }
15
15
        var field = Eventum.getField('port');
16
16
        if (Validation.isWhitespace(field.val()) || (!Validation.isNumberOnly(field.val()))) {
17
 
            alert('{/literal}{t escape=js}Please enter the LDAP port.{/t}{literal}');
 
17
            alert('{t escape=js}Please enter the LDAP port.{/t}');
18
18
            Validation.selectField('port');
19
19
            return false;
20
20
        }
21
21
        if (Validation.isFieldWhitespace('basedn')) {
22
 
            alert('{/literal}{t escape=js}Please enter the base dn.{/t}{literal}');
 
22
            alert('{t escape=js}Please enter the base dn.{/t}');
23
23
            Validation.selectField('basedn');
24
24
            return false;
25
25
        }
26
26
        if (Validation.isFieldWhitespace('userdn')) {
27
 
            alert('{/literal}{t escape=js}Please enter the user dn.{/t}{literal}');
 
27
            alert('{t escape=js}Please enter the user dn.{/t}');
28
28
            Validation.selectField('userdn');
29
29
            return false;
30
30
        }
37
37
 
38
38
    //-->
39
39
</script>
40
 
{/literal}
 
40
 
41
41
<form id="ldap_form" method="post">
42
42
    <input type="hidden" name="cat" value="update">
43
43
    <table class="bordered">