mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-21 18:22:27 +02:00
* Correct invalid html * Add bundle files for CDN CSS and javascript * Replace static javascript refs with bundles * Change password reset templates to use a basefile And switch to use bundles * Remove third party libraries * Remove awkward margin styling on navbars
102 lines
3.7 KiB
HTML
102 lines
3.7 KiB
HTML
{% load staticfiles %}
|
|
{% load bootstrap %}
|
|
{% load i18n %}
|
|
<html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="description" content="">
|
|
<meta name="author" content="">
|
|
<title>{{ SITE_NAME }} - Login</title>
|
|
|
|
{% include 'bundles/bootstrap-css.html' %}
|
|
{% include 'bundles/fontawesome.html' %}
|
|
<style>
|
|
body {
|
|
background: url('{% static 'img/index_images/index_blank_bg.jpg' %}') no-repeat scroll;
|
|
-webkit-background-size: cover;
|
|
-moz-background-size: cover;
|
|
-o-background-size: cover;
|
|
background-size: cover;
|
|
}
|
|
|
|
.panel-transparent {
|
|
background: rgba(48, 48, 48, 0.7);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.panel-body {
|
|
|
|
}
|
|
|
|
#lang_select {
|
|
width: 40%;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container" style="margin-top:150px">
|
|
<div class="col-md-4 col-md-offset-4">
|
|
{% if messages %}
|
|
{% for message in messages %}
|
|
<div class="alert alert-{{ message.level_tag}}">{{ message }}</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
<div class="panel panel-default panel-transparent">
|
|
<div class="panel-body">
|
|
<form class="form-signin" role="form" action="{% url 'auth_login_user' %}" method="POST">
|
|
{% csrf_token %}
|
|
<h2 class="form-signin-heading text-center">{% trans "Please sign in" %}</h2>
|
|
{{ form|bootstrap }}
|
|
<input type="hidden" name="next" value="{{ request.GET.next }}" />
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Sign in" %}</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<a href="{% url 'password_reset' %}" class="btn btn-lg btn-danger btn-block">{% trans "Reset" %}</a>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<a href="{% url 'auth_register_user' %}" class="btn btn-success btn-block btn-lg">{% trans "Register" %}</a>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<div class="col-md-12">
|
|
<p style="text-align:center">
|
|
<a href="{% url 'auth_sso_login' %}">
|
|
<img src="{% static 'img/sso/EVE_SSO_Login_Buttons_Large_Black.png' %}" border=0>
|
|
</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="dropdown">
|
|
<form action="{% url 'set_language' %}" method="post">
|
|
{% csrf_token %}
|
|
<input name="next" type="hidden" value="{{ request.get_full_path|slice:'3:' }}" />
|
|
<select onchange="this.form.submit()" class="form-control" id="lang_select" name="language">
|
|
{% get_language_info_list for LANGUAGES as languages %}
|
|
{% for language in languages %}
|
|
<option value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} selected="selected"{% endif %}>
|
|
{{ language.name_local }} ({{ language.code }})
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% include 'bundles/bootstrap-js.html' %}
|
|
</body>
|
|
</html>
|