From 782e5190c33c98444c79da05bd030d7f0ab108d3 Mon Sep 17 00:00:00 2001 From: claude Date: Fri, 9 Oct 2026 05:37:39 +0200 Subject: [PATCH] Redesign forms: create workload, search, login, register, profile - create_workload: presets moved above the form, cards per section, sticky submit bar; fixed stray attribute and wrong label target - search: grouped filters, colour-coded result chips, results table with column headers - login/register/profile: labels linked to inputs, autocomplete hints, centred auth card Field ids/names, JS hooks and Django logic are unchanged. --- Templates/OpenBench/create_workload.html | 30 +++-- Templates/OpenBench/login.html | 30 +++-- Templates/OpenBench/profile.html | 22 ++-- Templates/OpenBench/register.html | 44 ++++--- Templates/OpenBench/search.html | 140 ++++++++++++++--------- 5 files changed, 159 insertions(+), 107 deletions(-) diff --git a/Templates/OpenBench/create_workload.html b/Templates/OpenBench/create_workload.html index bc439e1..7edb8b4 100644 --- a/Templates/OpenBench/create_workload.html +++ b/Templates/OpenBench/create_workload.html @@ -22,8 +22,20 @@ {% endblock %} +{% block page_head %}

{{submit_text}}

Pick a preset to fill in the defaults, then adjust anything below.

{% endblock %} + {% block content %} + +
+
+

Presets

+
+ +
+
+
+
{% csrf_token %} @@ -121,7 +133,7 @@

SPSA Input

- +
{% endif %} @@ -187,7 +199,7 @@
- + +
{% if workload == "TEST" or workload == "DATAGEN" %} @@ -269,15 +281,9 @@ - +
+ +
-
-
-
- -
-
-
- {% endblock %} diff --git a/Templates/OpenBench/login.html b/Templates/OpenBench/login.html index 2a77ad4..8a93fdc 100644 --- a/Templates/OpenBench/login.html +++ b/Templates/OpenBench/login.html @@ -1,20 +1,26 @@ {% extends "OpenBench/base.html" %} +{% block page_head %}

Login

Sign in to create and manage tests.

{% endblock %} + {% block content %} -
- {% csrf_token %} -
-
-
-
+
+ + {% csrf_token %} +
+
+
+ + +
+
+ + +
+
-
-
-
-
-
- + +
{% endblock %} diff --git a/Templates/OpenBench/profile.html b/Templates/OpenBench/profile.html index b8cfa48..c8915e9 100644 --- a/Templates/OpenBench/profile.html +++ b/Templates/OpenBench/profile.html @@ -11,12 +11,15 @@ {% endblock %} +{% block page_head %}

Profile

{{ profile.user.username|capfirst }}

{% endblock %} + {% block content %}
{% csrf_token %}
+

Account

@@ -26,39 +29,40 @@
+

Change password

- +
- - + +
-
-
{% csrf_token %}
+

Engines

+ {% for engine, repo in profile.repos.items %}
- + - - + +
{% endfor %} @@ -110,4 +114,4 @@ -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/Templates/OpenBench/register.html b/Templates/OpenBench/register.html index a705cf8..2ea9946 100644 --- a/Templates/OpenBench/register.html +++ b/Templates/OpenBench/register.html @@ -1,26 +1,34 @@ {% extends "OpenBench/base.html" %} +{% block page_head %}

Register

Create an account to start testing.

{% endblock %} + {% block content %} - - {% csrf_token %} -
-
-
- +
+ + {% csrf_token %} +
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
-
- -
-
- -
-
- -
-
-
- + +
{% endblock %} diff --git a/Templates/OpenBench/search.html b/Templates/OpenBench/search.html index 4a6ba15..622405e 100644 --- a/Templates/OpenBench/search.html +++ b/Templates/OpenBench/search.html @@ -27,19 +27,25 @@ {% endblock %} +{% block page_head %}

Search Tests

{% if not tests %}

Leave a filter empty to match everything.

{% endif %}
{% endblock %} + {% block content %} {% if not tests %}
{% csrf_token %}
+
+ +

Who & what

+
-
+
-
+
@@ -48,9 +54,8 @@ {% for name, data in config.engines.items %} {% endfor %} -
+
-

+

+ + +
@@ -78,8 +83,15 @@ -
+
+ +
+ +
+ +

Time & threads

+

+
- + -
+
- -
+
-
-
-
-
- - -
-
- - -
-
-
-
- - -
-
- - -
-
-
-
- - -
-
- - -
-
+ +

Show results

+ +
+ + + + + +
- +
+ +
+ +
+
{% endif %} - - {% for test in tests %} - - - {% include "OpenBench/Blocks/testsummary.html" %} - - {% endfor %} -
{{test.creation|date:"U"}}
+ {% if tests %} +
+
+

Results

+ {{ tests|length }} +
+ + + + + + + + + + + + + + {% for test in tests %} + + + {% include "OpenBench/Blocks/testsummary.html" %} + + {% endfor %} + +
DateAuthorEngineTestDiffTime ControlResult
{{test.creation|date:"U"}}
+
+ {% endif %} {% endblock %}