templates/modules/static-sign-in.html.twig line 1

Open in your IDE?
  1. {% extends "modules/tmpl/default.html.twig" %}
  2. {% block module_content %}
  3. <div class="mod-user">
  4.     <div class="mod mod-sign-in">
  5.         <form method="post" action="/catch-all">
  6.             <input type="hidden" name="action" value="sign-in" />
  7.             <legend>Sign In</legend>
  8.             
  9.             <p>Use the form below to sign into your RoofersCoffeeShop Account.</p>
  10.             
  11.             <label class="btn-block"><span>Username</span>
  12.                 <input
  13.                     class="form-control"
  14.                     type="text"
  15.                     name="username"
  16.                     placeholder="Your Username"
  17.                     required
  18.                 />
  19.             </label>
  20.             <label class="btn-block"><span>Password</span>
  21.                 <input
  22.                     class="form-control"
  23.                     type="password"
  24.                     name="password"
  25.                     placeholder="Your Password"
  26.                     required
  27.                 />
  28.             </label>
  29.             <button
  30.                 class="btn btn-secondary"
  31.                 type="submit"
  32.             >Sign In</button>
  33.         </form>
  34.                 
  35.     </div>
  36.     {#
  37.     <div class="mod mod-sign-up hidden ">
  38.         <form method="post" action="/catch-all">
  39.             <input type="hidden" name="action" value="sign-up" />
  40.             
  41.             <legend>Sign Up</legend>
  42.             
  43.             <p>Use the form below to create an account with RoofersCoffeeShop.</p>
  44.             
  45.             <label class="btn-block"><span>Username</span>
  46.                 <input
  47.                     class="form-control"
  48.                     type="text"
  49.                     name="username"
  50.                     placeholder="Your Username"
  51.                     required
  52.                 />
  53.             </label>
  54.             
  55.             <label class="btn-block"><span>Email</span>
  56.                 <input
  57.                     class="form-control"
  58.                     type="text"
  59.                     name="email"
  60.                     placeholder="Your Email Address"
  61.                     required
  62.                 />
  63.             </label>
  64.             
  65.             <label class="btn-block"><span>Password</span>
  66.                 <input
  67.                     class="form-control"
  68.                     type="password"
  69.                     name="password1"
  70.                     placeholder="Your Password"
  71.                     required
  72.                 />
  73.             </label>
  74.             
  75.             <label class="btn-block"><span>Confirm Password</span>
  76.                 <input
  77.                     class="form-control"
  78.                     type="password"
  79.                     name="password2"
  80.                     placeholder="Confirm Your Password"
  81.                     required
  82.                 />
  83.             </label>
  84.             <button
  85.                 class="btn btn-secondary"
  86.                 type="submit"
  87.             >Sign Up</button>
  88.             
  89.         </form>
  90.     </div>
  91.     
  92.     <div class="mod mod-forgot-username hidden ">
  93.         <form method="post">
  94.             <input type="hidden" name="action" value="forgot-username" />
  95.             <legend>Forgot Username</legend>
  96.             
  97.             <p>Use the form below to receive a username reminder.</p>
  98.             
  99.             <label class="btn-block"><span>E-mail Address</span>
  100.                 <input
  101.                     class="form-control"
  102.                     type="text"
  103.                     name="email"
  104.                     placeholder="Your E-mail Address"
  105.                     required
  106.                 />
  107.             </label>
  108.             <button
  109.                 class="btn btn-secondary"
  110.                 type="submit"
  111.             >Submit</button>
  112.         </form>
  113.     </div>
  114.     <div class="mod mod-forgot-password hidden ">
  115.         <form method="post" action="/catch-all">
  116.             <input type="hidden" name="action" value="reset-password" />
  117.             <legend>Forgot Password</legend>
  118.             
  119.             <p>Use the form below to reset your password.</p>
  120.             
  121.             <label class="btn-block"><span>E-mail Address</span>
  122.                 <input
  123.                     class="form-control"
  124.                     type="text"
  125.                     name="email"
  126.                     placeholder="Your E-mail Address"
  127.                     required
  128.                 />
  129.             </label>
  130.             <button
  131.                 class="btn btn-secondary"
  132.                 type="submit"
  133.             >Submit</button>
  134.         </form>
  135.     </div>
  136.     <div class="mod mod-resend-activation hidden ">
  137.         <form method="post" action="/catch-all">
  138.             <input type="hidden" name="action" value="resend-activation" />
  139.             
  140.             <legend>Re-send Activation Link</legend>
  141.             
  142.             <p>Enter your e-mail address below and we will re-send the activation link associated with that account.</p>
  143.             
  144.             <label class="btn-block"><span>E-mail Address</span>
  145.                 <input
  146.                     class="form-control"
  147.                     type="text"
  148.                     name="email"
  149.                     placeholder="Your E-mail Address"
  150.                     required
  151.                 />
  152.             </label>
  153.             <button
  154.                 class="btn btn-secondary"
  155.                 type="submit"
  156.             >Submit</button>
  157.         </form>
  158.     </div>
  159.     #}
  160.     <hr />
  161.     
  162.     <ul class="js-actions mt-3">
  163.         <li class="hidden"><a data-class="mod-sign-in" href="#">Click here to Sign-In.</a></li>
  164.         {#
  165.         <li><a  href="/sign-up">Click here to Sign-Up.</a></li>
  166.         <li><a  href="/forgot-password">Forgot Password? Click here.</a></li>
  167.         <li><a  href="/forgot-username">Forgot Username? Click here.</a></li>
  168.         <li><a  href="/send-activation">Resend Activation Token.</a></li>
  169.         #}
  170.         
  171.         
  172.         <li><a href="/sign-up">Click here to Sign-Up.</a></li>
  173.         {#
  174.         <li><a data-class="mod-forgot-password" href="#">Forgot Password? Click here.</a></li>
  175.         <li><a data-class="mod-forgot-username" href="#">Forgot Username? Click here.</a></li>
  176.         <li><a data-class="mod-resend-activation" href="#">Resend Activation Token.</a></li>
  177.         #}
  178.         
  179.     </ul>
  180.     
  181. </div>
  182. {# Linking to sign-up page. This is not currently needed.
  183. <script>
  184. (function($){
  185.     $(function(){
  186.         
  187.         // Module Tab functionality
  188.         // ============================
  189.                 
  190.         $(".js-actions a").click(function (e) {
  191.             $(this).parents(".js-actions").find(".hidden").removeClass("hidden");
  192.             $(this).parent("li").addClass("hidden");
  193.             $(this).parents(".module-content").find(".mod").addClass("hidden");
  194.             var cls = $(this).attr("data-class"),
  195.                 elm = $(this).parents(".module-content").find("." + cls).addClass("show-transition").removeClass("hidden");
  196.             setTimeout(function () {
  197.                 elm.removeClass("show-transition");
  198.             }, 1);
  199.             
  200.             e.preventDefault();
  201.         });
  202.         
  203.     });
  204. }(jQuery));
  205. </script>
  206. #}
  207. {% endblock %}