RandomGMM

Log_In Form HTML

Aug 25th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. <!--LOG-IN-->
  2. <div id="template">
  3. <div id="customer">
  4.  
  5. <div class="template_header">
  6. <h2 class="title" style="margin-left:16px;">Sign-In</h2>
  7. </div>
  8.  
  9. <div id="LoginWindow">
  10. {% form 'customer_login' %}
  11.  
  12. <center><img src="XXXX" style="margin-bottom:16px;"></center>
  13. {{ form.errors | default_errors }}
  14.  
  15. <div id="login_email" class="clearfix large_form" style="margin-left:16px;">
  16. <label for="customer_email" class="login" style="color:#333333;">Email Address</label>
  17. <input type="email" value="" name="customer[email]" id="customer_email" class="large" size="30" style="width:calc(100% - 16px);"/>
  18. </div>
  19.  
  20. {% if form.password_needed %}
  21.  
  22. {% comment %}
  23. Customer Account Login
  24. {% endcomment %}
  25.  
  26. <div id="login_password" class="clearfix large_form" style="margin-left:16px;">
  27. <label for="customer_password" class="login">Password</label>
  28. <input type="password" value="" name="customer[password]" id="customer_password" class="large password" size="16" style="width:calc(100% - 16px);" />
  29. <div id="forgot_password">
  30. <a href="#" onclick="showRecoverPasswordForm();return false;">Forgot your password?</a>
  31. </div>
  32. </div>
  33.  
  34. {% endif %}
  35.  
  36. <!--SUBMISSION FOOTER-->
  37. <center>
  38. <div class="action_bottom">
  39. <input class="btn" type="submit" value="Sign In" />
  40. <span class="note">or <a href="{{ shop.url }}">Return to Store</a></span>
  41. </div>
  42. <div><p>Don't have an account? Register <a href="XXXX">HERE</a></p></div>
  43. </center>
  44. {% endform %}
  45. </div>
  46.  
  47. <!--PASSWORD RESET FORM-->
  48. <div id="PassResetWindow">
  49. <div id="recover-password" style="display:none;">
  50. <div class="template_header">
  51. <center><img src="XXXX" style="margin-bottom:16px;"></center>
  52. <h2 class="title" style="margin-left:16px;">Reset Password</h2>
  53. <p class="note" style="margin-left:16px;">We will send you an email to reset your password.</p>
  54. </div>
  55.  
  56. {% form 'recover_customer_password' %}
  57. {{ form.errors | default_errors }}
  58.  
  59. <div id="recover_email" class="clearfix large_form" style="margin-left:16px;">
  60. <label for="email" class="large">Email</label>
  61. <input type="email" value="" size="30" name="email" id="recover-email" class="large" style="width:calc(100% - 16px);" />
  62. </div>
  63.  
  64. <div class="action_bottom">
  65. <center>
  66. <input class="btn" type="submit" value="Submit" />
  67. <span class="note">or <a href="#" onclick="hideRecoverPasswordForm();return false;">Cancel</a></span>
  68. </center>
  69. </div>
  70.  
  71.  
  72. {% endform %}
  73. </div>
  74.  
  75. {% comment %}
  76. Guest Login form for shops with optional customer accounts. This form is displayed only when users click on the checkout link
  77. on the cart page.
  78. {% endcomment %}
  79.  
  80. {% if shop.checkout.guest_login %}
  81. <div id="guest">
  82. <div class="template_header">
  83. <h3 class="title">Guest Login</h3>
  84. </div>
  85. {% form 'guest_login' %}
  86. <input class="btn" type="submit" value="Continue as Guest" />
  87. {% endform %}
  88. </div>
  89. {% endif %}
  90. </div>
  91. </div>
  92. </div>
  93.  
  94. <script type="text/javascript">
  95. function showRecoverPasswordForm() {
  96. document.getElementById('recover-password').style.display = 'inline-block';
  97. document.getElementById('LoginWindow').style.display='none';
  98. }
  99.  
  100. function hideRecoverPasswordForm() {
  101. document.getElementById('recover-password').style.display = 'none';
  102. document.getElementById('LoginWindow').style.display = 'inline-block';
  103. }
  104.  
  105.  
  106. if (window.location.hash == '#recover') { showRecoverPasswordForm() }
  107. </script>
Advertisement
Add Comment
Please, Sign In to add comment