From 33c9bf5cb5f9e29671053db38ec866ccb1cd8eea Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Sat, 6 Apr 2024 12:08:23 -0400 Subject: [PATCH] Updated test views and routes for the new test attributes --- assets/styles/nardah.scss | 8 ++++++++ src/Controllers/TestController.php | 3 ++- views/test/add.twig | 19 ++++++++++++++----- views/test/list.twig | 4 ++-- views/test/view.twig | 2 +- 5 files changed, 27 insertions(+), 9 deletions(-) diff --git a/assets/styles/nardah.scss b/assets/styles/nardah.scss index 5ae8ef4..6f10c84 100644 --- a/assets/styles/nardah.scss +++ b/assets/styles/nardah.scss @@ -3,6 +3,8 @@ $primary-color-highlight: lighten($primary-color, 10%); $nav-height: 65px; +$textarea-min-height: 100px; + body{ margin: 0; padding: $nav-height 0 0; @@ -17,6 +19,12 @@ a{ } } +textarea{ + min-width: 100%; + max-width: 100%; + min-height: $textarea-min-height; +} + #main-nav{ position: fixed; top: 0; diff --git a/src/Controllers/TestController.php b/src/Controllers/TestController.php index ee4ff7a..c687480 100644 --- a/src/Controllers/TestController.php +++ b/src/Controllers/TestController.php @@ -45,7 +45,8 @@ class TestController extends Controller { $params = (array)$request->getParsedBody(); $test = new Test; - $test->date_tag = $params['test_date_tag']; + $test->title = $params['test_title']; + $test->description = $params['test_description']; $test->benchmark_id = $params['test_benchmark']; $test->component_id = $params['test_component']; diff --git a/views/test/add.twig b/views/test/add.twig index ef7b2d5..bda0de6 100644 --- a/views/test/add.twig +++ b/views/test/add.twig @@ -14,14 +14,14 @@
-
+
-
+
+
+
+ +
+
+
diff --git a/views/test/list.twig b/views/test/list.twig index fb583fa..46d0621 100644 --- a/views/test/list.twig +++ b/views/test/list.twig @@ -9,7 +9,7 @@ - + @@ -19,7 +19,7 @@ {% for t in tests %} - + diff --git a/views/test/view.twig b/views/test/view.twig index afd7d51..b5a421a 100644 --- a/views/test/view.twig +++ b/views/test/view.twig @@ -5,7 +5,7 @@ {% block content %}
-

{{ test.name }}

+

{{ test.title }}

{{ test.description }}

Test DateTest title Benchmark Hardware # of Results
{{ t.date_tag }}{{ t.title }} {{ t.benchmark.name }} {{ t.component.name }} {{ t.results | length }}