161 lines
7.1 KiB
HTML
161 lines
7.1 KiB
HTML
|
||
{% load i18n static %}
|
||
|
||
<!doctype html>
|
||
<html lang="en">
|
||
<head>
|
||
{% block head %}
|
||
{% block meta %}
|
||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
<meta name="robots" content="NONE,NOARCHIVE" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<meta name="description" content="">
|
||
<meta name="author" content="Pangea">
|
||
{% endblock %}
|
||
<title>{% block title %}{% if title %}{{ title }} – {% endif %}IdHub{% endblock %}</title>
|
||
|
||
<!-- Bootstrap core CSS -->
|
||
{% block style %}
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
|
||
<link rel="stylesheet" href= "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
|
||
<link href="{% static "/css/bootstrap.min.css" %}" rel="stylesheet">
|
||
|
||
<style>
|
||
.bd-placeholder-img {
|
||
font-size: 1.125rem;
|
||
text-anchor: middle;
|
||
-webkit-user-select: none;
|
||
-moz-user-select: none;
|
||
user-select: none;
|
||
}
|
||
|
||
@media (min-width: 768px) {
|
||
.bd-placeholder-img-lg {
|
||
font-size: 3.5rem;
|
||
}
|
||
}
|
||
</style>
|
||
|
||
|
||
<!-- Custom styles for this template -->
|
||
<link href="{% static "/css/dashboard.css" %}" rel="stylesheet">
|
||
{% endblock %}
|
||
{% endblock %}
|
||
</head>
|
||
<body id="body-login">
|
||
<header class="navbar navbar-dark sticky-top bg-grey flex-md-nowrap p-0 shadow">
|
||
<div class="navbar-nav navbar-sub-brand">
|
||
</div>
|
||
<div class="navbar-nav">
|
||
</div>
|
||
</header>
|
||
|
||
<div class="container-fluid">
|
||
<div class="row">
|
||
<main class="col-md-12 bt-5">
|
||
{% block messages %}
|
||
{% for message in messages %}
|
||
<div class="alert alert-{{ message.tags|default:'info' }} alert-dismissible fade show" role="alert">
|
||
{{ message }}
|
||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||
<span aria-hidden="true">×</span>
|
||
</button>
|
||
</div>
|
||
{% endfor %}
|
||
{% endblock messages %}
|
||
|
||
<div class="jumbotron vertical-center">
|
||
<div id="login-wrapper" class="container" style="width: 430px;">
|
||
<div id="login-content" class="rounded">
|
||
<div id="login-branding">
|
||
{% block branding %}
|
||
<h1>
|
||
<img class="img-fluid" src="{% static '/images/logo-pangea-monocrome-h.png' %}"
|
||
alt="Pangea.org - Internet etic i solidari" />
|
||
</h1>
|
||
{% endblock %}
|
||
</div><!-- /login-branding -->
|
||
<div class="mt-5">
|
||
<form action="{% url 'idhub:login' %}" role="form" method="post">
|
||
{% csrf_token %}
|
||
<input type="hidden" name="next" value="{{ next }}" />
|
||
|
||
<div id="div_id_username"
|
||
class="clearfix control-group {% if form.username.errors %}error{% endif %}">
|
||
<div class="form-group">
|
||
<input type="text" name="username" maxlength="100" autocapitalize="off"
|
||
autocorrect="off" class="form-control textinput textInput" id="id_username" required
|
||
autofocus placeholder="{{ form.username.label }}"
|
||
{% if form.username.value %}value="{{ form.username.value }}" {% endif %}>
|
||
{% if form.username.errors %}
|
||
<p class="text-error">
|
||
{{ form.username.errors|striptags }}
|
||
</p>
|
||
{% endif %}
|
||
</div>
|
||
</div>
|
||
|
||
<div id="div_id_password"
|
||
class="clearfix control-group {% if form.password.errors %}error{% endif %}">
|
||
<div class="form-group">
|
||
<input type="password" name="password" maxlength="100" autocapitalize="off"
|
||
autocorrect="off" class="form-control textinput textInput" id="id_password"
|
||
placeholder="{{ form.password.label }}" required>
|
||
{% if form.password.errors %}
|
||
<p class="text-error">
|
||
{{ form.password.errors|striptags }}
|
||
</p>
|
||
{% endif %}
|
||
</div>
|
||
</div>
|
||
|
||
{% if form.non_field_errors %}
|
||
{% for error in form.non_field_errors %}
|
||
<div class="well well-small text-error" style="border: none">{{ error }}</div>
|
||
{% endfor %}
|
||
{% endif %}
|
||
|
||
<div class="form-actions-no-box">
|
||
<input type="submit" name="submit" value="{% trans 'Log in' %}"
|
||
class="btn btn-primary form-control" id="submit-id-submit">
|
||
</div>
|
||
</form>
|
||
</div><!-- /.row-fluid -->
|
||
</div>
|
||
<!--/#login-content-->
|
||
<div id="login-footer">
|
||
<a href="#password_reset" data-toggle="modal" data-target="#forgotPasswordModal">{% trans "Forgot your password? Click here to recover" %}</a>
|
||
</div>
|
||
</div><!-- /#login-wrapper -->
|
||
</div><!-- /.jumbotron -->
|
||
|
||
<!-- Modal -->
|
||
<div class="modal fade" id="forgotPasswordModal" tabindex="-1" role="dialog" aria-labelledby="forgotPasswordModalLabel" aria-hidden="true">
|
||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<h5 class="modal-title" id="forgotPasswordModalLabel">{% trans "Forgot your password?" %}</h5>
|
||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||
<span aria-hidden="true">×</span>
|
||
</button>
|
||
</div>
|
||
<div class="modal-body">
|
||
{% blocktrans trimmed with support_email="suport@pangea.org" %}
|
||
Send an email to <a href="mailto:{{ support_email }}">{{ support_email }}</a> including your username and we will provide instructions.
|
||
{% endblocktrans %}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</main>
|
||
</div>
|
||
</div>
|
||
|
||
<script src="/static/js/bootstrap.bundle.min.js"></script>
|
||
<script src="https://cdn.jsdelivr.net/npm/feather-icons@4.28.0/dist/feather.min.js" integrity="sha384-uO3SXW5IuS1ZpFPKugNNWqTZRRglnUJK6UAZ/gxOX80nxEkN9NcGZTftn6RzhGWE" crossorigin="anonymous"></script>
|
||
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.9.4/dist/Chart.min.js" integrity="sha384-zNy6FEbO50N+Cg5wap8IKA4M/ZnLJgzc6w2NqACZaK0u0FXfOWRRJOnQtpZun8ha" crossorigin="anonymous"></script>
|
||
<script src="/static/js/dashboard.js"></script>
|
||
</body>
|
||
</html>
|