Files
cms-tstemplate/Resources/Private/Templates/InfoModifyMain.fluid.html
T

190 lines
9.3 KiB
HTML

<html
xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers"
xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers"
data-namespace-typo3-fluid="true"
>
<f:layout name="Module"/>
<f:section name="Before">
<f:asset.module identifier="@typo3/backend/context-menu.js"/>
<f:asset.module identifier="@typo3/backend/element/immediate-action-element.js"/>
<f:asset.module identifier="@typo3/tstemplate/information-module.js"/>
<f:variable name="args" value="{0: 'web', 1: pageUid}" />
<typo3-immediate-action
action="TYPO3.Backend.Storage.ModuleStateStorage.update"
args="{args -> f:format.json() -> f:format.htmlspecialchars()}"
></typo3-immediate-action>
</f:section>
<f:section name="Content">
<h1>
<f:if condition="{templateRecord.title}">
<f:then>
<f:translate
key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_info.xlf:submodule.titleWithRecord"
arguments="{
0: '{templateRecord.title}'
}"
/>
</f:then>
<f:else>
<f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_info.xlf:submodule.title" />
</f:else>
</f:if>
</h1>
<p><f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_info.xlf:submodule.description" /></p>
<f:if condition="{f:count(subject: allTemplatesOnPage)} > 1">
<div class="form-row">
<div class="form-group">
<form action="{f:be.uri(route: 'web_typoscript_infomodify', parameters: '{id: pageUid}')}" method="post">
<label class="form-label" for="selectedTemplate">
<f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_info.xlf:options.selectedRecord" />
</label>
<select
name="selectedTemplate"
id="selectedTemplate"
class="form-select"
data-global-event="change"
data-action-navigate="$data=~s/$value/"
data-action-submit="$form"
>
<f:for each="{allTemplatesOnPage}" as="template">
<option
value="{template.uid}"
{f:if(condition:'{templateRecord.uid} == {template.uid}', then:'selected="selected"')}
>
<f:if condition="{template.type} == 'sys_template'">
{template.title}
</f:if>
<f:if condition="{template.type} == 'site'">
{template.site.configuration.websiteTitle}
</f:if>
</option>
</f:for>
</select>
</form>
</div>
</div>
</f:if>
<f:if condition="{templateRecord.type} == 'site'">
<f:be.infobox
state="{f:constant(name: 'TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::INFO')}"
title="{f:translate(key: 'LLL:EXT:tstemplate/Resources/Private/Language/locallang_info.xlf:infoTypoScriptRecordFromSite.title')}"
>
<p>
<f:translate
key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_info.xlf:infoTypoScriptRecordFromSite.message"
arguments="{
0: '{templateRecord.site.identifier}'
}"
/>
</p>
<f:variable name="returnUrl">{f:be.uri(route: 'web_typoscript_infomodify', parameters: {id: pageUid})}</f:variable>
<f:be.link route="site_configuration.edit" parameters="{site: templateRecord.site.identifier, returnUrl: returnUrl}" class="btn btn-default">
<f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_info.xlf:btn.editSiteConfiguration"/>
</f:be.link>
<f:be.link route="site_configuration.editSettings" parameters="{site: templateRecord.site.identifier, returnUrl: returnUrl}" class="btn btn-default">
<f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_info.xlf:btn.editSiteSettings"/>
</f:be.link>
</f:be.infobox>
</f:if>
<div class="table-fit">
<table class="table table-striped table-hover">
<tbody>
<tr>
<td class="text-nowrap">
<f:if condition="{templateRecord.type} == 'sys_template'">
<be:link.editRecord
table="sys_template"
uid="{templateRecord.uid}"
fields="title"
class="btn d-block text-start btn-default"
>
<core:icon identifier="actions-open" /> <f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_info.xlf:table.column.title" />
</be:link.editRecord>
</f:if>
<f:if condition="{templateRecord.type} == 'site'">
<f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_info.xlf:table.column.title" />
</f:if>
</td>
<td width="90%">{templateRecord.title}</td>
</tr>
<tr>
<td class="text-nowrap">
<f:if condition="{templateRecord.type} == 'sys_template'">
<be:link.editRecord
table="sys_template"
uid="{templateRecord.uid}"
fields="description"
class="btn d-block text-start btn-default"
>
<core:icon identifier="actions-open" /> <f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_info.xlf:table.column.description" />
</be:link.editRecord>
</f:if>
<f:if condition="{templateRecord.type} == 'site'">
<f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_info.xlf:table.column.description" />
</f:if>
</td>
<td width="90%">{templateRecord.description}</td>
</tr>
<tr>
<td class="text-nowrap">
<f:if condition="{templateRecord.type} == 'sys_template'">
<be:link.editRecord
table="sys_template"
uid="{templateRecord.uid}"
fields="constants"
class="btn d-block text-start btn-default"
>
<core:icon identifier="actions-open" /> <f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_info.xlf:table.column.constants" />
</be:link.editRecord>
</f:if>
<f:if condition="{templateRecord.type} == 'site'">
<f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_info.xlf:table.column.constants" />
</f:if>
</td>
<td width="90%"><f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_info.xlf:table.column.lines" arguments="{0: numberOfConstantsLines}" /></td>
</tr>
<tr>
<td class="text-nowrap">
<f:if condition="{templateRecord.type} == 'sys_template'">
<be:link.editRecord
table="sys_template"
uid="{templateRecord.uid}"
fields="config"
class="btn d-block text-start btn-default"
>
<core:icon identifier="actions-open" /> <f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_info.xlf:table.column.setup" />
</be:link.editRecord>
</f:if>
<f:if condition="{templateRecord.type} == 'site'">
<f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_info.xlf:table.column.setup" />
</f:if>
</td>
<td width="90%"><f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_info.xlf:table.column.lines" arguments="{0: numberOfSetupLines}" /></td>
</tr>
</tbody>
</table>
</div>
<f:if condition="{templateRecord.type} == 'sys_template'">
<be:link.editRecord
table="sys_template"
uid="{templateRecord.uid}"
class="btn btn-default"
>
<core:icon identifier="actions-document-open" />
<f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_info.xlf:btn.editTypoScriptRecord"/>
</be:link.editRecord>
</f:if>
</f:section>
</html>