mirror of
https://github.com/werkraum-media/thuecat.git
synced 2025-01-10 05:06:13 +01:00
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:
parent
94e862ddcc
commit
f6b153116d
4 changed files with 9 additions and 9 deletions
|
@ -47,6 +47,11 @@ abstract class AbstractController extends ActionController
|
||||||
|
|
||||||
protected function htmlResponse(?string $html = null): ResponseInterface
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,10 +5,5 @@ module {
|
||||||
tx_thuecat_import_configuration = 0
|
tx_thuecat_import_configuration = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
view {
|
|
||||||
templateRootPaths {
|
|
||||||
0 = EXT:thuecat/Resources/Private/Templates/
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
</f:section>
|
</f:section>
|
||||||
|
|
||||||
<f:section name="ImportConfigurations">
|
<f:section name="ImportConfigurations">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default table-fit">
|
||||||
<table class="table table-striped table-hover">
|
<table class="table table-striped table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -104,7 +104,7 @@
|
||||||
</f:section>
|
</f:section>
|
||||||
|
|
||||||
<f:section name="Organisations">
|
<f:section name="Organisations">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default table-fit">
|
||||||
<table class="table table-striped table-hover">
|
<table class="table table-striped table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
</f:section>
|
</f:section>
|
||||||
|
|
||||||
<f:section name="Imports">
|
<f:section name="Imports">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default table-fit">
|
||||||
<table class="table table-striped table-hover">
|
<table class="table table-striped table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in a new issue