summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authore0ipso2017-09-15 15:27:27 +0200
committerMateu Aguiló Bosch2017-09-15 15:27:27 +0200
commitab56e9e0f1860bd34b32f4bd82ca771613000d3f (patch)
tree2d6e6f5f03ce52be9a654066b260e508d81f01bd
parent18630bd4f542d46e5a3e138bfa21288525effe3d (diff)
fix(UX): Use dl to describe options (#2909112 by e0ipso)
-rw-r--r--src/Form/JsonapiResourceConfigForm.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/Form/JsonapiResourceConfigForm.php b/src/Form/JsonapiResourceConfigForm.php
index 3e32e8a..c58b181 100644
--- a/src/Form/JsonapiResourceConfigForm.php
+++ b/src/Form/JsonapiResourceConfigForm.php
@@ -303,17 +303,20 @@ class JsonapiResourceConfigForm extends EntityForm {
$overrides_form['overrides']['fields'] = [
'#type' => 'details',
'#title' => $this->t('Fields'),
- '#description' => $this->t('Override configuration for the resource fields.'),
'#open' => TRUE,
];
+ $markup .= '';
+ $markup .= '<dl>';
+ $markup .= '<dt>' . t('Disabled') . '</dt>';
+ $markup .= '<dd>' . t('Check this if you want to disable this field completely. Disabling required fields will cause problems when writing to the resource.') . '</dd>';
+ $markup .= '<dt>' . t('Alias') . '</dt>';
+ $markup .= '<dd>' . t('Overrides the field name with a custom name. Example: Change "field_tags" to "tags".') . '</dd>';
+ $markup .= '<dt>' . t('Enhancer') . '</dt>';
+ $markup .= '<dd>' . t('Select an enhancer to manipulate the public output coming in and out.') . '</dd>';
+ $markup .= '</dl>';
$overrides_form['overrides']['fields']['info'] = [
- '#theme' => 'item_list',
- '#items' => [
- $this->t('<strong>Disabled</strong>: Check this if you want to disable this field completely. Disabling required fields will cause problems when writing to the resource.'),
- $this->t('<strong>Alias</strong>: Overrides the field name with a custom name. Example: Change "field_tags" to "tags".'),
- $this->t('<strong>Enhancer</strong>: Select an enhancer to manipulate the public output coming in and out.'),
- ],
+ '#markup' => $markup,
];
$overrides_form['overrides']['fields']['resourceFields'] = [