{% extends "registration/base.html" %}
{% load i18n %}

{% block title-page %}{% trans "Login" %}{% endblock %}

{% block extra_link %}
  {% include "open-graph.html" %}
{% endblock %}

{% block content_box %}
  <div class="row">
    {% if form.password.errors or form.username.errors %}
      <div class="login-form-errors">
        {% include "display-form-errors.html" %}
      </div>
    {% endif %}
    <div class="col-xs-6">
      <div class="login-form">
        <form method="POST">
         {% csrf_token %}
          <div class="input-group">
            <span class="input-group-addon">
              <i class="fa fa-user"></i>
            </span>
            <input type="text" name="username" class="form-control">
          </div>
          <div class="input-group">
            <span class="input-group-addon">
              <i class="fa fa-lock"></i>
            </span>
            <input type="password" name="password" class="form-control">
          </div>
          <button type="submit" class="btn btn-success">Sign in</button>
        </form>
      </div>
    </div>
    <div class="col-xs-6">
      <h4 style="padding-top: 0; margin-top: 20px;">{% trans "Login with SSO" %}</h4>
      <form method="POST">
         {% csrf_token %}
          <button type="submit" class="btn btn-success">{% trans "Click here!" %}</button>
          <input type="hidden" name="username">
          <input type="hidden" name="password">
          <input type="hidden" name="auth_type" value="saml2">
        </form>
    </div>
  </div>
{% endblock %}
