2019-12-02 16:45:02 +00:00
|
|
|
{% extends "musician/base.html" %}
|
|
|
|
{% load i18n static %}
|
2019-10-23 11:35:43 +00:00
|
|
|
|
2019-12-02 16:45:02 +00:00
|
|
|
{% block body %}
|
2019-10-23 11:35:43 +00:00
|
|
|
|
2019-12-02 16:45:02 +00:00
|
|
|
<body id="body-login">
|
|
|
|
<div class="jumbotron vertical-center">
|
|
|
|
<div id="login-wrapper" class="container" style="width: 430px;">
|
|
|
|
<div id="login-content" class="rounded">
|
|
|
|
<div id="login-branding">
|
|
|
|
{% block branding %}
|
|
|
|
<h1>
|
|
|
|
<img class="img-fluid" src="{% static 'musician/images/logo-pangea-monocrome-h.png' %}"
|
|
|
|
alt="Pangea.org - Internet etic i solidari" />
|
|
|
|
</h1>
|
|
|
|
{% endblock %}
|
|
|
|
</div><!-- /login-branding -->
|
|
|
|
<div class="mt-5">
|
|
|
|
<form action="{% url 'musician:login' %}" role="form" method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
<input type="hidden" name="next" value="{{ next }}" />
|
2019-10-23 11:35:43 +00:00
|
|
|
|
2019-12-02 16:45:02 +00:00
|
|
|
<div id="div_id_username"
|
|
|
|
class="clearfix control-group {% if form.username.errors %}error{% endif %}">
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="text" name="username" maxlength="100" autocapitalize="off"
|
|
|
|
autocorrect="off" class="form-control textinput textInput" id="id_username" required
|
|
|
|
autofocus placeholder="{{ form.username.label }}"
|
|
|
|
{% if form.username.value %}value="{{ form.username.value }}" {% endif %}>
|
|
|
|
{% if form.username.errors %}
|
|
|
|
<p class="text-error">
|
|
|
|
{{ form.username.errors|striptags }}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="div_id_password"
|
|
|
|
class="clearfix control-group {% if form.password.errors %}error{% endif %}">
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="password" name="password" maxlength="100" autocapitalize="off"
|
|
|
|
autocorrect="off" class="form-control textinput textInput" id="id_password"
|
|
|
|
placeholder="{{ form.password.label }}" required>
|
|
|
|
{% if form.password.errors %}
|
|
|
|
<p class="text-error">
|
|
|
|
{{ form.password.errors|striptags }}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-10-23 11:35:43 +00:00
|
|
|
|
2019-12-02 16:45:02 +00:00
|
|
|
{% if form.non_field_errors %}
|
|
|
|
{% for error in form.non_field_errors %}
|
|
|
|
<div class="well well-small text-error" style="border: none">{{ error }}</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2019-10-23 11:35:43 +00:00
|
|
|
|
2019-12-02 16:45:02 +00:00
|
|
|
<div class="form-actions-no-box">
|
|
|
|
<input type="submit" name="submit" value="{% trans 'Log in' %}"
|
|
|
|
class="btn btn-primary form-control" id="submit-id-submit">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div><!-- /.row-fluid -->
|
|
|
|
</div>
|
|
|
|
<!--/#login-content-->
|
|
|
|
<div id="login-footer">
|
|
|
|
<a href="#password_reset">{% trans "Forgot your password? Click here to recover" %}</a>
|
|
|
|
</div>
|
|
|
|
</div><!-- /#login-wrapper -->
|
|
|
|
</div><!-- /.container-fluid -->
|
|
|
|
</body>
|
|
|
|
{% endblock %}
|