mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-04 08:13:38 +00:00
- Ensure that .sr-only is replaced with newer classes. - Ensure that icons are present for all alerts. - Use flex-box for display of icons on the left center of the alert. - .close has been renamed to .btn-close. - × is no longer required for close buttons. Tests: - Visually verify all the changes by triggering them with code changes. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
73 lines
2.1 KiB
HTML
73 lines
2.1 KiB
HTML
{% extends "base_firstboot.html" %}
|
|
{% comment %}
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
{% endcomment %}
|
|
|
|
{% load bootstrap %}
|
|
{% load i18n %}
|
|
{% load static %}
|
|
|
|
{% block content %}
|
|
<h2>{% trans "Administrator Account" %}</h2>
|
|
|
|
{% if not admin_users %}
|
|
<p>
|
|
{% blocktrans trimmed %}
|
|
Choose a username and password to access this web interface.
|
|
The password can be changed later. This user will be granted
|
|
administrative privileges. Other users can be added later.
|
|
{% endblocktrans %}
|
|
</p>
|
|
|
|
<form class="form form-create" method="post">
|
|
{% csrf_token %}
|
|
|
|
{{ form|bootstrap }}
|
|
|
|
<input type="submit" class="btn btn-primary"
|
|
value="{% trans "Create Account" %}"/>
|
|
</form>
|
|
{% else %}
|
|
<div class="alert alert-danger d-flex align-items-center" role="alert">
|
|
<div class="me-2">
|
|
<span class="fa fa-exclamation-triangle" aria-hidden="true"></span>
|
|
<span class="visually-hidden">{% trans "Caution:" %}</span>
|
|
</div>
|
|
<div>
|
|
{% blocktrans trimmed %}
|
|
An administrator account already exists.
|
|
{% endblocktrans %}
|
|
</div>
|
|
</div>
|
|
|
|
<p>
|
|
{% blocktrans trimmed %}
|
|
The following administrator accounts exist in the system.
|
|
{% endblocktrans %}
|
|
</p>
|
|
|
|
<ul>
|
|
{% for user in admin_users %}
|
|
<li>{{ user }} </li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
<p>
|
|
{% blocktrans trimmed %}
|
|
Delete these accounts from command line and refresh the page to create
|
|
an account that is usable with {{ box_name }}. On the command line run
|
|
the command "echo '{"args": ["USERNAME", "PASSWORD"], "kwargs": {}}' |
|
|
sudo /usr/share/plinth/actions/actions users remove_user". If an
|
|
account is already usable with {{ box_name }}, skip this step.
|
|
{% endblocktrans %}
|
|
</p>
|
|
|
|
<form class="form form-skip" method="post">
|
|
{% csrf_token %}
|
|
|
|
<input type="submit" class="btn btn-link" name="skip"
|
|
value="{% trans "Skip this step" %}"/>
|
|
</form>
|
|
{% endif %}
|
|
{% endblock %}
|