Still deliver expected template for backend module

Keep old logic to auto determine the expected templates.
Remove no longer used configuration.

Resolves: #11479
This commit is contained in:
Daniel Siepmann (Codappix) 2024-11-04 15:07:48 +01:00
parent 94e862ddcc
commit f6b153116d
SSH key fingerprint: SHA256:nAjx3Dpp8kuAC+S7QXj8BWmqw+KI1Miu+5e40BP3LXA
4 changed files with 9 additions and 9 deletions

View file

@ -47,6 +47,11 @@ abstract class AbstractController extends ActionController
protected function htmlResponse(?string $html = null): ResponseInterface
{
return parent::htmlResponse($html ?? $this->moduleTemplate->render());
$action = sprintf(
'%s/%s',
str_replace('\\', '/', $this->request->getControllerName()),
ucfirst($this->request->getControllerActionName()),
);
return parent::htmlResponse($html ?? $this->moduleTemplate->render($action));
}
}

View file

@ -5,10 +5,5 @@ module {
tx_thuecat_import_configuration = 0
}
}
view {
templateRootPaths {
0 = EXT:thuecat/Resources/Private/Templates/
}
}
}
}

View file

@ -54,7 +54,7 @@
</f:section>
<f:section name="ImportConfigurations">
<div class="panel panel-default">
<div class="panel panel-default table-fit">
<table class="table table-striped table-hover">
<thead>
<tr>
@ -104,7 +104,7 @@
</f:section>
<f:section name="Organisations">
<div class="panel panel-default">
<div class="panel panel-default table-fit">
<table class="table table-striped table-hover">
<thead>
<tr>

View file

@ -24,7 +24,7 @@
</f:section>
<f:section name="Imports">
<div class="panel panel-default">
<div class="panel panel-default table-fit">
<table class="table table-striped table-hover">
<thead>
<tr>