Commit bdba0522 authored by Benni Mack's avatar Benni Mack Committed by Anja Leichsenring
Browse files

[TASK] Migrate new record controller to Fluid-based rendering

This change cleans up the NewRecordController which hasn't been
touched since ages. It cleans up the render-related functionality
into a Fluid Template.

Within Fluid, Bootstrap 5 styling is now applied properly.

Resolves: #95332
Releases: master
Change-Id: Ic6a2e8967cfe8ee7ee0876300244e8bce9ca5c57
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71216

Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 9ba05e92
<h1><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:db_new.php.pagetitle" /></h1>
<f:for each="{groupedLinksOnTop}" key="recordTypeTable" as="groupedLinks">
<div class="row mb-4">
<div class="col-12">
<strong><core:icon identifier="{groupedLinks.icon}" size="small" /> {groupedLinks.title}</strong>
<div class="list-group mt-2">
<f:for each="{groupedLinks.items}" as="link">
{link -> f:format.raw()}
</f:for>
</div>
</div>
</div>
</f:for>
<f:for each="{recordTypeGroups}" as="recordTypeGroup">
<div class="row mb-4">
<div class="col-12">
<strong>{recordTypeGroup.icon -> f:format.raw()} <f:format.case mode="capital">{recordTypeGroup.title}</f:format.case></strong>
<div class="list-group mt-2">
<f:for each="{recordTypeGroup.html}" key="recordTypeTable" as="recordTypeItem">
{recordTypeItem -> f:format.raw()}
</f:for>
</div>
</div>
</div>
</f:for>
<f:if condition="{pagePositionMapForPagesOnly}">
<h3><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_misc.xlf:selectPosition" /></h3>
{pagePositionMapForPagesOnly -> f:format.raw()}
</f:if>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment