1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 17:36:05 +00:00
webvirtcloud/accounts/templates/login.html
catborise 50fa42181b fix(ui): the settings index stays at hand on a phone; one wording in Turkish
On a phone the settings page opened with its group index on seven lines, and
the index was gone once the page, nine screens long, was scrolled. Below the lg
breakpoint it is now one row that scrolls sideways and sticks under the navbar
(navbar_height.js gives what sticks the navbar's height, which differs between
themes and grows when the phone menu opens).

Turkish said "VM" in 65 messages and "sanal makine" everywhere else; it now
says "sanal makine" throughout. Headings and buttons that still capitalised
every word follow the panel's sentence case, in English too (Change password,
SSH keys, Power off, ...). Wrong translations fixed: a password that is set
read as the command "Ayarla", the firmware setting was called a chip type,
Create flavor said Create user, the console viewport setting was called a port,
a DRBD typo, and host and interface are sunucu and arabirim as on every page.
A group's save button reads "Kaydet: <group>".
2026-11-22 16:43:34 +03:00

70 lines
3.9 KiB
HTML

{% extends "base.html" %}
{% load static %}
{% load i18n %}
{% block title %}{% trans "WebVirtCloud" %} - {% trans "Sign in" %}{% endblock title %}
{% block page_header %}{% endblock page_header %}{# the page has its own heading #}
{% block content %}
<div class="row justify-content-center pt-5">
<div class="col-sm-9 col-md-7 col-lg-6">
<div class="card shadow-sm">
<div class="card-body p-4 p-sm-5">
<div class="text-center mb-4">
<div class="d-inline-block rounded-3 bg-primary text-white fs-2 lh-1 p-3 mb-3"><i class="bi bi-hdd-network"></i></div>
<h1 class="h3 fw-bold mb-1">WebVirtCloud</h1>
<p class="text-body-secondary small mb-0">{% trans "Virtualization management console" %}</p>
</div>
{% if app_settings.LOGIN_NOTICE %}
<div class="alert alert-info d-flex align-items-center mb-4" role="note">
<i class="bi bi-info-circle-fill fs-5 me-2 flex-shrink-0"></i>
<div>{{ app_settings.LOGIN_NOTICE }}</div>
</div>
{% endif %}
{% if form.errors %}
<div class="alert alert-danger d-flex align-items-center mb-4" role="alert">
<i class="bi bi-exclamation-triangle-fill fs-5 me-2 flex-shrink-0"></i>
<div>{% trans "Incorrect username or password." %}</div>
</div>
{% endif %}
<form id="form-signin" method="post" aria-label="Login form">
{% csrf_token %}
<div class="mb-3">
<label class="form-label small fw-medium" for="id_username">{% trans "Username" %}</label>
<div class="input-group">
<span class="input-group-text"><i class="bi bi-person"></i></span>
<input type="text" id="id_username" class="form-control" name="username" value="{{ form.username.value|default:'' }}" placeholder="{% trans 'Enter username' %}" autocomplete="username" autocapitalize="none" autocorrect="off" {% if not form.non_field_errors %}autofocus {% endif %}required>
</div>
</div>
<div class="mb-4">
<label class="form-label small fw-medium" for="id_password">{% trans "Password" %}</label>
<div class="input-group">
<span class="input-group-text"><i class="bi bi-shield-lock"></i></span>
<input type="password" id="id_password" class="form-control{% if form.non_field_errors %} is-invalid{% endif %}" name="password" placeholder="{% trans 'Enter password' %}" autocomplete="current-password" {% if form.non_field_errors %}autofocus {% endif %}required>
<button class="btn btn-outline-secondary" type="button" id="btn-toggle-pwd" aria-label="{% trans 'Toggle password visibility' %}">
<i class="bi bi-eye" id="toggle-icon"></i>
</button>
</div>
<div id="caps-lock" class="form-text d-none"><i class="bi bi-capslock-fill text-warning me-1"></i>{% trans "Caps Lock is on" %}</div>
</div>
<input type="hidden" name="next" value="{{ next }}">
<button id="btn-signin" class="btn btn-primary w-100 py-2" type="submit">
<i class="bi bi-box-arrow-in-right me-1"></i>
<span id="btn-text">{% trans "Sign in" %}</span>
</button>
</form>
</div>
</div>
</div>
</div>
{% endblock %}
{% block script %}
<script src="{% static 'js/login_form.js' %}"></script>
{% endblock script %}