Project

General

Profile

Bug #23773 ยป 16039__Move_TCEforms_HTML_templates_to_template_file.diff

Administrator Admin, 2010-10-18 11:38

View differences:

typo3/templates/tceforms.html (revision )
<!-- ###TOTALWRAP### begin -->
<h2>###PAGE_TITLE###</h2>
<table class="typo3-TCEforms">
|
<tr class="typo3-TCEforms-recHeaderRow">
<td colspan="2">###RECORD_ICON### <span class="typo3-TCEforms-recHeader">###TABLE_TITLE###</span> ###ID_NEW_INDICATOR###</td>
</tr>
</table>
<!-- ###TOTALWRAP### end -->
<!-- ###FIELDTEMPLATE### begin -->
<tr ###BGCOLOR_HEAD######CLASSATTR_2###>
<td>&nbsp;</td>
<td width="99%"><span style="color:###FONTCOLOR_HEAD###;"###CLASSATTR_4###><strong>###FIELD_NAME###</strong></span></td>
</tr>
<tr ###BGCOLOR######CLASSATTR_1###>
<td nowrap="nowrap"><img name="req_###FIELD_TABLE###_###FIELD_ID###_###FIELD_FIELD###" src="clear.gif" class="t3-TCEforms-reqImg" alt="" /><img name="cm_###FIELD_TABLE###_###FIELD_ID###_###FIELD_FIELD###" src="clear.gif" class="t3-TCEforms-contentchangedImg" alt="" /></td>
<td valign="top">###FIELD_ITEM######FIELD_PAL_LINK_ICON###</td>
</tr>
<!-- ###FIELDTEMPLATE### end -->
<!-- ###PALETTE_FIELDTEMPLATE### begin -->
<tr ###BGCOLOR######CLASSATTR_1###>
<td></td>
<td nowrap="nowrap" valign="top">###FIELD_PALETTE###</td>
</tr>
<!-- ###PALETTE_FIELDTEMPLATE### end -->
<!-- ###PALETTE_FIELDTEMPLATE_HEADER### begin -->
<tr ###BGCOLOR_HEAD######CLASSATTR_2###>
<td><!-- --></td>
<td nowrap="nowrap" valign="top"><strong>###FIELD_HEADER###</strong></td>
</tr>
<!-- ###PALETTE_FIELDTEMPLATE_HEADER### end -->
<!-- ###SECTION_WRAP### begin -->
<tr>
<td colspan="2"><table ###TABLE_ATTRIBS###>###CONTENT###</table></td>
</tr>
<!-- ###SECTION_WRAP### end -->
t3lib/class.t3lib_tceforms.php (revision )
var $hookObjectsSingleField = array(); // Array containing hook class instances called for each field
var $extraFormHeaders = array(); // Rows gettings inserted into the alt_doc headers (when called from alt_doc.php)
public $templateFile = ''; // Form templates, relative to typo3 directory
/**
* Constructor function, setting internal variables, loading the styles used.
*
......
}
}
$this->templateFile = 'templates/tceforms.html';
}
/**
......
$processedTitle = str_replace('\n', '<br />', $theTitle);
$tRows[]='<div class="t3-form-field-container t3-form-field-container-flex">' .
'<div class="t3-form-field-label t3-form-field-label-flex">' .
$this->helpTextIcon_typeFlex($key, $processedTitle, $PA['_cshFile']) .
$languageIcon .
$this->helpTextIcon_typeFlex($key, $processedTitle, $PA['_cshFile']) .
$languageIcon .
$processedTitle .
'</div>
<div class="t3-form-field t3-form-field-flex">'.$theFormEl.$defInfo.$this->renderVDEFDiff($editData[$key],$vDEFkey).'</div>
......
* @return void
*/
function setNewBEDesign() {
$template = t3lib_div::getURL(PATH_typo3 . $this->templateFile);
// Wrapping all table rows for a particular record being edited:
$this->totalWrap='
<h2>###PAGE_TITLE###</h2>
$this->totalWrap = t3lib_parsehtml::getSubpart($template, '###TOTALWRAP###');
<table class="typo3-TCEforms">'.
'|'.
'
<tr class="typo3-TCEforms-recHeaderRow">
<td colspan="2">###RECORD_ICON### <span class="typo3-TCEforms-recHeader">###TABLE_TITLE###</span> ###ID_NEW_INDICATOR###</td>
</tr>
</table>';
// Wrapping a single field:
$this->fieldTemplate='
<tr ###BGCOLOR_HEAD######CLASSATTR_2###>
<td>&nbsp;</td>
<td width="99%"><span style="color:###FONTCOLOR_HEAD###;"###CLASSATTR_4###><strong>###FIELD_NAME###</strong></span></td>
</tr>
<tr ###BGCOLOR######CLASSATTR_1###>
<td nowrap="nowrap"><img name="req_###FIELD_TABLE###_###FIELD_ID###_###FIELD_FIELD###" src="clear.gif" class="t3-TCEforms-reqImg" alt="" /><img name="cm_###FIELD_TABLE###_###FIELD_ID###_###FIELD_FIELD###" src="clear.gif" class="t3-TCEforms-contentchangedImg" alt="" /></td>
<td valign="top">###FIELD_ITEM######FIELD_PAL_LINK_ICON###</td>
</tr>';
$this->fieldTemplate = t3lib_parsehtml::getSubpart($template, '###FIELDTEMPLATE###');
$this->palFieldTemplate='
<tr ###BGCOLOR######CLASSATTR_1###>
<td></td>
<td nowrap="nowrap" valign="top">###FIELD_PALETTE###</td>
</tr>';
$this->palFieldTemplateHeader='
<tr ###BGCOLOR_HEAD######CLASSATTR_2###>
<td><!-- --></td>
<td nowrap="nowrap" valign="top"><strong>###FIELD_HEADER###</strong></td>
</tr>';
$this->palFieldTemplate = t3lib_parsehtml::getSubpart($template, '###PALETTE_FIELDTEMPLATE###');
$this->palFieldTemplateHeader = t3lib_parsehtml::getSubpart($template, '###PALETTE_FIELDTEMPLATE_HEADER###');
$this->sectionWrap='
<tr>
<td colspan="2"><table ###TABLE_ATTRIBS###>###CONTENT###</table></td>
</tr>
';
$this->sectionWrap = t3lib_parsehtml::getSubpart($template, '###SECTION_WRAP###');
}
/**
    (1-1/1)