Skip to content
Snippets Groups Projects
Commit ac2624b2 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Mark manual templates in the queue filter

parent 51951787
No related branches found
No related tags found
No related merge requests found
......@@ -285,9 +285,13 @@ class BackendService {
$pageUid = (int) $pageUid;
$registerArray = self::getNonBlacklistedTemplates($pageUid);
$templates = [];
$registerService = GeneralUtility::makeInstance(RegisterService::class);
foreach ($registerArray as $extensions) {
foreach ($extensions as $template => $key) {
$templates[$key['extension']][] = $key['templateName'];
$templates[$key['extension']][] = [
'name' => $key['templateName'],
'is_manual' => $registerService->isManuallyRegisteredTemplate($key['templateName']),
];
}
}
array_unshift($templates, '');
......
......@@ -21,12 +21,12 @@
<f:if condition="{selectedTemplateFilter} == {template} && {selectedExtensionFilter} == {extensionKey}">
<f:then>
<option value="{extensionKey}###{template}" selected="selected">
{template}
{f:if(condition: '{template.is_manual}', then:'* ')}{template.name}
</option>
</f:then>
<f:else>
<option value="{extensionKey}###{template}">
{template}
{f:if(condition: '{template.is_manual}', then:'* ')}{template.name}
</option>
</f:else>
</f:if>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment