update login

This commit is contained in:
Luke Pulverenti 2016-05-28 15:47:56 -04:00
parent 778d3e8683
commit 9abecac88b
4 changed files with 28 additions and 28 deletions

View File

@ -1,20 +1,18 @@
<div id="connectLoginPage" data-role="page" class="page standalonePage connectLoginPage" data-theme="b" data-require="scripts/connectlogin,paper-input,paper-button">
<div id="connectLoginPage" data-role="page" class="page standalonePage connectLoginPage" data-theme="b" data-require="scripts/connectlogin,emby-input,paper-button">
<div data-role="content">
<form class="connectLoginForm" style="margin: 0 auto;display:none;">
<div style="display: none;">
<input type="text" id="PreventChromeAutocomplete" name="PreventChromeAutocomplete" autocomplete="address-level4" />
</div>
<div style="height:0; overflow: hidden;"><input type="text" name="fakeusernameremembered" tabindex="-1" /><input type="password" name="fakepasswordremembered" tabindex="-1" /></div>
<h1 style="text-align: left;">${HeaderSignInWithConnect}</h1>
<div>
<paper-input type="text" id="txtManualName" required="required" label="${LabelUser}" autocomplete="off"></paper-input>
<div class="inputContainer">
<input is="emby-input" type="text" id="txtManualName" required="required" label="${LabelUser}" autocomplete="off"/>
<div class="fieldDescription" style="text-align:left;">${LabelEnterConnectUserNameHelp}</div>
</div>
<div>
<paper-input type="password" id="txtManualPassword" required="required" label="${LabelPassword}" autocomplete="off"></paper-input>
<div class="inputContainer">
<input is="emby-input" type="password" id="txtManualPassword" required="required" label="${LabelPassword}" autocomplete="off"/>
</div>
<br />
<button type="submit" data-role="none" class="clearButton">
@ -47,13 +45,13 @@
</div>
<h1 style="text-align: left;">${HeaderConnectToServer}</h1>
<div>
<paper-input type="text" id="txtServerHost" required="required" label="${LabelServerHost}"></paper-input>
<div class="inputContainer">
<input is="emby-input" type="text" id="txtServerHost" required="required" label="${LabelServerHost}"/>
<div class="fieldDescription" style="text-align:left;">${LabelServerHostHelp}</div>
</div>
<br />
<div>
<paper-input type="number" id="txtServerPort" step="1" min="0" value="8096" label="${LabelServerPort}"></paper-input>
<div class="inputContainer">
<input is="emby-input" type="number" id="txtServerPort" step="1" min="0" value="8096" label="${LabelServerPort}"/>
</div>
<br />
@ -71,17 +69,17 @@
<h1 style="text-align: left;">${HeaderSignUp}</h1>
<br />
<div>
<paper-input type="text" id="txtSignupEmail" required="required" label="${LabelEmail}"></paper-input>
<div class="inputContainer">
<input is="emby-input" type="text" id="txtSignupEmail" required="required" label="${LabelEmail}"/>
</div>
<div>
<paper-input type="text" id="txtSignupUsername" required="required" label="${LabelUsername}"></paper-input>
<div class="inputContainer">
<input is="emby-input" type="text" id="txtSignupUsername" required="required" label="${LabelUsername}"/>
</div>
<div>
<paper-input type="password" id="txtSignupPassword" required="required" label="${LabelPassword}" autocomplete="off"></paper-input>
<div class="inputContainer">
<input is="emby-input" type="password" id="txtSignupPassword" required="required" label="${LabelPassword}" autocomplete="off"/>
</div>
<div>
<paper-input type="password" id="txtSignupPasswordConfirm" required="required" label="${LabelPasswordConfirm}" autocomplete="off"></paper-input>
<div class="inputContainer">
<input is="emby-input" type="password" id="txtSignupPasswordConfirm" required="required" label="${LabelPasswordConfirm}" autocomplete="off"/>
</div>
<div class="g-recaptcha" id="recaptchaWidget" data-sitekey="6Le2LAgTAAAAAK06Wvttt_yUnbISTy6q3Azqp9po" data-theme="dark"></div>

View File

@ -6,13 +6,15 @@
<h1 style="text-align: left;">${HeaderPleaseSignIn}</h1>
<div style="display: none;">
<input type="text" id="PreventChromeAutocomplete" name="PreventChromeAutocomplete" autocomplete="address-level4" />
<div style="height:0; overflow: hidden;"><input type="text" name="fakeusernameremembered" tabindex="-1" /><input type="password" name="fakepasswordremembered" tabindex="-1" /></div>
<div class="inputContainer">
<input is="emby-input" type="text" id="txtManualName" required="required" label="${LabelUser}" autocomplete="off"/>
</div>
<paper-input type="text" id="txtManualName" required="required" label="${LabelUser}" autocomplete="off"></paper-input>
<paper-input id="txtManualPassword" type="password" label="${LabelPassword}" autocomplete="off"></paper-input>
<div class="inputContainer">
<input is="emby-input" id="txtManualPassword" type="password" label="${LabelPassword}" autocomplete="off"/>
</div>
<br />
<button type="submit" data-role="none" class="clearButton">

View File

@ -86,9 +86,9 @@
$('.manualLoginForm', context).show();
if (focusPassword) {
$('#txtManualPassword input', context).focus();
$('#txtManualPassword', context).focus();
} else {
$('#txtManualName input', context).focus();
$('#txtManualName', context).focus();
}
if (showCancel) {

View File

@ -2667,7 +2667,7 @@ var AppInfo = {};
defineRoute({
path: '/login.html',
dependencies: ['paper-button', 'humanedate', 'paper-input'],
dependencies: ['paper-button', 'humanedate', 'emby-input'],
autoFocus: false,
anonymous: true,
controller: 'scripts/loginpage'