require login

This commit is contained in:
2021-12-22 15:27:10 -06:00
parent 96dc7248d1
commit 92920b3b89
4 changed files with 23 additions and 15 deletions

View File

@@ -3,17 +3,20 @@
{% block title %}Bench Coach Home{% endblock %}
{% block content %}
<form method="post" action="{% url "login" %}">
{% csrf_token %}
<div class="text-center d-flex flex-column justify-content-center align-items-center mb-4">
<form style="width: 100%; max-width: 330px; padding: 15px; margin: 0 auto;"
method="post" action="{% url "login" %}">
{% csrf_token %}
<header>Login</header>
<label>Username <span>*</span></label>
<input type="text" name="username" placeholder="Username" required="" />
<div class="help">At least 5 character</div>
<label>Password <span>*</span></label>
<input type="password" name="password" placeholder="Password" required="" />
<div class="help">Use upper and lowercase letters as well</div>
<button type="submit">Login</button>
<img class="mb-4" src="{% static "benchcoach.svg" %}" width="72" height="72"/>
<h3>Please Sign In</h3>
<input class="form-control" type="text" name="username" placeholder="Username" required=""
style="margin-bottom: -1px; border-bottom-right-radius: 0; border-bottom-left-radius: 0;"/>
<input class="form-control" type="password" name="password" placeholder="Password" required=""
style="margin-bottom: 10px; border-top-left-radius: 0; border-top-right-radius: 0;"/>
<button class="btn btn-primary btn-lg btn-block" type="submit">Login</button>
</form>
</div>
</form>