Skip to content

Commit

Permalink
[UPGRADE] Use standard Module.html from cms-backend for rendering of …
Browse files Browse the repository at this point in the history
…backend modules
  • Loading branch information
tinzog committed Jan 13, 2025
1 parent 0f01c10 commit 2ce2989
Show file tree
Hide file tree
Showing 14 changed files with 44 additions and 58 deletions.
6 changes: 0 additions & 6 deletions Resources/Private/Layouts/Submodule.html

This file was deleted.

8 changes: 6 additions & 2 deletions Resources/Private/Templates/CompareDatabaseTool/Compare.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Submodule" />
<f:layout name="Module" />

<f:section name="Header">
<f:render partial="Header" arguments="{moduleName: '{f:translate(key:\'LLL:EXT:in2publish_core/Resources/Private/Language/locallang_mod4.xlf:moduleselector.compare\')}'}" />
</f:section>

<f:section name="Main">
<f:section name="Content">

<f:render partial="Header" arguments="{moduleName: '{f:translate(key:\'LLL:EXT:in2publish_core/Resources/Private/Language/locallang_mod4.xlf:moduleselector.compare\')}'}" />

<f:if condition="{differences}">
<f:then>
<f:render partial="Tools/CompareDatabaseTool/TransferNotice" arguments="{_all}" />
Expand All @@ -15,5 +18,6 @@
<h3><f:translate key="LLL:EXT:in2publish_core/Resources/Private/Language/locallang_mod4.xlf:compare_database.no_differences" /></h3>
</f:else>
</f:if>

</f:section>
</html>
8 changes: 3 additions & 5 deletions Resources/Private/Templates/CompareDatabaseTool/Index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Submodule" />
<f:layout name="Module" />

<f:section name="Header">
<f:render partial="Header" arguments="{moduleName: '{f:translate(key:\'LLL:EXT:in2publish_core/Resources/Private/Language/locallang_mod4.xlf:moduleselector.compare\')}'}" />
</f:section>
<f:section name="Content">

<f:section name="Main">
<f:render partial="Header" arguments="{moduleName: '{f:translate(key:\'LLL:EXT:in2publish_core/Resources/Private/Language/locallang_mod4.xlf:moduleselector.compare\')}'}" />

<f:form action="compare" objectName="comparisonRequest" class="form-inline">
<div class="card card-default">
Expand Down
7 changes: 3 additions & 4 deletions Resources/Private/Templates/Letterbox/Index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Submodule" />
<f:layout name="Module" />

<f:section name="Content">

<f:section name="Header">
<f:render partial="Header" arguments="{moduleName: '{f:translate(key:\'LLL:EXT:in2publish_core/Resources/Private/Language/locallang_mod4.xlf:moduleselector.flush_envelopes\')}'}" />
</f:section>

<f:section name="Main">
<div class="card-container">
<div class="card card-default card-size-small">
<div class="card-body">
Expand Down
7 changes: 3 additions & 4 deletions Resources/Private/Templates/RecordInspector/Index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Submodule"/>
<f:layout name="Module"/>

<f:section name="Content">

<f:section name="Header">
<f:render partial="Header" arguments="{moduleName: '{f:translate(key:\'LLL:EXT:in2publish_core/Resources/Private/Language/locallang_mod4.xlf:moduleselector.record_inspector\')}'}" />
</f:section>

<f:section name="Main">
<f:form action="inspect">
<div class="card card-default">
<div class="card-header">
Expand Down
7 changes: 3 additions & 4 deletions Resources/Private/Templates/RecordInspector/Inspect.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Submodule" />
<f:layout name="Module" />

<f:section name="Content">

<f:section name="Header">
<f:render partial="Header" arguments="{moduleName: '{f:translate(key:\'LLL:EXT:in2publish_core/Resources/Private/Language/locallang_mod4.xlf:moduleselector.record_inspector\')}'}" />
</f:section>

<f:section name="Main">
<div class="card card-default">
<div class="card-header">
<div class="card-header-body">
Expand Down
7 changes: 3 additions & 4 deletions Resources/Private/Templates/Registry/Index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Submodule" />
<f:layout name="Module" />

<f:section name="Content">

<f:section name="Header">
<f:render partial="Header" arguments="{moduleName: '{f:translate(key:\'LLL:EXT:in2publish_core/Resources/Private/Language/locallang_mod4.xlf:moduleselector.flush_registry\')}'}" />
</f:section>

<f:section name="Main">
<div class="card-container">
<div class="card card-default card-size-small">
<div class="card-body">
Expand Down
7 changes: 3 additions & 4 deletions Resources/Private/Templates/ShowConfiguration/Index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Submodule" />
<f:layout name="Module" />

<f:section name="Content">

<f:section name="Header">
<f:render partial="Header" arguments="{moduleName: '{f:translate(key:\'LLL:EXT:in2publish_core/Resources/Private/Language/locallang_mod4.xlf:moduleselector.configuration\')}'}" />
</f:section>

<f:section name="Main">
<a id="global-configuration"></a>
<f:render section="navigation" />
<div class="card card-default">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Submodule" />
<f:layout name="Module" />

<f:section name="Content">

<f:section name="Header">
<f:render partial="Header" arguments="{moduleName: '{f:translate(key:\'LLL:EXT:in2publish_core/Resources/Private/Language/locallang_mod4.xlf:moduleselector.system_info\')}'}" />
</f:section>

<f:section name="Main">
<div class="card card-default">
<div class="card-body">
<f:form action="sysInfoDecode" method="post">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers"
data-namespace-typo3-fluid="true"
>
<f:layout name="Submodule" />
<f:layout name="Module" />

<f:section name="Content">

<f:section name="Header">
<f:render partial="Header" arguments="{moduleName: '{f:translate(key:\'LLL:EXT:in2publish_core/Resources/Private/Language/locallang_mod4.xlf:moduleselector.system_info\')}'}" />
</f:section>

<f:section name="Main">
<div class="card-container">
<div class="card card-default card-size-medium">
<div class="card-body">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Submodule" />
<f:layout name="Module" />

<f:section name="Content">

<f:section name="Header">
<f:render partial="Header" arguments="{moduleName: '{f:translate(key:\'LLL:EXT:in2publish_core/Resources/Private/Language/locallang_mod4.xlf:moduleselector.system_info\')}'}" />
</f:section>

<f:section name="Main">
<div class="card card-default">
<div class="card-header">
<div class="card-header-body">
Expand Down
7 changes: 3 additions & 4 deletions Resources/Private/Templates/Tca/Index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Submodule" />
<f:layout name="Module" />

<f:section name="Content">

<f:section name="Header">
<f:render partial="Header" arguments="{moduleName: '{f:translate(key:\'LLL:EXT:in2publish_core/Resources/Private/Language/locallang_mod4.xlf:moduleselector.tca\')}'}" />
</f:section>

<f:section name="Main">
<a id="in2publish--compatible-tca"></a>
<f:render section="navigation" />
<div class="card card-success">
Expand Down
7 changes: 3 additions & 4 deletions Resources/Private/Templates/Test/Index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Submodule" />
<f:layout name="Module" />

<f:section name="Content">

<f:section name="Header">
<f:render partial="Header" arguments="{moduleName: '{f:translate(key:\'LLL:EXT:in2publish_core/Resources/Private/Language/locallang_mod4.xlf:moduleselector.test\')}'}" />
</f:section>

<f:section name="Main">
<div class="card">
<div class="card-body">
<div class="in2publish-messages">
Expand Down
10 changes: 5 additions & 5 deletions Resources/Private/Templates/Tools/Index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Submodule" />
<f:layout name="Module" />

<f:section name="Header">
<f:section name="Content">
<f:render partial="Header" arguments="{moduleName: '{f:translate(key:\'LLL:EXT:in2publish_core/Resources/Private/Language/locallang_mod4.xlf:moduleselector.index\')}'}" />
</f:section>

<f:section name="Main">
<f:flashMessages/>
<div class="card-container">
<f:if condition="{supports}">
<f:render partial="Tools/GetHelp" arguments="{_all}" />
</f:if>
<f:render partial="Tools/IntroductionMenu" arguments="{_all}" />
</div>
<f:render partial="Footer" arguments="{_all}"/>
</f:section>

</html>

0 comments on commit 2ce2989

Please sign in to comment.