Skip to content

Commit

Permalink
[TASK] Beautify backend modules for v13
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonerWeb authored and dkd-kaehm committed May 17, 2024
1 parent 55efb3f commit 363e234
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ protected function initializeView($view): void
parent::initializeView($view);

$this->generateCoreSelectorMenuUsingPageTree();
$coreOptimizationTabs = $this->moduleTemplate->getDynamicTabMenu([], 'coreOptimization');
$this->moduleTemplate->assign('tabs', $coreOptimizationTabs);
}

/**
Expand Down
54 changes: 42 additions & 12 deletions Resources/Private/Layouts/Backend/WithPageTree.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,42 @@
<f:if condition="{can_not_proceed}">
<f:then>
<f:render partial="Backend/NoSiteAvailable" arguments="{_all}"/>
</f:then>
<f:else>
<f:variable name="args" value="{0: 'searchbackend', 1: pageUID}" />
<typo3-immediate-action action="TYPO3.Backend.Storage.ModuleStateStorage.update" args="{args -> f:format.json() -> f:format.htmlspecialchars()}"></typo3-immediate-action>

<f:render partial="Backend/FlashMessages" />
<f:render section="Main"/>
</f:else>
</f:if>
<f:render section="Before" arguments="{_all}" optional="true"/>

<div class="module {moduleClass}" data-module-id="{moduleId}" data-module-name="{moduleName}">
<f:if condition="{formTag}">
<f:then>
<f:format.raw>{formTag}</f:format.raw>
</f:then>
</f:if>
<f:if condition="{docHeader.enabled}">
<f:render partial="DocHeader" arguments="{docHeader:docHeader}"/>
</f:if>
<div class="module-body t3js-module-body">
<f:if condition="{uiBlock}">
<div id="t3js-ui-block" class="ui-block">
<core:icon identifier="spinner-circle" size="large"/>
</div>
</f:if>
<f:flashMessages queueIdentifier="{flashMessageQueueIdentifier}"/>

<f:render section="After" arguments="{_all}" optional="true"/>

<f:if condition="{can_not_proceed}">
<f:then>
<f:render partial="Backend/NoSiteAvailable" arguments="{_all}"/>
</f:then>
<f:else>
<f:variable name="args" value="{0: 'searchbackend', 1: pageUID}"/>
<typo3-immediate-action action="TYPO3.Backend.Storage.ModuleStateStorage.update" args="{args -> f:format.json() -> f:format.htmlspecialchars()}"></typo3-immediate-action>

<f:render partial="Backend/FlashMessages"/>
<f:render section="Main"/>
</f:else>
</f:if>


</div>
<f:if condition="{formTag}">
<f:then>
</form>
</f:then>
</f:if>
</div>

0 comments on commit 363e234

Please sign in to comment.