Initial commit - Typo3 11.5.41
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
{namespace lfe=SGalinski\Lfeditor\ViewHelpers}
|
||||
|
||||
<f:if condition="{extensionSelection} && {languageFileSelection}">
|
||||
<div class="col-md-6 col-sm-6">
|
||||
<label>
|
||||
<f:translate key="select.constant" />
|
||||
</label>
|
||||
<f:form.select name="constantSelection"
|
||||
class="form-control"
|
||||
value="{constantSelection}"
|
||||
options="{constantOptions}"
|
||||
additionalAttributes="{onchange: 'TYPO3.lfEditor.changeForm(\'mainMenuForm\')'}" />
|
||||
</div>
|
||||
</f:if>
|
||||
@@ -0,0 +1,43 @@
|
||||
{namespace lfe=SGalinski\Lfeditor\ViewHelpers}
|
||||
{namespace core=TYPO3\CMS\Core\ViewHelpers}
|
||||
|
||||
<div class="row">
|
||||
<div class="col col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{extensionLabel}</label>
|
||||
<div class="input-group">
|
||||
<f:form.select additionalAttributes="{class: 'form-control', onChange: 'TYPO3.lfEditor.jump(this)'}">
|
||||
<f:for each="{extensions}" as="extension" key="extAddress">
|
||||
<optgroup label="{extension.extLabel}">
|
||||
<f:for each="{extension.languageFileOptions}" as="langFileLabel" key="langFileOption">
|
||||
<f:if condition="{extAddress} == {extensionSelection} && {langFileOption} == {languageFileSelection}">
|
||||
<f:then>
|
||||
<f:be.menus.actionMenuItem label="{langFileLabel}"
|
||||
controller="{controllerName}"
|
||||
action="changeSelection"
|
||||
arguments="{extensionSelection: extAddress, extKey: extension.extKey, languageFileSelection: langFileOption}"
|
||||
additionalAttributes="{selected: 'selected'}" />
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:be.menus.actionMenuItem label="{langFileLabel}"
|
||||
controller="{controllerName}"
|
||||
action="changeSelection"
|
||||
arguments="{extensionSelection: extAddress, extKey: extension.extKey, languageFileSelection: langFileOption}" />
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:for>
|
||||
</optgroup>
|
||||
</f:for>
|
||||
</f:form.select>
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default"
|
||||
onclick="document.getElementById('refreshLanguageFileListForm').submit();"
|
||||
title="{f:translate(key:'button.refreshLanguageFileList.title')}">
|
||||
<core:icon identifier="actions-system-refresh" size="small" />
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<f:form id="refreshLanguageFileListForm" action="refreshLanguageFileList"></f:form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,27 @@
|
||||
{namespace lfe=SGalinski\Lfeditor\ViewHelpers}
|
||||
|
||||
<f:if condition="{extensionSelection} && {languageFileSelection} && {referenceLanguageOptions}">
|
||||
<div class="col col-md-3 col-sm-6">
|
||||
<label><f:translate key="select.languageAndPattern" /></label>
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-6">
|
||||
<div class="form-group">
|
||||
<f:form.select name="languageSelection"
|
||||
class="form-control"
|
||||
value="{languageSelection}"
|
||||
options="{languageOptions}"
|
||||
additionalAttributes="{onchange: 'TYPO3.lfEditor.changeForm(\'mainMenuForm\')'}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-6">
|
||||
<div class="form-group">
|
||||
<f:form.select name="referenceLanguageSelection"
|
||||
value="{referenceLanguageSelection}"
|
||||
class="form-control"
|
||||
options="{referenceLanguageOptions}"
|
||||
additionalAttributes="{onchange: 'TYPO3.lfEditor.changeForm(\'mainMenuForm\')'}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
@@ -0,0 +1,14 @@
|
||||
{namespace lfe=SGalinski\Lfeditor\ViewHelpers}
|
||||
|
||||
<f:if condition="{extensionSelection} && {languageFileSelection}">
|
||||
<div class="col col-md-3 col-sm-6">
|
||||
<label><f:translate key="select.numConstants" /></label>
|
||||
<div class="form-group">
|
||||
<f:form.select name="numSiteConstsSelection"
|
||||
class="form-control"
|
||||
value="{numSiteConstsSelection}"
|
||||
options="{numSiteConstsOptions}"
|
||||
additionalAttributes="{onchange: 'TYPO3.lfEditor.changeForm(\'mainMenuForm\')'}" />
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
@@ -0,0 +1,12 @@
|
||||
{namespace lfe=SGalinski\Lfeditor\ViewHelpers}
|
||||
|
||||
<f:if condition="{languageFileSelection} && {bottomReferenceLanguageOptions}">
|
||||
<div class="col col-md-3 col-sm-6">
|
||||
<label><f:translate key="select.referenceLanguage" /></label>
|
||||
<f:form.select name="bottomReferenceLanguageSelection"
|
||||
class="form-control"
|
||||
value="{bottomReferenceLanguageSelection}"
|
||||
options="{bottomReferenceLanguageOptions}"
|
||||
additionalAttributes="{onchange: 'TYPO3.lfEditor.changeForm(\'mainMenuForm\')'}" />
|
||||
</div>
|
||||
</f:if>
|
||||
@@ -0,0 +1,46 @@
|
||||
{namespace lfe=SGalinski\Lfeditor\ViewHelpers}
|
||||
|
||||
<f:for each="{fluidTree}" as="treeNode" key="constantKey">
|
||||
<li>
|
||||
<f:for each="{treeNode.icons}" iteration="iterator" as="icon" reverse="TRUE">
|
||||
<f:if condition="{iterator.isLast} && {treeNode.children}">
|
||||
<f:then>
|
||||
<a href="javascript:TYPO3.lfEditor.openCloseTreeEntry(
|
||||
'{f:uri.resource(path: 'Icons')}',
|
||||
'ul-{constantKey}', 'icon-{constantKey}',
|
||||
{treeNode.isBottom})">
|
||||
<img id="icon-{constantKey}" src="{f:uri.resource(path: 'Icons/{icon.name}')}"
|
||||
alt="{icon.name}" style="margin-left: {icon.marginLeft}px;" />
|
||||
</a>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<img src="{f:uri.resource(path: 'Icons/{icon.name}')}" alt="{icon.name}"
|
||||
style="margin-left: {icon.marginLeft}px;" />
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:for>
|
||||
|
||||
<f:if condition="{treeNode.children}">
|
||||
<f:then>
|
||||
<a href="javascript:TYPO3.lfEditor.openCloseTreeEntry(
|
||||
'{f:uri.resource(path: 'Icons')}', 'ul-{constantKey}', 'icon-{constantKey}', {treeNode.isBottom})">
|
||||
{treeNode.label}
|
||||
</a>
|
||||
<ul id="ul-{constantKey}" class="tx-lfeditor-treeview"
|
||||
style="{f:if(condition: '{treeHide}', then: 'display: none')}">
|
||||
<f:render partial="TreeElement"
|
||||
arguments="{fluidTree: '{treeNode.children}', treeHide: '{treeHide}'}" />
|
||||
</ul>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:link.action action="prepareEditConstant"
|
||||
controller="EditConstant"
|
||||
arguments="{constantKey: '{constantKey}'}">
|
||||
<span class="tx-lfeditor-{f:if(condition: '{treeNode.type} == 2', then: 'specialMarkup')}{f:if(condition: '{treeNode.type} == 1', then: 'badMarkup')}{f:if(condition: '{treeNode.type} == 0', then: 'goodMarkup')}">
|
||||
{treeNode.label}
|
||||
</span>
|
||||
</f:link.action>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</li>
|
||||
</f:for>
|
||||
Reference in New Issue
Block a user