daily pastebin goal
76%
SHARE
TWEET

Untitled

a guest May 17th, 2018 18 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <@markup id="form">
  2.             <div class="form-field">
  3.                <input type="text" id="${el}-username" name="username" maxlength="255" autocomplete="off" value="<#if lastUsername??>${lastUsername?html}</#if>" placeholder="${msg("label.username")}" />
  4.             </div>
  5.             <div class="form-field">
  6.                <input type="password" id="${el}-password" name="password" maxlength="255" placeholder="${msg("label.password")}" />
  7.             </div>
  8.      
  9.          <form id="${el}-form" accept-charset="UTF-8" method="post" action="${loginUrl}" class="form-fields login" autocomplete="off">
  10.             <@markup id="fields">
  11.             <input type="hidden" id="${el}-success" name="success" value="${successUrl?replace("@","%40")?html}"/>
  12.             <input type="hidden" name="failure" value="${failureUrl?replace("@","%40")?html}"/>
  13.            
  14.            
  15.             <input type="hidden" id="hiddenUserName" name="username" />
  16.            <input type="hidden" id="hiddenPassword" name="password" />
  17.            
  18.             </@markup>
  19.             <@markup id="buttons">
  20.             <div class="form-field">
  21.                <input type="submit" id="${el}-submit" class="login-button" value="${msg("button.login")}"/>
  22.             </div>
  23.             <div class="form-field">
  24.                 <input type="button" id="${args.htmlid}-resetPassword" class="login-button hidden"
  25.                 value="${msg("button.resetPassword")}"/>
  26.             </div>
  27.             </@markup>
  28.          </form>
  29.         <script type="text/javascript" language="JavaScript">
  30.              $("#${el}-form").submit(function() {
  31.              $("#hiddenUsername").val($("#${el}-username").val());
  32.             $("#hiddenPassword").val($("#${el}-password").val());
  33.   });
  34.          $("#${el}-username,#${el}-password").keypress(function(e) {
  35.     if (e.which == 13) {
  36.       $("#${el}-form").submit();
  37.     }
  38.   });
  39. </script>
  40.       </@markup>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top