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 | 19 | |
95961bdf | 20 | <header class="contentHeader"> |
e7b063d6 AE |
21 | <div class="contentHeaderTitle"><h1 class="contentTitle">{lang}wcf.user.login{/lang}</h1></div> |
22 | ||
23 | {hascontent} | |
24 | <nav class="contentHeaderNavigation"> | |
25 | <ul> | |
26 | {content}{event name='contentHeaderNavigation'}{/content} | |
27 | </ul> | |
28 | </nav> | |
29 | {/hascontent} | |
320f4a6d MW |
30 | </header> |
31 | ||
32 | {include file='userNotice'} | |
33 | ||
91082aee AE |
34 | {if !$errorField|empty && $errorField == 'cookie'} |
35 | <p class="error">{lang}wcf.user.login.error.cookieRequired{/lang}</p> | |
36 | {else} | |
37 | {include file='formError'} | |
38 | {/if} | |
320f4a6d | 39 | |
4fcdbfe8 | 40 | <form method="post" action="{@$loginController}" id="loginForm"> |
95961bdf MW |
41 | <div class="section"> |
42 | <dl{if $errorField == 'username'} class="formError"{/if}> | |
43 | <dt><label for="username">{lang}wcf.user.usernameOrEmail{/lang}</label></dt> | |
44 | <dd> | |
45 | <input type="text" id="username" name="username" value="{$username}" required="required" class="medium" /> | |
46 | {if $errorField == 'username'} | |
47 | <small class="innerError"> | |
48 | {if $errorType == 'empty'} | |
49 | {lang}wcf.global.form.error.empty{/lang} | |
50 | {else} | |
51 | {lang}wcf.user.username.error.{@$errorType}{/lang} | |
52 | {/if} | |
53 | </small> | |
54 | {/if} | |
55 | </dd> | |
56 | </dl> | |
57 | ||
58 | {if !REGISTER_DISABLED} | |
59 | <dl> | |
60 | <dt>{lang}wcf.user.login.action{/lang}</dt> | |
320f4a6d | 61 | <dd> |
95961bdf MW |
62 | <label><input type="radio" name="action" value="register" /> {lang}wcf.user.login.action.register{/lang}</label> |
63 | <label><input type="radio" name="action" value="login" checked="checked" /> {lang}wcf.user.login.action.login{/lang}</label> | |
320f4a6d MW |
64 | </dd> |
65 | </dl> | |
95961bdf MW |
66 | {/if} |
67 | ||
68 | <dl{if $errorField == 'password'} class="formError"{/if}> | |
69 | <dt><label for="password">{lang}wcf.user.password{/lang}</label></dt> | |
70 | <dd> | |
71 | <input type="password" id="password" name="password" value="{$password}" class="medium" /> | |
72 | {if $errorField == 'password'} | |
73 | <small class="innerError"> | |
74 | {if $errorType == 'empty'} | |
75 | {lang}wcf.global.form.error.empty{/lang} | |
76 | {else} | |
77 | {lang}wcf.user.password.error.{@$errorType}{/lang} | |
78 | {/if} | |
79 | </small> | |
80 | {/if} | |
81 | <small><a href="{link controller='LostPassword'}{/link}">{lang}wcf.user.lostPassword{/lang}</a></small> | |
82 | </dd> | |
83 | </dl> | |
84 | ||
85 | {if $supportsPersistentLogins} | |
86 | <dl> | |
87 | <dt></dt> | |
320f4a6d | 88 | <dd> |
95961bdf | 89 | <label for="useCookies"><input type="checkbox" id="useCookies" name="useCookies" value="1" {if $useCookies}checked="checked" {/if}/> {lang}wcf.user.useCookies{/lang}</label> |
320f4a6d MW |
90 | </dd> |
91 | </dl> | |
95961bdf MW |
92 | {/if} |
93 | ||
94 | {event name='fields'} | |
95 | </div> | |
96 | ||
97 | {hascontent} | |
98 | <section class="section"> | |
99 | <h2 class="sectionTitle">{lang}wcf.user.login.3rdParty{/lang}</h2> | |
320f4a6d MW |
100 | |
101 | <dl> | |
77f70354 | 102 | <dt></dt> |
320f4a6d | 103 | <dd> |
b925ad8f | 104 | <ul class="buttonList smallButtons"> |
95961bdf MW |
105 | {content} |
106 | {if GITHUB_PUBLIC_KEY !== '' && GITHUB_PRIVATE_KEY !== ''} | |
107 | <li id="githubAuth" class="3rdPartyAuth"> | |
108 | <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> | |
109 | </li> | |
110 | {/if} | |
111 | ||
112 | {if TWITTER_PUBLIC_KEY !== '' && TWITTER_PRIVATE_KEY !== ''} | |
113 | <li id="twitterAuth" class="3rdPartyAuth"> | |
114 | <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> | |
115 | </li> | |
116 | {/if} | |
117 | ||
118 | {if FACEBOOK_PUBLIC_KEY !== '' && FACEBOOK_PRIVATE_KEY !== ''} | |
119 | <li id="facebookAuth" class="3rdPartyAuth"> | |
120 | <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> | |
121 | </li> | |
122 | {/if} | |
123 | ||
124 | {if GOOGLE_PUBLIC_KEY !== '' && GOOGLE_PRIVATE_KEY !== ''} | |
125 | <li id="googleAuth" class="3rdPartyAuth"> | |
126 | <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> | |
127 | </li> | |
128 | {/if} | |
129 | ||
130 | {event name='3rdpartyButtons'} | |
131 | {/content} | |
320f4a6d MW |
132 | </ul> |
133 | </dd> | |
134 | </dl> | |
95961bdf MW |
135 | </section> |
136 | {/hascontent} | |
137 | ||
138 | {event name='sections'} | |
139 | ||
140 | {include file='captcha'} | |
320f4a6d MW |
141 | |
142 | <div class="formSubmit"> | |
143 | <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" /> | |
26b3b912 | 144 | <input type="hidden" name="url" value="{$url}" /> |
ee629b22 | 145 | {@SECURITY_TOKEN_INPUT_TAG} |
320f4a6d MW |
146 | </div> |
147 | </form> | |
148 | ||
c893138d | 149 | {include file='footer' __disableAds=true} |
320f4a6d MW |
150 | |
151 | </body> | |
152 | </html> |