[FEATURE] Refactor AdminPanel API to use composition
[Packages/TYPO3.CMS.git] / typo3 / sysext / adminpanel / Resources / Private / Templates / Main.html
1 <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers" data-namespace-typo3-fluid="true">
2 <f:layout name="Default"/>
3 <f:section name="Module">
4 <f:for each="{parentModules}" as="module" iteration="iteration">
5 <f:variable name="uid">{iteration.index}</f:variable>
6 <f:variable name="icon"><core:icon identifier="{module.iconIdentifier}" alternativeMarkupIdentifier="inline"/></f:variable>
7 <f:variable name="label">{module.label}</f:variable>
8 <f:variable name="information">{module.shortInfo}</f:variable>
9 <f:render partial="Modules/Item" arguments="{module: module, uid: uid, icon: icon, label: label, information: information, data: data}" debug="false"/>
10 </f:for>
11
12 <f:if condition="{hookObjectModuleContent}">
13 <f:variable name="uid">hook</f:variable>
14 <f:variable name="icon"><core:icon identifier="actions-window-open" alternativeMarkupIdentifier="inline"/></f:variable>
15 <f:variable name="label"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:deprecatedModuleLabel"/></f:variable>
16 <f:variable name="mainContent">{hookObjectModuleContent}</f:variable>
17 <f:render partial="Modules/Item" arguments="{uid: uid, icon: icon, label: label, mainContent: mainContent, data: data}}" debug="false"/>
18 </f:if>
19
20 </f:section>
21 <f:section name="Settings">
22
23 <f:variable name="uid">settings</f:variable>
24 <f:variable name="icon"><core:icon identifier="actions-system-extension-configure" alternativeMarkupIdentifier="inline"/></f:variable>
25 <f:variable name="label"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:settings.label"/></f:variable>
26 <f:variable name="information">{module.shortInfo}</f:variable>
27 <f:variable name="mainContent">
28 <h1 class="typo3-adminPanel-headline"><f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:settings.label"/></h1>
29 <div class="typo3-adminPanel-card-group">
30 <f:for each="{settingsModules}" as="module">
31 <f:if condition="{module.pageSettings}">
32 <div class="typo3-adminPanel-card">
33 <div class="typo3-adminPanel-card-header">
34 <h2 class="typo3-adminPanel-card-header-headline">
35 <span class="typo3-adminPanel-card-header-icon"><core:icon identifier="{module.iconIdentifier}" alternativeMarkupIdentifier="inline"/></span>
36 <span class="typo3-adminPanel-card-header-text">{module.label}</span>
37 </h2>
38 </div>
39 <div class="typo3-adminPanel-card-body"><f:format.raw>{module.pageSettings}</f:format.raw></div>
40 </div>
41 </f:if>
42 </f:for>
43 </div>
44 <div class="typo3-adminPanel-form-group">
45 <button data-typo3-role="typo3-adminPanel-saveButton" class="typo3-adminPanel-btn typo3-adminPanel-btn-primary">
46 <f:translate key="LLL:EXT:adminpanel/Resources/Private/Language/locallang.xlf:settings.updateButtonLabel"/>
47 </button>
48 </div>
49 </f:variable>
50 <f:render partial="Modules/Item" arguments="{uid: uid, icon: icon, label: label, information: information, mainContent: mainContent, data: data}" debug="false"/>
51 </f:section>
52 </html>