Commit 20c8d8db authored by Georg Ringer's avatar Georg Ringer Committed by Wouter Wolters
Browse files

[TASK] Restyle record listing in page module

The styling of records, e.g. fe_users, in the page module
needs to be adopted to the new backend skinning.

Change-Id: I27eb379c3cf693e09a71d223a6e5b68796bbb033
Resolves: #68011
Releases: master
Reviewed-on: http://review.typo3.org/41040


Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
parent 2ab2973e
......@@ -949,9 +949,9 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
$theData = $this->headerFields($this->fieldArray, $table, $theData);
// Title row
$localizedTableTitle = $this->getLanguageService()->sL($GLOBALS['TCA'][$table]['ctrl']['title'], TRUE);
$out .= '<tr class="t3-row-header">' . '<td nowrap="nowrap" class="col-icon"></td>'
. '<td nowrap="nowrap" colspan="' . (count($theData) - 2) . '"><span class="c-table">'
. $localizedTableTitle . '</span> (' . $dbCount . ')</td>' . '<td nowrap="nowrap" class="col-icon"></td>'
$out .= '<tr class="t3-row-header">' . '<th class="col-icon"></th>'
. '<th colspan="' . (count($theData) - 2) . '"><span class="c-table">'
. $localizedTableTitle . '</span> (' . $dbCount . ')</td>' . '<td class="col-icon"></td>'
. '</tr>';
// Column's titles
if ($this->doEdit) {
......@@ -960,7 +960,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
. 'title="' . $this->getLanguageService()->getLL('new', TRUE) . '">'
. IconUtility::getSpriteIcon('actions-document-new') . '</a>';
}
$out .= $this->addelement(1, '', $theData, ' class="c-headLine"', 15);
$out .= $this->addelement(1, '', $theData, ' class="c-headLine"', 15, '', 'th');
// Render Items
$this->eCounter = $this->firstElementNumber;
while ($row = $this->getDatabase()->sql_fetch_assoc($result)) {
......@@ -990,14 +990,15 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
$this->eCounter++;
}
}
$this->getDatabase()->sql_free_result($result);
// Wrap it all in a table:
$out = '
<!--
Standard list of table "' . $table . '"
-->
<table border="0" cellpadding="0" cellspacing="0" class="typo3-dblist">
<div class="table-fit"><table class="table table-striped">
' . $out . '
</table>';
</table></div>';
return $out;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment