mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-25 08:43:36 +00:00
- Make first wizard steps for router configuration and Internet connection type private. Since they run after the admin user page, the steps can run for logged in users. - Add option to the Internet connection type wizard, to let the user say that they don't know the type. This allows them to have a stress-free first setup experience. The option can act as if they have don't have public IP address at all. This is an extension of the proposed user experience. - Implement class based views for simplicity. - Update various IDs for consistency (even though other IDs in the networks module don't conform). - Iron out inconsistent terminology. Setup vs Configuration, Help vs. Wizard, etc. Tests performed: - Run first boot wizard from the beginning. Notice that both the wizard steps appear properly after the user login step (without permission denied problems). When not logged in, accessing the wizard steps with URL should redirect to login page. - During first boot wizard, select 'Skip this step' in both the steps after selecting non-default options. Values set should be default options as confirmed from networks page. - During first boot wizard, select non-default values, the values should be set properly as confirmed from networks page. - From the networks page select each value of the wizard. The option should get saved properly. - In case of Internet connection type, when the wizard values changes, the networks page should reflect the value properly. This should also show properly after skipping the step during first boot. - During first boot, the default value for Internet connection type should be 'I don't know' and router configuration should be 'Not configured'. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Nektarios Katakis <iam@nektarioskatakis.xyz>
44 lines
1.2 KiB
HTML
44 lines
1.2 KiB
HTML
{% comment %}
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
{% endcomment %}
|
|
|
|
{% load bootstrap %}
|
|
{% load i18n %}
|
|
|
|
<h3>
|
|
{% blocktrans trimmed %}
|
|
Your Internet Connection Type
|
|
{% endblocktrans %}
|
|
</h3>
|
|
<p>
|
|
{% blocktrans trimmed %}
|
|
The following best describes the type of Internet connection provided
|
|
by your ISP. This information is only used to suggest you necessary
|
|
configuration actions.
|
|
{% endblocktrans %}
|
|
</p>
|
|
|
|
<p>
|
|
{% if internet_connectivity_type == "static_public_ip" %}
|
|
{% blocktrans trimmed %}
|
|
My ISP provides a public IP address that does not change over time.
|
|
{% endblocktrans %}
|
|
{% elif internet_connectivity_type == "dynamic_public_ip" %}
|
|
{% blocktrans trimmed %}
|
|
My ISP provides a public IP address that may change over time.
|
|
{% endblocktrans %}
|
|
{% elif internet_connectivity_type == "private_ip" %}
|
|
{% blocktrans trimmed %}
|
|
My ISP does not provide a public IP address.
|
|
{% endblocktrans %}
|
|
{% else %}
|
|
{% blocktrans trimmed %}
|
|
I do not know the type of connection my ISP provides.
|
|
{% endblocktrans %}
|
|
{% endif %}
|
|
<a href="{% url 'networks:internet-connection-type' %}" class="btn btn-default"
|
|
role="button">
|
|
{% trans 'Update...' %}
|
|
</a>
|
|
</p>
|