From 64e79d1c2370ca4596f6303192309aa30b366270 Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Thu, 21 Nov 2024 14:46:30 -0500 Subject: [PATCH] Small stylistic improvements to Enrollment Flow dispatch and start views and to Enrollment Flow Steps index (CFM-428) --- .../templates/AttributeCollectors/fields.inc | 8 ++++++- app/templates/EnrollmentFlowSteps/columns.inc | 23 ++++++++++--------- app/webroot/css/co-base.css | 12 +++++----- app/webroot/css/co-responsive.css | 8 +++---- 4 files changed, 29 insertions(+), 22 deletions(-) diff --git a/app/plugins/CoreEnroller/templates/AttributeCollectors/fields.inc b/app/plugins/CoreEnroller/templates/AttributeCollectors/fields.inc index 40a5b752..8d3afbde 100644 --- a/app/plugins/CoreEnroller/templates/AttributeCollectors/fields.inc +++ b/app/plugins/CoreEnroller/templates/AttributeCollectors/fields.inc @@ -31,5 +31,11 @@ declare(strict_types = 1); $this->Field->disableFormEditMode(); -print __d('information', 'plugin.config.none'); +?> + +
  • +
    + +
    +
  • diff --git a/app/templates/EnrollmentFlowSteps/columns.inc b/app/templates/EnrollmentFlowSteps/columns.inc index 133c20ea..4ed3e0df 100644 --- a/app/templates/EnrollmentFlowSteps/columns.inc +++ b/app/templates/EnrollmentFlowSteps/columns.inc @@ -26,10 +26,6 @@ */ $indexColumns = [ - 'ordr' => [ - 'type' => 'echo', - 'sortable' => true - ], 'description' => [ 'type' => 'link', 'sortable' => true, @@ -37,6 +33,10 @@ $indexColumns = [ 'dataAttrs' => [ ['data-cm-modal-title', __d('controller', 'EnrollmentFlowSteps', 1)] ] + ], + 'ordr' => [ + 'type' => 'echo', + 'sortable' => true ], 'actor_type' => [ 'type' => 'enum', @@ -54,10 +54,11 @@ $indexColumns = [ ]; // $rowActions appear as row-level menu items in the index view gear icon -$rowActions = [ - [ - 'action' => 'configure', - 'label' => __d('operation', 'configure.plugin'), - 'icon' => 'electrical_services' - ] -]; +// XXX Turn this off, but leave for reference (for now): configure is a tab in the modal dialog +//$rowActions = [ +// [ +// 'action' => 'configure', +// 'label' => __d('operation', 'configure.plugin'), +// 'icon' => 'electrical_services' +// ] +//]; diff --git a/app/webroot/css/co-base.css b/app/webroot/css/co-base.css index f782348d..5df5cd6f 100644 --- a/app/webroot/css/co-base.css +++ b/app/webroot/css/co-base.css @@ -1790,17 +1790,17 @@ li[data-pc-section="emptymessage"] { padding: 0.5em 1em; } /* ENROLLMENT FLOWS: ATTRIBUTE COLLECTOR */ -body.attributecollectors main, -body.basicattributecollectors main { +body.dispatch main, +body.start main { max-width: 800px; margin: 0 auto; } -body.attributecollectors form, -body.basicattributecollectors form { +body.dispatch form, +body.start form { margin-top: 1em; } -body.attributecollectors .submit, -body.basicattributecollectors .submit { +body.dispatch .submit, +body.start .submit { width: 100%; text-align: right; } diff --git a/app/webroot/css/co-responsive.css b/app/webroot/css/co-responsive.css index ac115089..066046f7 100644 --- a/app/webroot/css/co-responsive.css +++ b/app/webroot/css/co-responsive.css @@ -590,12 +590,12 @@ font-size: 1.7em; margin: 0.5em 0 0.25em; } - body.attributecollectors #main-wrapper, - body.basicattributecollectors #main-wrapper { + body.dispatch #main-wrapper, + body.start #main-wrapper { background-color: var(--cmg-color-bg-003); } - body.attributecollectors #main, - body.basicattributecollectors #main { + body.dispatch #main, + body.start #main { background-color: var(--cmg-color-body-bg); margin: 4em auto; padding: 0 2em;