mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
The forced first-login change was a plain settings form under a menu whose every link led back to it, asked for an "Old password" the user did not know was the temporary one, and listed Django's four rules as long sentences, with their refusals under the confirmation field. The page is now a card like the sign-in page: "Set your own password", signed in as whom and why, the temporary password named as such, and no menu but a Log out link. A rule list under the two new entries ticks what the browser can check (8 characters, not only digits, both entries match) and says the rest is checked on save; the server's refusals join that list. The eye button shows both new entries. A change chosen from the profile uses the same card with the menu and a Cancel link. base.html gets a navbar block for it. Turkish and Chinese texts.
101 lines
4.6 KiB
HTML
101 lines
4.6 KiB
HTML
{% load static %}
|
|
{% load django_bootstrap5 %}
|
|
{% load i18n %}
|
|
<!DOCTYPE html>
|
|
{% get_current_language as LANGUAGE_CODE %}<html lang="{{ LANGUAGE_CODE }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="description" content="WebVirtCloud panel for manage virtual machine">
|
|
<meta name="author" content="anatoliy.guskov@gmail.com">
|
|
|
|
<title>{% block title %}{% endblock %}</title>
|
|
|
|
<!-- Bootstrap Core CSS -->
|
|
{# error pages render without app_settings: they get zephyr #}
|
|
{% with theme=app_settings.BOOTSTRAP_THEME|default:"zephyr" %}<link href="{% static "css/themes/"|add:theme|add:".min.css" %}" rel="stylesheet" id="wvc_css">{% endwith %}
|
|
|
|
<!-- WebVirtCloud CSS -->
|
|
<link href="{% static "css/webvirtcloud.css" %}" rel="stylesheet">
|
|
|
|
<!-- Aditional CSS -->
|
|
{% block style %}{% endblock %}
|
|
|
|
<!-- Custom Fonts -->
|
|
<link href="{% static "css/bootstrap-icons.min.css" %}" rel="stylesheet" type="text/css">
|
|
|
|
<link rel="shortcut icon" href="{% static 'favicon.ico' %}">
|
|
</head>
|
|
|
|
<body class="pb-5"{% block body_attrs %}{% endblock %}>
|
|
|
|
{% block navbar %}{# a page that leads nowhere else leaves it out #}
|
|
{% if request.user.is_authenticated %}
|
|
{# for the keyboard: past the menu, shown when it has the focus #}
|
|
<a class="visually-hidden-focusable d-block text-center p-2" href="#main">{% trans "Skip to content" %}</a>
|
|
{% include 'navbar.html' %}
|
|
{% endif %}
|
|
{% endblock navbar %}
|
|
|
|
<div role="main" id="main" class="container">
|
|
{% block page_header %}{# a page with a heading of its own leaves it out #}
|
|
{# the heading first, the page's buttons beside it, or under it on a narrow screen #}
|
|
<div class="d-flex flex-wrap align-items-start justify-content-between column-gap-3 row-gap-2 mb-3">
|
|
<h1 class="h3 mb-0">
|
|
{% block page_heading %}
|
|
{% endblock page_heading %}
|
|
</h1>
|
|
<div class="d-flex flex-wrap align-items-center gap-1">
|
|
{% block page_heading_extra %}
|
|
{% endblock page_heading_extra %}
|
|
</div>
|
|
</div>
|
|
{% endblock page_header %}
|
|
{% if request.user.is_authenticated %}
|
|
{# the words session_end.js shows when the session ends while the page is open #}
|
|
<div id="session-ended" hidden data-text="{% trans "You were signed out: this page is no longer updated." %}"
|
|
data-link="{% trans "Sign in again" %}" data-href="{% url 'accounts:login' %}?next={{ request.get_full_path|urlencode }}"></div>
|
|
{% endif %}
|
|
<div id="messages">{% bootstrap_messages %}</div>
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
|
|
{# the dialog every button with data-confirm asks in (confirm_dialog.js) #}
|
|
<div class="modal fade" id="confirm-dialog" tabindex="-1" aria-labelledby="confirm-dialog-title" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title text-break" id="confirm-dialog-title"></h5>
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="{% trans "Close" %}"></button>
|
|
</div>
|
|
<div class="modal-body text-break"></div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">{% trans "Cancel" %}</button>
|
|
<button type="button" class="btn btn-primary" data-confirm-ok></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Bootstrap core JavaScript
|
|
================================================== -->
|
|
<!-- Placed at the end of the document so the pages load faster -->
|
|
<!-- jQuery -->
|
|
<script src="{% static 'js/jquery.js' %}"></script>
|
|
<!-- Bootstrap Core JavaScript -->
|
|
<script src="{% static 'js/bootstrap.bundle.min.js' %}"></script>
|
|
<script src="{% static 'js/confirm_dialog.js' %}"></script>
|
|
<script src="{% static 'js/submit_busy.js' %}"></script>
|
|
<script src="{% static 'js/session_end.js' %}"></script>
|
|
<!-- Table sorting -->
|
|
<script src="{% static 'js/tablesort.min.js' %}"></script>
|
|
<script src="{% static 'js/tablesort.number.min.js' %}"></script>
|
|
<script src="{% static 'js/sort_tables.js' %}"></script>
|
|
<script src="{% static 'js/error_focus.js' %}"></script>
|
|
<script src="{% static 'js/back_links.js' %}"></script>
|
|
<script src="{% static 'js/scroll_rows.js' %}"></script>
|
|
<script src="{% static 'js/navbar_height.js' %}"></script>
|
|
<script src="{% static 'js/console_window.js' %}"></script>
|
|
{% block script %}{% endblock %}
|
|
</body>
|
|
</html>
|