TYPO3 v15 dev-main snapshot ()
This commit is contained in:
@@ -0,0 +1,107 @@
|
||||
<html
|
||||
xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
|
||||
xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers"
|
||||
data-namespace-typo3-fluid="true"
|
||||
>
|
||||
|
||||
<f:layout name="Module"/>
|
||||
|
||||
<f:section name="Content">
|
||||
|
||||
<f:asset.module identifier="@typo3/backend/context-menu.js"/>
|
||||
|
||||
<f:comment><!-- Heading --></f:comment>
|
||||
<h1>
|
||||
<f:if condition="{templateTitle}">
|
||||
<f:then>
|
||||
<f:translate
|
||||
key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_active.xlf:editAction.submodule.titleWithTemplate"
|
||||
arguments="{
|
||||
0: '{templateTitle}'
|
||||
}"
|
||||
/>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_active.xlf:editAction.submodule.title" />
|
||||
</f:else>
|
||||
</f:if>
|
||||
</h1>
|
||||
|
||||
<f:comment><!-- Show "no template on this page" infobox, or render edit options --></f:comment>
|
||||
<f:if condition="!{hasTemplate}">
|
||||
<f:then>
|
||||
<f:be.infobox
|
||||
title="{f:translate(key: 'LLL:EXT:tstemplate/Resources/Private/Language/locallang_active.xlf:editAction.infobox.title.noTypoScriptTemplateOnCurrentPage')}"
|
||||
message="{f:translate(key: 'LLL:EXT:tstemplate/Resources/Private/Language/locallang_active.xlf:editAction.infobox.message.noTypoScriptTemplateOnCurrentPage')}"
|
||||
state="{f:constant(name: 'TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::INFO')}"
|
||||
/>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:comment><!-- Edit property --></f:comment>
|
||||
<form action="{f:be.uri(route: 'typoscript_active.update', parameters: '{id: pageUid}')}" method="post">
|
||||
<input type="hidden" name="currentObjectPath" value="{currentObjectPath}" />
|
||||
<input type="hidden" name="pageUid" value="{pageUid}" />
|
||||
<input type="hidden" name="type" value="{type}" />
|
||||
|
||||
<h2><f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_active.xlf:editAction.editProperty.headline" /></h2>
|
||||
<div class="row row-cols-auto align-items-end g-1">
|
||||
<div class="col mb-4">
|
||||
<label class="visually-hidden">{currentObjectPath} =</label>
|
||||
<div class="input-group">
|
||||
<div class="input-group-text">{currentObjectPath} =</div>
|
||||
<input class="form-control" type="text" name="value" value="{currentValue}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col mb-4">
|
||||
<input
|
||||
type="submit"
|
||||
name="updateValue"
|
||||
value="{f:translate(key:'LLL:EXT:tstemplate/Resources/Private/Language/locallang_active.xlf:editAction.editProperty.btn')}"
|
||||
class="btn btn-default"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2><f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_active.xlf:editAction.addProperty.headline" /></h2>
|
||||
<div class="row row-cols-auto align-items-end g-1 mb-8">
|
||||
<div class="col mb-4">
|
||||
<label class="visually-hidden">{currentObjectPath}.</label>
|
||||
<div class="input-group">
|
||||
<div class="input-group-text">{currentObjectPath}.</div>
|
||||
<input name="childName" type="text" class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col mb-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-text">=</div>
|
||||
<input type="text" name="childValue" class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col mb-4">
|
||||
<input
|
||||
type="submit"
|
||||
name="addChild"
|
||||
value="{f:translate(key:'LLL:EXT:tstemplate/Resources/Private/Language/locallang_active.xlf:editAction.addProperty.btn')}"
|
||||
class="btn btn-default"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2><f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_active.xlf:editAction.clearObject.headline" /></h2>
|
||||
<p>
|
||||
<f:translate key="LLL:EXT:tstemplate/Resources/Private/Language/locallang_active.xlf:editAction.clearObject.infotextWithProperty" />
|
||||
<code>{currentObjectPath} ></code>
|
||||
</p>
|
||||
<input
|
||||
type="submit"
|
||||
name="clear"
|
||||
value="{f:translate(key:'LLL:EXT:tstemplate/Resources/Private/Language/locallang_active.xlf:editAction.clearObject.btn')}"
|
||||
class="btn btn-default"
|
||||
/>
|
||||
</form>
|
||||
</f:else>
|
||||
</f:if>
|
||||
|
||||
</f:section>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user