[TASK] Move template for FormEngine 72/20472/2
authorFelix Kopp <felix-source@phorax.com>
Fri, 3 May 2013 16:52:52 +0000 (18:52 +0200)
committerBenjamin Mack <benni@typo3.org>
Sat, 4 May 2013 09:10:46 +0000 (11:10 +0200)
Moves the html template for FormEngine
from typo3/templates to EXT: backend.

Change-Id: Idcc7c45790f71ed91d83836821dba52baf9615d0
Fixes: #47893
Releases: 6.2
Reviewed-on: https://review.typo3.org/20472
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
typo3/sysext/backend/Classes/Form/FormEngine.php
typo3/sysext/backend/Resources/Private/Templates/FormEngine.html [new file with mode: 0644]
typo3/templates/tceforms.html [deleted file]

index ffc6bf6..29fd19a 100644 (file)
@@ -612,7 +612,7 @@ class FormEngine {
                                $this->hookObjectsSingleField[] = \TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj($classRef);
                        }
                }
-               $this->templateFile = 'templates/tceforms.html';
+               $this->templateFile = 'sysext/backend/Resources/Private/Templates/FormEngine.html';
        }
 
        /**
@@ -6302,4 +6302,4 @@ function ' . $evalData . '(value) {
 }
 
 
-?>
\ No newline at end of file
+?>
diff --git a/typo3/sysext/backend/Resources/Private/Templates/FormEngine.html b/typo3/sysext/backend/Resources/Private/Templates/FormEngine.html
new file mode 100644 (file)
index 0000000..5559945
--- /dev/null
@@ -0,0 +1,70 @@
+<!-- ###TOTALWRAP### begin -->
+<h1>###PAGE_TITLE###</h1>
+
+<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 colspan="2" class="formField-header"><span style="color:###FONTCOLOR_HEAD###;"###CLASSATTR_4###><strong>###FIELD_NAME###</strong></span></td>
+</tr>
+<tr ###BGCOLOR######CLASSATTR_1###>
+       <td colspan="2" class="formField-field" valign="top">
+               <span class="t3-form-field-container">
+                       <img name="cm_###FIELD_TABLE###_###FIELD_ID###_###FIELD_FIELD###" src="clear.gif" class="t3-TCEforms-contentchangedImg" alt="" />
+                       <img name="req_###FIELD_TABLE###_###FIELD_ID###_###FIELD_FIELD###" src="clear.gif" class="t3-TCEforms-reqImg" alt="" />
+                       ###FIELD_ITEM_NULLVALUE###
+                       <div class="t3-form-field-item###FIELD_ITEM_DISABLED###">
+                               <div class="t3-form-field-disable"></div>
+                               ###FIELD_ITEM###
+                       </div>
+                       ###FIELD_PAL_LINK_ICON###
+               </span>
+       </td>
+</tr>
+<!-- ###FIELDTEMPLATE### end -->
+
+
+<!-- ###PALETTEFIELDTEMPLATE### begin -->
+<span class="t3-form-palette-field-container">
+       <label###ATTRIBUTES_LABEL###>
+               ###CONTENT_NAME###
+       </label>
+       <span###ATTRIBUTES_FIELD###>
+               <img name="cm_###CONTENT_TABLE###_###CONTENT_ID###_###CONTENT_FIELD###" src="clear.gif" class="t3-form-palette-icon-contentchanged" alt="" />
+               <img name="req_###CONTENT_TABLE###_###CONTENT_ID###_###CONTENT_FIELD###" src="clear.gif" class="t3-form-palette-icon-required" alt="" />
+               ###CONTENT_ITEM_NULLVALUE###
+               <div class="t3-form-field-item###CONTENT_ITEM_DISABLED###">
+                       <div class="t3-form-field-disable"></div>
+                       ###CONTENT_ITEM###
+               </div>
+       </span>
+</span>
+<!-- ###PALETTEFIELDTEMPLATE### end -->
+
+
+<!-- ###PALETTE_FIELDTEMPLATE### begin -->
+<tr ###BGCOLOR######CLASSATTR_1###>
+       <td colspan="2" nowrap="nowrap" valign="top">###FIELD_PALETTE###</td>
+</tr>
+<!-- ###PALETTE_FIELDTEMPLATE### end -->
+
+
+<!-- ###PALETTE_FIELDTEMPLATE_HEADER### begin -->
+<tr ###BGCOLOR_HEAD######CLASSATTR_2###>
+       <td colspan="2" nowrap="nowrap" valign="top" class="palette-header"><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 -->
\ No newline at end of file
diff --git a/typo3/templates/tceforms.html b/typo3/templates/tceforms.html
deleted file mode 100644 (file)
index 5559945..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-<!-- ###TOTALWRAP### begin -->
-<h1>###PAGE_TITLE###</h1>
-
-<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 colspan="2" class="formField-header"><span style="color:###FONTCOLOR_HEAD###;"###CLASSATTR_4###><strong>###FIELD_NAME###</strong></span></td>
-</tr>
-<tr ###BGCOLOR######CLASSATTR_1###>
-       <td colspan="2" class="formField-field" valign="top">
-               <span class="t3-form-field-container">
-                       <img name="cm_###FIELD_TABLE###_###FIELD_ID###_###FIELD_FIELD###" src="clear.gif" class="t3-TCEforms-contentchangedImg" alt="" />
-                       <img name="req_###FIELD_TABLE###_###FIELD_ID###_###FIELD_FIELD###" src="clear.gif" class="t3-TCEforms-reqImg" alt="" />
-                       ###FIELD_ITEM_NULLVALUE###
-                       <div class="t3-form-field-item###FIELD_ITEM_DISABLED###">
-                               <div class="t3-form-field-disable"></div>
-                               ###FIELD_ITEM###
-                       </div>
-                       ###FIELD_PAL_LINK_ICON###
-               </span>
-       </td>
-</tr>
-<!-- ###FIELDTEMPLATE### end -->
-
-
-<!-- ###PALETTEFIELDTEMPLATE### begin -->
-<span class="t3-form-palette-field-container">
-       <label###ATTRIBUTES_LABEL###>
-               ###CONTENT_NAME###
-       </label>
-       <span###ATTRIBUTES_FIELD###>
-               <img name="cm_###CONTENT_TABLE###_###CONTENT_ID###_###CONTENT_FIELD###" src="clear.gif" class="t3-form-palette-icon-contentchanged" alt="" />
-               <img name="req_###CONTENT_TABLE###_###CONTENT_ID###_###CONTENT_FIELD###" src="clear.gif" class="t3-form-palette-icon-required" alt="" />
-               ###CONTENT_ITEM_NULLVALUE###
-               <div class="t3-form-field-item###CONTENT_ITEM_DISABLED###">
-                       <div class="t3-form-field-disable"></div>
-                       ###CONTENT_ITEM###
-               </div>
-       </span>
-</span>
-<!-- ###PALETTEFIELDTEMPLATE### end -->
-
-
-<!-- ###PALETTE_FIELDTEMPLATE### begin -->
-<tr ###BGCOLOR######CLASSATTR_1###>
-       <td colspan="2" nowrap="nowrap" valign="top">###FIELD_PALETTE###</td>
-</tr>
-<!-- ###PALETTE_FIELDTEMPLATE### end -->
-
-
-<!-- ###PALETTE_FIELDTEMPLATE_HEADER### begin -->
-<tr ###BGCOLOR_HEAD######CLASSATTR_2###>
-       <td colspan="2" nowrap="nowrap" valign="top" class="palette-header"><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 -->
\ No newline at end of file