diff options
author | e0ipso | 2017-09-15 13:27:27 (GMT) |
---|---|---|
committer | Mateu Aguiló Bosch | 2017-09-15 13:27:27 (GMT) |
commit | ab56e9e0f1860bd34b32f4bd82ca771613000d3f (patch) | |
tree | 2d6e6f5f03ce52be9a654066b260e508d81f01bd | |
parent | 18630bd4f542d46e5a3e138bfa21288525effe3d (diff) |
fix(UX): Use dl to describe options (#2909112 by e0ipso)
-rw-r--r-- | src/Form/JsonapiResourceConfigForm.php | 17 |
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'] = [ |