Skip to content

Commit

Permalink
fix: local login template
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Oct 13, 2023
1 parent 5308934 commit 61421b6
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions ricerca_app/templates/login.html
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 %}

0 comments on commit 61421b6

Please sign in to comment.