Template source: _signin_root.html

{% load i18n %}

{% load tabindex %}
{% load secure_url %}
{{ auth_form.media }}
{% block social_login %}
<div class="darkbar-container">
<!--
    <section class="darkbar">
        <div class="button-container">
            <a class="btn btn-facebook" onclick="document.getElementById('notice-signin').style.display='block'"><i class="ss-facebook ss-large ss-social-regular"></i> Sign-in with Facebook</a>
            <a onclick="return openPopup(this, true);" href="//{{ request.get_host }}{% url 'social:begin' 'twitter' %}" class="btn btn-twitter"><i class="ss-twitter ss-large ss-social-regular"></i> Sign-in with Twitter</a>
        </div>
        <span id="notice-signin" class="appendtop-10" style="display:none;">
          <div>Unfortunately Facebook login is not available at this time. Please contact <a>info@gobid.ca</a> for assistance.</div>
        </span>
        {% block or %}
        <div class="or lato"><em>{% trans "or" %}</em></div>
        {% endblock %}
    </section>
-->
</div>
{% endblock %}
  <form action="{% secure_url 'account.views.login' %}" method="GET" >{% csrf_token %}
    <fieldset>
    {% for error in auth_form.non_field_errors %}
      <p class="appendleft-20 appendbottom-20 appendtop-10"> 
       <span class='label label-danger'>{{ error }}</span>
      </p>
    {% endfor %}
  <div class="row-fluid">
    <div class="span12 {% if auth_form.username.errors %} errorlist{% endif %}">
      <div class="appendleft-20 full">
          {{ auth_form.username.label_tag }}
          {{ auth_form.username|tabindex:1 }}
          {% if auth_form.username.errors %}
            <span class="label label-important">{{ auth_form.username.errors|first }}</span>
          {% endif %}
         </div>
       </div>
  </div>
  <div class="row-fluid">
     <div class="span12 {% if auth_form.password.errors %} errorlist{% endif %}">
       <div class="appendleft-20 full">
          {{ auth_form.password.label_tag }}
          {{ auth_form.password|tabindex:2 }}
          {% if auth_form.password.errors %}
            <span class="label label-important">{{ auth_form.password.errors|first }}</span>
          {% endif %}
       </div>
      </div>
    </div>
    {% block createaccount %}
    <div class="appendleft-20">
      {% if request.GET.next %}
      {% comment %}Since the user is signing up because they are doing something that requires a logged-in user, short-circuit
      the default signup process and close the modal immediately after creating the account.{% endcomment %}
      <strong>{% trans "Or if you don't have an account, create one" %} <a href="javascript:;" onclick="$(document).trigger('open_signup', {next: 'close'})">{% trans "here" %}</a>.</strong>
      {% else %}
      <strong>{% trans "Or if you don't have an account, create one" %} <a href="javascript:;" onclick="$(document).trigger('open_signup')">{% trans "here" %}</a>.</strong>
      {% endif %}
    {% endblock %}
    </fieldset>
  {% block actioncontainer %}  
  <div class="action-button-container">
    <div class="wrapper">
    <p class="pull-left">
      <a class="recover trigger-modal bold" id="reset-password" data-width="530" data-class="modal-password-recover" data-title="{% trans 'Password Recovery' %}" href="javascript:;" data-href="{% url 'account.views.recover_modal' %}"><i class="ss-lock"></i> {% trans "Password Recovery Help" %}</a>
    </p>
     <input type="hidden" name="next" value="{{ next }}"> {# This passes on the redirect information to the POST #}
     <input type="submit" value="{% trans 'Sign in' %}" class="btn btn-green btn-wide"/>
    </div>
  </div>
  {% endblock %}
  </form>


<script type="text/javascript">
var signin_ajax_response = function($content, data, textStatus, jqXHR) {
    {# SOCO-1033: Make sure the newly-loaded content has the required modal trigger #}
    $content.find('.trigger-modal').modalform();
}
</script>
{{ auth_form.ajax_callback }}