Commit | Line | Data |
---|---|---|
320f4a6d MW |
1 | {include file='documentHeader'} |
2 | ||
3 | <head> | |
4 | <title>{lang}wcf.user.login{/lang} - {PAGE_TITLE|language}</title> | |
5 | ||
6 | {include file='headInclude'} | |
7 | ||
9543d9fe | 8 | <script data-relocate="true"> |
320f4a6d MW |
9 | //<![CDATA[ |
10 | $(function() { | |
11 | new WCF.User.Login(false); | |
12 | }) | |
13 | //]]> | |
14 | </script> | |
15 | </head> | |
16 | ||
887a3153 | 17 | <body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}"> |
c893138d | 18 | {include file='header' __disableLoginLink=true __disableAds=true} |
320f4a6d MW |
19 | |
20 | <header class="boxHeadline"> | |
21 | <h1>{lang}wcf.user.login{/lang}</h1> | |
22 | </header> | |
23 | ||
24 | {include file='userNotice'} | |
25 | ||
91082aee AE |
26 | {if !$errorField|empty && $errorField == 'cookie'} |
27 | <p class="error">{lang}wcf.user.login.error.cookieRequired{/lang}</p> | |
28 | {else} | |
29 | {include file='formError'} | |
30 | {/if} | |
320f4a6d MW |
31 | |
32 | <div class="contentNavigation"> | |
33 | {hascontent} | |
34 | <nav> | |
35 | <ul> | |
36 | {content} | |
37 | {event name='contentNavigationButtons'} | |
38 | {/content} | |
39 | </ul> | |
40 | </nav> | |
41 | {/hascontent} | |
42 | </div> | |
43 | ||
4fcdbfe8 | 44 | <form method="post" action="{@$loginController}" id="loginForm"> |
320f4a6d MW |
45 | <div class="container containerPadding marginTop"> |
46 | <fieldset> | |
47 | <legend>{lang}wcf.user.login.data{/lang}</legend> | |
48 | ||
49 | <dl{if $errorField == 'username'} class="formError"{/if}> | |
50 | <dt><label for="username">{lang}wcf.user.usernameOrEmail{/lang}</label></dt> | |
51 | <dd> | |
ee490f0c | 52 | <input type="text" id="username" name="username" value="{$username}" required="required" class="medium" /> |
320f4a6d MW |
53 | {if $errorField == 'username'} |
54 | <small class="innerError"> | |
55 | {if $errorType == 'empty'} | |
56 | {lang}wcf.global.form.error.empty{/lang} | |
57 | {else} | |
58 | {lang}wcf.user.username.error.{@$errorType}{/lang} | |
59 | {/if} | |
60 | </small> | |
61 | {/if} | |
62 | </dd> | |
63 | </dl> | |
64 | ||
65 | {if !REGISTER_DISABLED} | |
66 | <dl> | |
67 | <dt>{lang}wcf.user.login.action{/lang}</dt> | |
ee490f0c MW |
68 | <dd> |
69 | <label><input type="radio" name="action" value="register" /> {lang}wcf.user.login.action.register{/lang}</label> | |
70 | <label><input type="radio" name="action" value="login" checked="checked" /> {lang}wcf.user.login.action.login{/lang}</label> | |
71 | </dd> | |
320f4a6d MW |
72 | </dl> |
73 | {/if} | |
74 | ||
75 | <dl{if $errorField == 'password'} class="formError"{/if}> | |
76 | <dt><label for="password">{lang}wcf.user.password{/lang}</label></dt> | |
77 | <dd> | |
ee490f0c | 78 | <input type="password" id="password" name="password" value="{$password}" class="medium" /> |
320f4a6d MW |
79 | {if $errorField == 'password'} |
80 | <small class="innerError"> | |
81 | {if $errorType == 'empty'} | |
82 | {lang}wcf.global.form.error.empty{/lang} | |
83 | {else} | |
84 | {lang}wcf.user.password.error.{@$errorType}{/lang} | |
85 | {/if} | |
86 | </small> | |
87 | {/if} | |
88 | </dd> | |
89 | </dl> | |
90 | ||
91 | {if $supportsPersistentLogins} | |
92 | <dl> | |
77f70354 | 93 | <dt></dt> |
320f4a6d MW |
94 | <dd> |
95 | <label for="useCookies"><input type="checkbox" id="useCookies" name="useCookies" value="1" {if $useCookies}checked="checked" {/if}/> {lang}wcf.user.useCookies{/lang}</label> | |
96 | </dd> | |
97 | </dl> | |
98 | {/if} | |
99 | ||
100 | {event name='fields'} | |
101 | ||
102 | <dl> | |
77f70354 | 103 | <dt></dt> |
320f4a6d | 104 | <dd> |
b925ad8f | 105 | <ul class="buttonList smallButtons"> |
320f4a6d MW |
106 | <li><a class="button small" href="{link controller='LostPassword'}{/link}"><span>{lang}wcf.user.lostPassword{/lang}</span></a></li> |
107 | {if !REGISTER_DISABLED && REGISTER_ACTIVATION_METHOD == 1}<li><a class="button small" href="{link controller='RegisterActivation'}{/link}"><span>{lang}wcf.user.registerActivation{/lang}</span></a></li>{/if} | |
108 | {event name='buttons'} | |
109 | </ul> | |
110 | </dd> | |
111 | </dl> | |
112 | </fieldset> | |
113 | ||
320f4a6d MW |
114 | {hascontent} |
115 | <fieldset> | |
116 | <legend>{lang}wcf.user.login.3rdParty{/lang}</legend> | |
117 | ||
118 | <dl> | |
77f70354 | 119 | <dt></dt> |
320f4a6d | 120 | <dd> |
b925ad8f | 121 | <ul class="buttonList smallButtons"> |
320f4a6d MW |
122 | {content} |
123 | {if GITHUB_PUBLIC_KEY !== '' && GITHUB_PRIVATE_KEY !== ''} | |
124 | <li id="githubAuth" class="3rdPartyAuth"> | |
ca8bfa53 | 125 | <a href="{link controller='GithubAuth'}{/link}" class="thirdPartyLoginButton githubLoginButton"><span class="icon icon16 fa-github"></span> <span>{lang}wcf.user.3rdparty.github.login{/lang}</span></a> |
320f4a6d MW |
126 | </li> |
127 | {/if} | |
128 | ||
129 | {if TWITTER_PUBLIC_KEY !== '' && TWITTER_PRIVATE_KEY !== ''} | |
130 | <li id="twitterAuth" class="3rdPartyAuth"> | |
ca8bfa53 | 131 | <a href="{link controller='TwitterAuth'}{/link}" class="thirdPartyLoginButton twitterLoginButton"><span class="icon icon16 fa-twitter"></span> <span>{lang}wcf.user.3rdparty.twitter.login{/lang}</span></a> |
320f4a6d MW |
132 | </li> |
133 | {/if} | |
134 | ||
135 | {if FACEBOOK_PUBLIC_KEY !== '' && FACEBOOK_PRIVATE_KEY !== ''} | |
136 | <li id="facebookAuth" class="3rdPartyAuth"> | |
ca8bfa53 | 137 | <a href="{link controller='FacebookAuth'}{/link}" class="thirdPartyLoginButton facebookLoginButton"><span class="icon icon16 fa-facebook"></span> <span>{lang}wcf.user.3rdparty.facebook.login{/lang}</span></a> |
320f4a6d MW |
138 | </li> |
139 | {/if} | |
140 | ||
141 | {if GOOGLE_PUBLIC_KEY !== '' && GOOGLE_PRIVATE_KEY !== ''} | |
142 | <li id="googleAuth" class="3rdPartyAuth"> | |
ca8bfa53 | 143 | <a href="{link controller='GoogleAuth'}{/link}" class="thirdPartyLoginButton googleLoginButton"><span class="icon icon16 fa-google-plus"></span> <span>{lang}wcf.user.3rdparty.google.login{/lang}</span></a> |
320f4a6d MW |
144 | </li> |
145 | {/if} | |
17729c4f MW |
146 | |
147 | {event name='3rdpartyButtons'} | |
34d67d2d | 148 | {/content} |
320f4a6d MW |
149 | </ul> |
150 | </dd> | |
151 | </dl> | |
152 | </fieldset> | |
153 | {/hascontent} | |
154 | ||
155 | {event name='fieldsets'} | |
359f3c53 MW |
156 | |
157 | {include file='captcha'} | |
320f4a6d MW |
158 | </div> |
159 | ||
160 | <div class="formSubmit"> | |
161 | <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" /> | |
26b3b912 | 162 | <input type="hidden" name="url" value="{$url}" /> |
ee629b22 | 163 | {@SECURITY_TOKEN_INPUT_TAG} |
320f4a6d MW |
164 | </div> |
165 | </form> | |
166 | ||
c893138d | 167 | {include file='footer' __disableAds=true} |
320f4a6d MW |
168 | |
169 | </body> | |
170 | </html> |