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 | ||
8 | <script type="text/javascript" src="{@$__wcf->getPath('wcf')}js/WCF.User{if !ENABLE_DEBUG_MODE}.min{/if}.js"></script> | |
9 | <script type="text/javascript"> | |
10 | //<![CDATA[ | |
11 | $(function() { | |
12 | new WCF.User.Login(false); | |
13 | }) | |
14 | //]]> | |
15 | </script> | |
16 | </head> | |
17 | ||
18 | <body id="tpl{$templateName|ucfirst}"> | |
19 | {include file='header' __disableLoginLink=true} | |
20 | ||
21 | <header class="boxHeadline"> | |
22 | <h1>{lang}wcf.user.login{/lang}</h1> | |
23 | </header> | |
24 | ||
25 | {include file='userNotice'} | |
26 | ||
27 | {if $errorField} | |
28 | <p class="error">{lang}wcf.global.form.error{/lang}</p> | |
29 | {/if} | |
30 | ||
31 | <div class="contentNavigation"> | |
32 | {hascontent} | |
33 | <nav> | |
34 | <ul> | |
35 | {content} | |
36 | {event name='contentNavigationButtons'} | |
37 | {/content} | |
38 | </ul> | |
39 | </nav> | |
40 | {/hascontent} | |
41 | </div> | |
42 | ||
43 | <form method="post" action="{link controller='Login'}{/link}" id="loginForm"> | |
44 | <div class="container containerPadding marginTop"> | |
45 | <fieldset> | |
46 | <legend>{lang}wcf.user.login.data{/lang}</legend> | |
47 | ||
48 | <dl{if $errorField == 'username'} class="formError"{/if}> | |
49 | <dt><label for="username">{lang}wcf.user.usernameOrEmail{/lang}</label></dt> | |
50 | <dd> | |
51 | <input type="text" id="username" name="username" value="{$username}" required="required" class="long" /> | |
52 | {if $errorField == 'username'} | |
53 | <small class="innerError"> | |
54 | {if $errorType == 'empty'} | |
55 | {lang}wcf.global.form.error.empty{/lang} | |
56 | {else} | |
57 | {lang}wcf.user.username.error.{@$errorType}{/lang} | |
58 | {/if} | |
59 | </small> | |
60 | {/if} | |
61 | </dd> | |
62 | </dl> | |
63 | ||
64 | {if !REGISTER_DISABLED} | |
65 | <dl> | |
66 | <dt>{lang}wcf.user.login.action{/lang}</dt> | |
67 | <dd><label><input type="radio" name="action" value="register" /> {lang}wcf.user.login.action.register{/lang}</label></dd> | |
68 | <dd><label><input type="radio" name="action" value="login" checked="checked" /> {lang}wcf.user.login.action.login{/lang}</label></dd> | |
69 | </dl> | |
70 | {/if} | |
71 | ||
72 | <dl{if $errorField == 'password'} class="formError"{/if}> | |
73 | <dt><label for="password">{lang}wcf.user.password{/lang}</label></dt> | |
74 | <dd> | |
75 | <input type="password" id="password" name="password" value="{$password}" class="long" /> | |
76 | {if $errorField == 'password'} | |
77 | <small class="innerError"> | |
78 | {if $errorType == 'empty'} | |
79 | {lang}wcf.global.form.error.empty{/lang} | |
80 | {else} | |
81 | {lang}wcf.user.password.error.{@$errorType}{/lang} | |
82 | {/if} | |
83 | </small> | |
84 | {/if} | |
85 | </dd> | |
86 | </dl> | |
87 | ||
88 | {if $supportsPersistentLogins} | |
89 | <dl> | |
90 | <dd> | |
91 | <label for="useCookies"><input type="checkbox" id="useCookies" name="useCookies" value="1" {if $useCookies}checked="checked" {/if}/> {lang}wcf.user.useCookies{/lang}</label> | |
92 | </dd> | |
93 | </dl> | |
94 | {/if} | |
95 | ||
96 | {event name='fields'} | |
97 | ||
98 | <dl> | |
99 | <dd> | |
100 | <ul class="buttonList"> | |
101 | <li><a class="button small" href="{link controller='LostPassword'}{/link}"><span>{lang}wcf.user.lostPassword{/lang}</span></a></li> | |
102 | {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} | |
103 | {event name='buttons'} | |
104 | </ul> | |
105 | </dd> | |
106 | </dl> | |
107 | </fieldset> | |
108 | ||
109 | {capture assign='__3rdPartyButtons'} | |
110 | ||
111 | {/capture} | |
112 | ||
113 | {hascontent} | |
114 | <fieldset> | |
115 | <legend>{lang}wcf.user.login.3rdParty{/lang}</legend> | |
116 | ||
117 | <dl> | |
118 | <dd> | |
119 | <ul class="buttonList"> | |
120 | {content} | |
121 | {if GITHUB_PUBLIC_KEY !== '' && GITHUB_PRIVATE_KEY !== ''} | |
122 | <li id="githubAuth" class="3rdPartyAuth"> | |
123 | <a href="{link controller='GithubAuth'}{/link}" class="button small"><span class="icon icon16 icon-github"></span> <span>{lang}wcf.user.3rdparty.github.login{/lang}</span></a> | |
124 | </li> | |
125 | {/if} | |
126 | ||
127 | {if TWITTER_PUBLIC_KEY !== '' && TWITTER_PRIVATE_KEY !== ''} | |
128 | <li id="twitterAuth" class="3rdPartyAuth"> | |
129 | <a href="{link controller='TwitterAuth'}{/link}" class="button small"><span class="icon icon16 icon-twitter"></span> <span>{lang}wcf.user.3rdparty.twitter.login{/lang}</span></a> | |
130 | </li> | |
131 | {/if} | |
132 | ||
133 | {if FACEBOOK_PUBLIC_KEY !== '' && FACEBOOK_PRIVATE_KEY !== ''} | |
134 | <li id="facebookAuth" class="3rdPartyAuth"> | |
135 | <a href="{link controller='FacebookAuth'}{/link}" class="button small"><span class="icon icon16 icon-facebook"></span> <span>{lang}wcf.user.3rdparty.facebook.login{/lang}</span></a> | |
136 | </li> | |
137 | {/if} | |
138 | ||
139 | {if GOOGLE_PUBLIC_KEY !== '' && GOOGLE_PRIVATE_KEY !== ''} | |
140 | <li id="googleAuth" class="3rdPartyAuth"> | |
141 | <a href="{link controller='GoogleAuth'}{/link}" class="button small"><span class="icon icon16 icon-google-plus"></span> <span>{lang}wcf.user.3rdparty.google.login{/lang}</span></a> | |
142 | </li> | |
143 | {/if} | |
144 | {/content} | |
145 | </ul> | |
146 | </dd> | |
147 | </dl> | |
148 | </fieldset> | |
149 | {/hascontent} | |
150 | ||
151 | {event name='fieldsets'} | |
152 | </div> | |
153 | ||
154 | <div class="formSubmit"> | |
155 | <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" /> | |
156 | <input type="hidden" name="url" value="{@$url}" /> | |
157 | </div> | |
158 | </form> | |
159 | ||
160 | {include file='footer'} | |
161 | ||
162 | </body> | |
163 | </html> |