From 63b73b4102f12db64790926e041c75baad5ef020 Mon Sep 17 00:00:00 2001 From: Peter van Arkel Date: Tue, 1 Dec 2026 02:04:33 +0100 Subject: [PATCH] Refine PHP settings and move checklist access to Support --- .../templates/hosting/getting_started.html | 6 ++++ .../templates/hosting/site_php_settings.html | 28 ++++++++++--------- .../hosting/workspace_onboarding.html | 15 +++++----- src/coulobre/hosting/test_workspaces.py | 17 +++++++++++ src/coulobre/hosting/urls.py | 2 ++ src/coulobre/hosting/workspace_onboarding.py | 25 ++++++++++++++--- src/coulobre/hosting/workspaces.py | 12 +++++--- 7 files changed, 76 insertions(+), 29 deletions(-) create mode 100644 src/coulobre/hosting/templates/hosting/getting_started.html diff --git a/src/coulobre/hosting/templates/hosting/getting_started.html b/src/coulobre/hosting/templates/hosting/getting_started.html new file mode 100644 index 0000000..4ba1141 --- /dev/null +++ b/src/coulobre/hosting/templates/hosting/getting_started.html @@ -0,0 +1,6 @@ +{% extends "hosting/workspace_page.html" %} +{% block title %}Getting started · Coulobre Panel{% endblock %} +{% block page_title %}Getting started{% endblock %} +{% block page_content %} + {% include "hosting/workspace_onboarding.html" %} +{% endblock %} diff --git a/src/coulobre/hosting/templates/hosting/site_php_settings.html b/src/coulobre/hosting/templates/hosting/site_php_settings.html index 8e5f4d3..6d85904 100644 --- a/src/coulobre/hosting/templates/hosting/site_php_settings.html +++ b/src/coulobre/hosting/templates/hosting/site_php_settings.html @@ -2,25 +2,27 @@

PHP settings

+ {% if website_php_version %}

Active version PHP {{ website_php_version }}

{% endif %} + {% if website_php_version_job and website_php_version_job.finished_at is None %} +

Changing to PHP {{ website_php_version_job.requested_version }}. Reload this page to check progress.

+ {% elif website_php_version_job.problem %} +

The change to PHP {{ website_php_version_job.requested_version }} needs attention.

+ {% if is_operator %}

{{ website_php_version_job.problem }}

{% endif %} + {% endif %} {% if website_php_job.state == "queued" or website_php_job.state == "running" %}

PHP settings update {{ website_php_job.state }}.

{% elif can_change_php_settings and website_php_job.problem %}

{{ website_php_job.problem }}

{% endif %}
- {% if can_change_php_settings and website_php_job.state != "queued" and website_php_job.state != "running" %} - Change PHP settings - {% endif %} +
+ {% if can_change_php_version %} + Change PHP version + {% endif %} + {% if can_change_php_settings and website_php_job.state != "queued" and website_php_job.state != "running" %} + Change PHP settings + {% endif %} +
- {% if website_php_version %}

Active version PHP {{ website_php_version }}

{% endif %} - {% if website_php_version_job and website_php_version_job.finished_at is None %} -

Changing to PHP {{ website_php_version_job.requested_version }}. Reload this page to check progress.

- {% elif website_php_version_job.problem %} -

The change to PHP {{ website_php_version_job.requested_version }} needs attention.

- {% if is_operator %}

{{ website_php_version_job.problem }}

{% endif %} - {% endif %} - {% if can_change_php_version %} - Change PHP version - {% endif %} {% include "hosting/php_setting_values.html" with limits=website_php_settings only %} diff --git a/src/coulobre/hosting/templates/hosting/workspace_onboarding.html b/src/coulobre/hosting/templates/hosting/workspace_onboarding.html index b4a8ede..b24dabe 100644 --- a/src/coulobre/hosting/templates/hosting/workspace_onboarding.html +++ b/src/coulobre/hosting/templates/hosting/workspace_onboarding.html @@ -1,18 +1,17 @@ -{% if onboarding.dismissed %} -
- {% csrf_token %} - -
-{% elif onboarding.steps or onboarding.enable_customer %} +{% if onboarding.steps or onboarding.enable_customer %}

{{ onboarding.title }}

{% csrf_token %} - + {% if onboarding.dismissed %} + + {% else %} + + {% endif %}
-