{% extends "gestion/base.html" %}
{% load static %}
{% load i18n %}
{% block titre %}{% trans "L'Ernestophone : Connexion" %}{% endblock %}
{% block content %}
		<!-- Main -->
			<div id="main"  style="background-color:rgb(228, 82, 47);">


			<!-- One -->
				<section class="wrapper style1" >
					<div class="inner">
						<h2>{% trans "Connexion" %} :</h2>

						<div class="row uniform">
								<div class="6u 12u$(xsmall)">
                  <div id="Connexion">
                  {% if form.errors %}
                  <p>{% trans "Mot de passe ou nom d'utilisateur incorrect" %}</p>
                  {% endif %}
                  {% if error %}
                  <p>{{ error }}</p>
                  {% endif %}
                  <form method="post" action="{% url 'login' %}">
                  {% csrf_token %}
                  {{ form.as_p }}
                  <input type="submit" value="{% trans "Connexion" %}" />
                  {% if next %}
                  <input type="hidden" name="next" value={{ next }} />
                  {% else %}
                  <input type="hidden" name="next" value="{% url 'home' %}" />
                  {% endif %}
                  </form>
                  </div>
	</div>
		<div class="6u 12u$(xsmall)">
			<span class="image fit">
				{% if photo %}
		    <img src="{{photo.image.url}}" alt="" />  <div style="position:absolute;z-index:1;right:0;bottom:0">
		    {% if photo.url %}
		    <a href="{{photo.url}}" target="_blank" class="icon fa-copyright" style="color: {{photo.color}}"> {% if photo.auteur %}{{photo.auteur}}{%endif%}</a>
		    {% elif photo.auteur %}
		    <div class="icon fa-copyright" style="color: {{photo.color}}" > {{photo.auteur}}</div>

		    {% endif %}
		    </div>
		    {% else %}
				<img src="{% static 'images/connect.jpg' %}" alt="" />  <div style="position:absolute;z-index:1;right:0;bottom:0">
			  <a href="https://evarin.fr/" target="_blank" class="icon fa-copyright"> Evarin</a>
			</div>
			{% endif %}
		</span>
		</div>



						</div>




<div>
				</section>



			</div>

{% endblock %}
