Skip to content
Snippets Groups Projects
Commit 694dbadc authored by Michael Oehlhof's avatar Michael Oehlhof Committed by Andreas Fernandez
Browse files

[TASK] Fluidification of TypoScriptTemplateModuleController

Moved all HTML code from the PHP code to an own Fluid template.

Resolves: #75028
Releases: master
Change-Id: I8efc78b60b6967922fc883354ce8df51b1094d0c
Reviewed-on: https://review.typo3.org/47226


Tested-by: default avatarBamboo TYPO3com <info@typo3.com>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: default avatarAndreas Fernandez <typo3@scripting-base.de>
parent e794ea39
No related merge requests found
<form action="{content.actionName}" method="post" enctype="multipart/form-data" id="TypoScriptTemplateModuleController" name="editForm" class="form">
<f:be.infobox title="{f:translate(key: 'noTemplate', extensionName:'tstemplate')}" state="{content.state}">
<p>
<f:translate key="noTemplateDescription" />
<br />
<f:translate key="createTemplateToEditConfiguration" />
</p>
</f:be.infobox>
<h2><f:translate key="newWebsite" />{staticsText}</h2>
<div>
<p><f:translate key="newWebsiteDescription" /></p>
{content.selector -> f:format.raw() -> f:or(alternative: '<input type="hidden" name="createStandard" value="" />')}
<input class="btn btn-primary" type="submit" form="TypoScriptTemplateModuleController" name="newWebsite" value="{f:translate(key: 'newWebsiteAction', extensionName:'tstemplate')}" />
</div>
<h2><f:translate key="extTemplate" /></h2>
<div>
<p><f:translate key="extTemplateDescription" /></p>
<input class="btn btn-default" type="submit" form="TypoScriptTemplateModuleController" name="createExtension" value="{f:translate(key: 'extTemplateAction', extensionName:'tstemplate')}" />
</div>
<f:if condition="{content.previousPage}">
<h3><f:translate key="goToClosest" /></h3>
<div>
<p><f:translate key="goToClosestDescription" arguments="{0: content.previousPage.title, 1: content.previousPage.uid}" /></p>
<a class="btn btn-default" href="{content.previousPage.aHref}"><f:translate key="goToClosestAction" /></a>
</div>
</f:if>
</form>
\ No newline at end of file
<f:be.infobox title="{title}" state="{state}">
<f:format.raw>{message}</f:format.raw>
</f:be.infobox>
<form action="{actionName}" method="post" enctype="multipart/form-data" id="TypoScriptTemplateModuleController" name="editForm" class="form">
<h1><f:translate key="moduleTitle" /></h1>
<f:render partial="{partialName}" arguments="{content: content}" optional="1" />
<f:format.raw>{typoscriptTemplateModuleContent}</f:format.raw>
</form>
\ No newline at end of file
<h1><f:translate key="moduleTitle" /></h1>
<div>
<p class="lead"><f:translate key="overview" /></p>
<div class="table-fit">
<table class="table table-striped table-hover" id="ts-overview">
<thead>
<tr>
<th><f:translate key="pageName" /></th>
<th><f:translate key="templates" /></th>
<th><f:translate key="isRoot" /></th>
<th><f:translate key="isExt" /></th>
</tr>
</thead>
<tbody>
<f:for each="{templateList}" as="line">
<f:render section="PageZeroTableRow" arguments="{line: line}" />
</f:for>
</tbody>
</table>
</div>
</div>
<f:section name="PageZeroTableRow">
<tr class="{line.class}">
<td nowrap>
<span style="width: 1px; height: 1px; display:inline-block; margin-left: {line.marginLeft}px"></span>
<a href="{line.href}" title="{line.title}">
<f:format.raw>{line.icon}</f:format.raw>
{line.pageTitle}
</a>
</td>
<td>{line.count}</td>
<td><f:format.raw>{line.root_max_val}</f:format.raw></td>
<td><f:format.raw>{line.root_min_val}</f:format.raw></td>
</tr>
</f:section>
\ No newline at end of file
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