Skip to content
Snippets Groups Projects
Commit cb391733 authored by Mathias Schreiber's avatar Mathias Schreiber Committed by Benjamin Kott
Browse files

[BUGFIX] Collapse excludefield lists by default

In order to make the exclude field lists shorter and easier to manage,
we collapse checkbox groups with headers.

Resolves: #71122
Releases: master
Change-Id: I5b3cf30619f69b6592efbf926e529b3e9eb1e1a7
Reviewed-on: https://review.typo3.org/44349


Reviewed-by: default avatarMorton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: default avatarMorton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenjamin Kott <info@bk2k.info>
Tested-by: default avatarBenjamin Kott <info@bk2k.info>
parent 75e9d0e0
No related merge requests found
......@@ -142,7 +142,7 @@ class SelectCheckBoxElement extends AbstractFormElement
$html[] = '<div class="panel panel-default">';
if (is_array($group['header'])) {
$html[] = '<div class="panel-heading">';
$html[] = '<a data-toggle="collapse" href="#' . $groupId . '" aria-expanded="true" aria-controls="' . $groupId . '">';
$html[] = '<a data-toggle="collapse" href="#' . $groupId . '" aria-expanded="false" aria-controls="' . $groupId . '">';
$html[] = $group['header']['icon'];
$html[] = $group['header']['title'];
$html[] = '</a>';
......@@ -200,7 +200,9 @@ class SelectCheckBoxElement extends AbstractFormElement
. $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:labels.revertSelection') . '</a>';
}
$html[] = '<div id="' . $groupId . '" class="panel-collapse collapse in" role="tabpanel">';
if (is_array($group['header'])) {
$html[] = '<div id="' . $groupId . '" class="panel-collapse collapse" role="tabpanel">';
}
$html[] = '<div class="table-fit">';
$html[] = '<table class="table table-transparent table-hover">';
$html[] = '<thead>';
......@@ -213,7 +215,9 @@ class SelectCheckBoxElement extends AbstractFormElement
$html[] = '<tbody>' . implode(LF, $tableRows) . '</tbody>';
$html[] = '</table>';
$html[] = '</div>';
$html[] = '</div>';
if (is_array($group['header'])) {
$html[] = '</div>';
}
}
$html[] = '</div>';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment