{% extends "modules/tmpl/default.html.twig" %}
{% block module_content %}
<div class="mod-user">
<div class="mod mod-sign-in">
<form method="post" action="/catch-all">
<input type="hidden" name="action" value="sign-in" />
<legend>Sign In</legend>
<p>Use the form below to sign into your RoofersCoffeeShop Account.</p>
<label class="btn-block"><span>Username</span>
<input
class="form-control"
type="text"
name="username"
placeholder="Your Username"
required
/>
</label>
<label class="btn-block"><span>Password</span>
<input
class="form-control"
type="password"
name="password"
placeholder="Your Password"
required
/>
</label>
<button
class="btn btn-secondary"
type="submit"
>Sign In</button>
</form>
</div>
{#
<div class="mod mod-sign-up hidden ">
<form method="post" action="/catch-all">
<input type="hidden" name="action" value="sign-up" />
<legend>Sign Up</legend>
<p>Use the form below to create an account with RoofersCoffeeShop.</p>
<label class="btn-block"><span>Username</span>
<input
class="form-control"
type="text"
name="username"
placeholder="Your Username"
required
/>
</label>
<label class="btn-block"><span>Email</span>
<input
class="form-control"
type="text"
name="email"
placeholder="Your Email Address"
required
/>
</label>
<label class="btn-block"><span>Password</span>
<input
class="form-control"
type="password"
name="password1"
placeholder="Your Password"
required
/>
</label>
<label class="btn-block"><span>Confirm Password</span>
<input
class="form-control"
type="password"
name="password2"
placeholder="Confirm Your Password"
required
/>
</label>
<button
class="btn btn-secondary"
type="submit"
>Sign Up</button>
</form>
</div>
<div class="mod mod-forgot-username hidden ">
<form method="post">
<input type="hidden" name="action" value="forgot-username" />
<legend>Forgot Username</legend>
<p>Use the form below to receive a username reminder.</p>
<label class="btn-block"><span>E-mail Address</span>
<input
class="form-control"
type="text"
name="email"
placeholder="Your E-mail Address"
required
/>
</label>
<button
class="btn btn-secondary"
type="submit"
>Submit</button>
</form>
</div>
<div class="mod mod-forgot-password hidden ">
<form method="post" action="/catch-all">
<input type="hidden" name="action" value="reset-password" />
<legend>Forgot Password</legend>
<p>Use the form below to reset your password.</p>
<label class="btn-block"><span>E-mail Address</span>
<input
class="form-control"
type="text"
name="email"
placeholder="Your E-mail Address"
required
/>
</label>
<button
class="btn btn-secondary"
type="submit"
>Submit</button>
</form>
</div>
<div class="mod mod-resend-activation hidden ">
<form method="post" action="/catch-all">
<input type="hidden" name="action" value="resend-activation" />
<legend>Re-send Activation Link</legend>
<p>Enter your e-mail address below and we will re-send the activation link associated with that account.</p>
<label class="btn-block"><span>E-mail Address</span>
<input
class="form-control"
type="text"
name="email"
placeholder="Your E-mail Address"
required
/>
</label>
<button
class="btn btn-secondary"
type="submit"
>Submit</button>
</form>
</div>
#}
<hr />
<ul class="js-actions mt-3">
<li class="hidden"><a data-class="mod-sign-in" href="#">Click here to Sign-In.</a></li>
{#
<li><a href="/sign-up">Click here to Sign-Up.</a></li>
<li><a href="/forgot-password">Forgot Password? Click here.</a></li>
<li><a href="/forgot-username">Forgot Username? Click here.</a></li>
<li><a href="/send-activation">Resend Activation Token.</a></li>
#}
<li><a href="/sign-up">Click here to Sign-Up.</a></li>
{#
<li><a data-class="mod-forgot-password" href="#">Forgot Password? Click here.</a></li>
<li><a data-class="mod-forgot-username" href="#">Forgot Username? Click here.</a></li>
<li><a data-class="mod-resend-activation" href="#">Resend Activation Token.</a></li>
#}
</ul>
</div>
{# Linking to sign-up page. This is not currently needed.
<script>
(function($){
$(function(){
// Module Tab functionality
// ============================
$(".js-actions a").click(function (e) {
$(this).parents(".js-actions").find(".hidden").removeClass("hidden");
$(this).parent("li").addClass("hidden");
$(this).parents(".module-content").find(".mod").addClass("hidden");
var cls = $(this).attr("data-class"),
elm = $(this).parents(".module-content").find("." + cls).addClass("show-transition").removeClass("hidden");
setTimeout(function () {
elm.removeClass("show-transition");
}, 1);
e.preventDefault();
});
});
}(jQuery));
</script>
#}
{% endblock %}