{% extends "pbp_store/store_base.html" %}
{% load i18n %}
{% load url from future %}

{% block title %}{% trans "Signin" %}{% endblock title %}

{% block right-side %}{% endblock right-side %}

{% block body %}
<div id="store_details_sidebar">
<form action="" method="post">
  {% csrf_token %}
  <fieldset>
    <legend>{% trans "Log in" %}</legend>
    {{ form.non_field_errors }}
    {% for field in form %}
    {{ field.errors }}
    {% comment %} Displaying checkboxes differently {% endcomment %}
    {% if field.name == 'remember_me' %}
    <p class="checkbox">
    <label for="id_{{ field.name }}">{{ field }} {{ field.label }}</label>
    </p>
    {% else %}
    <p>
    {{ field.label_tag }}
    {{ field }}
    </p>
    {% endif %}
    {% endfor %}
  </fieldset>
  <input type="submit" value="{% trans "Log in" %}" />
  <p class="forgot-password"><a href='{% url 'password_reset' %}' title="{% trans "Forgot your password?" %}">{% trans "Forgot your password?" %}</a></p>
  <p class="forgot-password"><a href="{% url 'profile_create' %}">Don't have an account? Click here to create one now.</a></p>
  {% if next %}<input type="hidden" name="next" value="{{ next }}" />{% endif %}
</form>
</div>
{% endblock body %}
