Index: t3lib/class.t3lib_tceforms.php
===================================================================
--- t3lib/class.t3lib_tceforms.php (Revision 7946)
+++ t3lib/class.t3lib_tceforms.php (Arbeitskopie)
@@ -658,7 +658,7 @@
$content = implode('', $sheetContent);
if ($content) {
// Wrap content (row) with table-tag, otherwise tab/sheet will be disabled (see getdynTabMenu() )
- $content = '
' . $content . '
';
+ $content = '
+
+
'.$output.'
- ';
+ |
+
';
} else {
// Only one, so just implode:
@@ -1805,8 +1807,8 @@
$hasHelp = ($p[3] !='');
$label = t3lib_div::deHSCentities(htmlspecialchars($p[0]));
- $help = $hasHelp ? '
' .
- '
' . $GLOBALS['LANG']->hscAndCharConv(nl2br(trim(htmlspecialchars($p[3]))), false) . '
' : '';
+ $help = $hasHelp ? '
' .
+ '' . $GLOBALS['LANG']->hscAndCharConv(nl2br(trim(htmlspecialchars($p[3]))), false) . '' : '';
if ($hasHelp && $this->edit_showFieldHelp == 'icon') {
$helpIcon = '
';
@@ -4783,36 +4785,48 @@
// Wrapping all table rows for a particular record being edited:
$this->totalWrap='
- ###PAGE_TITLE###
+ ###PAGE_TITLE###
-
- |
-
-
';
+ ';
// Wrapping a single field:
$this->fieldTemplate='
-
';
+
+ ###FIELD_HELP_ICON### |
+ ###FIELD_NAME######FIELD_HELP_TEXT### |
+
+
+ |
+ ###FIELD_ITEM######FIELD_PAL_LINK_ICON### |
+
';
$this->palFieldTemplate='
-
- ###FIELD_PALETTE###
-
';
+
+ |
+ ###FIELD_PALETTE### |
+
';
$this->palFieldTemplateHeader='
- ';
+
+ |
+ ###FIELD_HEADER### |
+
';
$this->sectionWrap='
-
- ###CONTENT###
-
+
+ |
+
+
+ |
+
';
}
@@ -4892,6 +4906,8 @@
$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.new',1).
'';
+ // Kasper: Should not be used here because NEW records are not offline workspace versions...
+ #t3lib_BEfunc::fixVersioningPid($table,$rec);
$truePid = t3lib_BEfunc::getTSconfig_pidValue($table, $rec['uid'], $rec['pid']);
$prec = t3lib_BEfunc::getRecordWSOL('pages', $truePid, 'title');
$pageTitle = t3lib_BEfunc::getRecordTitle('pages', $prec, TRUE, FALSE);
@@ -4949,6 +4965,7 @@
// Make substitutions:
$arr[$k] = str_replace('###PAGE_TITLE###', $pageTitle, $arr[$k]);
$arr[$k] = str_replace('###ID_NEW_INDICATOR###', $newLabel, $arr[$k]);
+ $arr[$k] = str_replace('###RECORD_LABEL###', $rLabel, $arr[$k]);
$arr[$k] = str_replace('###TABLE_TITLE###',htmlspecialchars($this->sL($TCA[$table]['ctrl']['title'])),$arr[$k]);
$titleA=t3lib_BEfunc::titleAltAttrib($this->getRecordPath($table,$rec));
@@ -4992,6 +5009,11 @@
$inTemplate = str_replace('###BGCOLOR_HEAD###',$this->colorScheme[1]?' bgcolor="'.$this->colorScheme[1].'"':'',$inTemplate);
$inTemplate = str_replace('###FONTCOLOR_HEAD###',$this->colorScheme[3],$inTemplate);
+ // Classes:
+ $inTemplate = str_replace('###CLASSATTR_1###',$this->classScheme[0]?' class="'.$this->classScheme[0].'"':'',$inTemplate);
+ $inTemplate = str_replace('###CLASSATTR_2###',$this->classScheme[1]?' class="'.$this->classScheme[1].'"':'',$inTemplate);
+ $inTemplate = str_replace('###CLASSATTR_4###',$this->classScheme[3]?' class="'.$this->classScheme[3].'"':'',$inTemplate);
+
return $inTemplate;
}
@@ -5012,6 +5034,27 @@
* @return string HTML output
*/
function printPalette($palArr) {
+ $fieldAttributes = $labelAttributes = '';
+
+ // Init color/class attributes:
+ if ($this->colorScheme[2]) {
+ $labelAttributes .= ' bgcolor="' . $this->colorScheme[2] . '"';
+ }
+
+ if ($this->classScheme[2]) {
+ $labelAttributes .= ' class="t3-form-palette-field-label ' . $this->classScheme[2] . '"';
+ } else {
+ $labelAttributes .= ' class="t3-form-palette-field-label"';
+ }
+
+ if ($this->colorScheme[4]) {
+ $fieldAttributes .= ' style="color: ' . $this->colorScheme[4] . '"';
+ }
+
+ if ($this->classScheme[4]) {
+ $fieldAttributes .= ' class="t3-form-palette-field' . $this->classScheme[4] . '"';
+ }
+
$row = 0;
$hRow = $iRow = array();
$lastLineWasLinebreak = FALSE;
@@ -5027,14 +5070,14 @@
$lastLineWasLinebreak = FALSE;
$fieldIdentifierForJs = $content['TABLE'] . '_' . $content['ID'] . '_' . $content['FIELD'];
$iRow[$row][] = '
' .
- $content['HELP_ICON'] .
- '