-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5308934
commit 61421b6
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{% extends "storage_crud_base.html" %} | ||
{% load i18n %} | ||
|
||
|
||
{% block centered_container %} | ||
<div class="container"> | ||
<div class="pb-5 bd-content clearfix"> | ||
<h4 class="float-left"> | ||
{% trans "Effettua l'accesso" %} | ||
</h4> | ||
</div> | ||
{% if request.user.is_authenticated %} | ||
<meta http-equiv="REFRESH" content="0;url={% url 'helpdesk:home' %}"> | ||
{% else %} | ||
<div class="login-panel panel panel-default"> | ||
<div class="panel-body"> | ||
<form role="form" method='post' action='./'> | ||
{% if form.errors %} | ||
<div class="alert alert-danger">{% trans "Your username and password didn't match. Please try again." %}</div> | ||
{% endif %} | ||
<fieldset> | ||
<div class="form-group"> | ||
<input class="form-control" placeholder="Username" name="username" type="text" autofocus> | ||
</div> | ||
<div class="form-group"> | ||
<input class="form-control" placeholder="Password" name="password" type="password" value=""> | ||
</div> | ||
<div class="checkbox"> | ||
<label> | ||
<input name="remember" type="checkbox" value="Remember Me">{% trans 'Remember Me' %} | ||
</label> | ||
</div> | ||
<input class="btn btn-lg btn-success btn-block" type='submit' value='{% trans "Login" %}' /> | ||
<input type="hidden" name="next" value="{% if next %}{{ next }}{% else %}../{% endif %}" /> | ||
</fieldset> | ||
{% csrf_token %}</form> | ||
</div> | ||
</div> | ||
{% endif %} | ||
</div> | ||
{% endblock %} |