minecraft_manager/templates/minecraft_manager/login.html

31 lines
1.4 KiB
HTML

{% extends "minecraft_manager/base.html" %}
{% load static %}
{% block bootstrap %}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
{% endblock bootstrap %}
{% block head %}
<link rel="stylesheet" href="{% static "minecraft_manager/css/signin.css" %}">
{% endblock head %}
{% block content %}
<div class="container">
<form class="form-signin" method="post" action="{% url 'login' %}">{% csrf_token %}
{% if form.errors %}
<p class="alert alert-error">Username and Password are invalid. Please try again.</p>
{% endif %}
<label for="inputUsername" class="sr-only">Username</label>
<input type="text" id="inputUsername" class="form-control form-control-top" name="username" placeholder="Username" required autofocus>
<label for="inputPassword" class="sr-only">Password</label>
<input type="password" id="inputPassword" class="form-control form-control-bottom" name="password" placeholder="Password" required>
<button class="btn btn-lg btn-primary btn-block form-control-button" type="submit">Sign in</button>
<input type="hidden" name="next" value="{{ next }}" />
</form>
</div> <!-- /container -->
<script>
$(document).ready(function() {
});
</script>
{% endblock content %}