-
Notifications
You must be signed in to change notification settings - Fork 13
/
ldap_client.html
executable file
·66 lines (65 loc) · 2.45 KB
/
ldap_client.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<template name="ldapLogin">
{{#if currentUser}}
<div id="login-buttons-logout" class="login-button">Sign out</div>
{{else}}
<div class="login-form login-password-form">
{{#if loggingIn}}
<div class="logging-in">
Logging in ...
</div>
{{else}}
<div id="login-email-label-and-input">
<label for="ldap" id="login-email-label">Username or email</label>
<input id="login-email" type="text" name="ldap">
</div>
<div id="login-password-label-and-input">
<label for="password" id="login-password-label">Password</label>
<input id="login-password" type="password" name="password">
</div>
{{#if forgotPasswordLink}}
<div>
<label for="login-forgot-passwork-link" id="login-forgot-password-label"></label>
<a id="login-forgot-passwork-link" href="#"><small>Forgot password?</small></a>
</div>
{{/if}}
{{#each extraFormFields}}
<div id="login-{{field}}-label-and-input">
<label for="{{field}}" id="login-{{field}}-label">{{name}}</label>
<input id="login-{{field}}" class="login-extra-field" type="text" name="{{field}}">
</div>
{{/each}}
{{#if failedLogin}}
<div class="message error-message">
{{errorMessage}}
</div>
{{/if}}
<div id="login-buttons-password" class="login-button login-button-form-submit" name="login">{{#with signInButtonText}}{{this}}{{else}}Sign In{{/with}}</div>
{{/if}}
</div>
{{#if formTemplate}}
{{> Template.dynamic template=formTemplate data=this}}
{{/if}}
{{/if}}
</template>
<template name="ldapLoginButtons">
{{#if template}}
{{> Template.dynamic template=template data=this}}
{{else}}
<div id="login-buttons" class="login-buttons-dropdown-align-{{align}}">
<div class="login-link-and-dropdown-list login-form-sign-in">
{{#with currentUser}}
<a id="logged-in-username" class="login-link-text">{{usernameOrEmail}} ▾</a>
{{else}}
<a id="login-sign-in-link" class="login-link-text">Sign in ▾</a>
{{/with}}
{{#if showForm}}
<div id="login-dropdown-list" class="accounts-dialog">
<a class="login-close-text">Close</a>
<div class="login-close-text-clear"></div>
{{> ldapLogin}}
</div>
{{/if}}
</div>
</div>
{{/if}}
</template>