Skip to content

Commit

Permalink
Small stylistic improvements to Enrollment Flow dispatch and start vi…
Browse files Browse the repository at this point in the history
…ews and to Enrollment Flow Steps index (CFM-428) (#253)
  • Loading branch information
arlen authored Nov 21, 2024
1 parent 814d1e1 commit 71d494b
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,11 @@ declare(strict_types = 1);

$this->Field->disableFormEditMode();

print __d('information', 'plugin.config.none');
?>

<li>
<div class="field">
<?= __d('information', 'plugin.config.none'); ?>
</div>
</li>

23 changes: 12 additions & 11 deletions app/templates/EnrollmentFlowSteps/columns.inc
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
*/

$indexColumns = [
'ordr' => [
'type' => 'echo',
'sortable' => true
],
'description' => [
'type' => 'link',
'sortable' => true,
'class' => 'cm-modal-link nospin', // launch this in a modal
'dataAttrs' => [
['data-cm-modal-title', __d('controller', 'EnrollmentFlowSteps', 1)]
]
],
'ordr' => [
'type' => 'echo',
'sortable' => true
],
'actor_type' => [
'type' => 'enum',
Expand All @@ -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'
// ]
//];
12 changes: 6 additions & 6 deletions app/webroot/css/co-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
8 changes: 4 additions & 4 deletions app/webroot/css/co-responsive.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 71d494b

Please sign in to comment.