Initial commit - Typo3 11.5.41
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
{namespace lfe=SGalinski\Lfeditor\ViewHelpers}
|
||||
{namespace core=TYPO3\CMS\Core\ViewHelpers}
|
||||
|
||||
<f:layout name="Default" />
|
||||
|
||||
<f:section name="selectItems">
|
||||
<f:render partial="SelectExtensionAndLanguageFile" arguments="{_all}" />
|
||||
</f:section>
|
||||
|
||||
<f:section name="main">
|
||||
<f:if condition="{extensionSelection} && {languageFileSelection} && {languages}">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<f:translate key="function.const.add.add" />
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<f:form id="contentForm" action="addConstantSave">
|
||||
<f:if condition="{constantSelection} != '###default###'">
|
||||
<div class="form-group">
|
||||
<label>
|
||||
<f:translate key="function.const.add.name" />
|
||||
</label>
|
||||
<f:form.textfield name="nameOfConstant" class="form-control" />
|
||||
</div>
|
||||
|
||||
<f:for each="{languages}" as="lang" iteration="iterator">
|
||||
<fieldset class="tx-lfeditor-fieldset bgColor5 {f:if(condition: iterator.isEven, then: 'tx-lfeditor-fright')}{f:if(condition: iterator.isOdd, then: 'tx-lfeditor-fleft')}">
|
||||
<legend class="bgColor3">
|
||||
{f:if(condition: '{lang} == \'default\'', then: 'en', else: '{lang}')}
|
||||
</legend>
|
||||
<f:form.textarea
|
||||
cols="80" rows="{numTextAreaRows}"
|
||||
name="addConstTextArea[{lang}]"
|
||||
lang="{f:if(condition: '{lang} == \'default\'', then: 'en', else: '{lang}')}"
|
||||
class="tx-lfeditor-textarea" />
|
||||
</fieldset>
|
||||
</f:for>
|
||||
</f:if>
|
||||
</f:form>
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
</f:section>
|
||||
|
||||
<f:section name="ButtonBarLeft">
|
||||
<button class="btn btn-default btn-sm" onclick="document.getElementById('contentForm').submit();">
|
||||
<core:icon identifier="actions-save" />
|
||||
<f:translate key="button.save" />
|
||||
</button>
|
||||
</f:section>
|
||||
@@ -0,0 +1,37 @@
|
||||
{namespace lfe=SGalinski\Lfeditor\ViewHelpers}
|
||||
{namespace core=TYPO3\CMS\Core\ViewHelpers}
|
||||
|
||||
<f:layout name="Default" />
|
||||
|
||||
<f:section name="selectItems">
|
||||
<f:render partial="SelectExtensionAndLanguageFile" arguments="{_all}" />
|
||||
<div class="row">
|
||||
<f:form id="mainMenuForm" action="changeSelection">
|
||||
<f:render partial="SelectConstant" arguments="{_all}" />
|
||||
</f:form>
|
||||
</div>
|
||||
</f:section>
|
||||
|
||||
<f:section name="main">
|
||||
<f:if condition="{extensionSelection} && {languageFileSelection} && {constantSelection} && {constantSelection} != '###default###'">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<f:translate key="function.const.delete.delete" />
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<f:form id="contentForm" action="deleteConstantSave">
|
||||
<f:translate key="function.const.delete.question" />
|
||||
<p class="tx-lfeditor-delConst">{constantSelection}</p>
|
||||
<button class="btn btn-default" onclick="document.getElementById('contentForm').submit();">
|
||||
<f:translate key="button.delete" />
|
||||
<core:icon identifier="actions-delete" />
|
||||
</button>
|
||||
</f:form>
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
</f:section>
|
||||
|
||||
|
||||
<f:section name="ButtonBarLeft">
|
||||
</f:section>
|
||||
@@ -0,0 +1,60 @@
|
||||
{namespace lfe=SGalinski\Lfeditor\ViewHelpers}
|
||||
{namespace core=TYPO3\CMS\Core\ViewHelpers}
|
||||
|
||||
<f:layout name="Default" />
|
||||
|
||||
<f:section name="selectItems">
|
||||
<f:render partial="SelectExtensionAndLanguageFile" arguments="{_all}" />
|
||||
<div class="row">
|
||||
<f:form id="mainMenuForm" action="changeSelection">
|
||||
<f:render partial="SelectConstant" arguments="{_all}" />
|
||||
</f:form>
|
||||
</div>
|
||||
</f:section>
|
||||
|
||||
<f:section name="main">
|
||||
<f:if condition="{extensionSelection} && {languageFileSelection} && {constantSelection} && {constantSelection} != '###default###'">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<f:translate key="function.const.edit.edit" />
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<f:form id="contentForm" action="editConstantSave">
|
||||
<f:for each="{languages}" key="lang" as="constValue" iteration="iterator">
|
||||
<fieldset class="tx-lfeditor-fieldset bgColor5 {f:if(condition: iterator.isEven, then: 'tx-lfeditor-fright', else: 'tx-lfeditor-fleft')}">
|
||||
<legend class="bgColor3">
|
||||
{f:if(condition: '{lang} == \'default\'', then: 'en', else: '{lang}')}
|
||||
</legend>
|
||||
<f:if condition="{lang} == {defaultLanguage} && {defaultLanguagePermission} != 1">
|
||||
<f:then>
|
||||
<f:form.textarea
|
||||
cols="80" rows="{numTextAreaRows}"
|
||||
value="{constValue}"
|
||||
name="editConstTextArea[{lang}][{constantSelection}]"
|
||||
lang="{f:if(condition: '{lang} == \'default\'', then: 'en', else: '{lang}')}"
|
||||
additionalAttributes="{readonly: ''}"
|
||||
class="tx-lfeditor-textarea" />
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:form.textarea
|
||||
cols="80" rows="{numTextAreaRows}"
|
||||
value="{constValue}"
|
||||
name="editConstTextArea[{lang}][{constantSelection}]"
|
||||
lang="{f:if(condition: '{lang} == \'default\'', then: 'en', else: '{lang}')}"
|
||||
class="tx-lfeditor-textarea" />
|
||||
</f:else>
|
||||
</f:if>
|
||||
</fieldset>
|
||||
</f:for>
|
||||
</f:form>
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
</f:section>
|
||||
|
||||
<f:section name="ButtonBarLeft">
|
||||
<button class="btn btn-default btn-sm" onclick="document.getElementById('contentForm').submit();">
|
||||
<core:icon identifier="actions-save" />
|
||||
<f:translate key="button.save" />
|
||||
</button>
|
||||
</f:section>
|
||||
@@ -0,0 +1,134 @@
|
||||
{namespace lfe=SGalinski\Lfeditor\ViewHelpers}
|
||||
{namespace core=TYPO3\CMS\Core\ViewHelpers}
|
||||
|
||||
<f:layout name="Default" />
|
||||
|
||||
<f:section name="selectItems">
|
||||
<f:render partial="SelectExtensionAndLanguageFile" arguments="{_all}" />
|
||||
<f:form id="mainMenuForm" action="changeSelection">
|
||||
<div class="row">
|
||||
<f:render partial="SelectReferenceLanguage" arguments="{_all}" />
|
||||
<f:render partial="SelectLanguageAndReference" arguments="{_all}" />
|
||||
<f:if condition="{constantTypeOptions}">
|
||||
<div class="col col-md-3 col-sm-6">
|
||||
<label>
|
||||
<strong>
|
||||
<f:translate key="select.constantType" />
|
||||
</strong>
|
||||
</label>
|
||||
<f:form.select name="constantTypeSelection"
|
||||
value="{constantTypeSelection}"
|
||||
options="{constantTypeOptions}"
|
||||
additionalAttributes="{onchange: 'TYPO3.lfEditor.changeForm(\'mainMenuForm\')', class: 'form-control'}" />
|
||||
</div>
|
||||
</f:if>
|
||||
<f:render partial="SelectNumConstants" arguments="{_all}"/>
|
||||
</div>
|
||||
</f:form>
|
||||
</f:section>
|
||||
|
||||
<f:section name="main">
|
||||
<f:if condition="{constValues}">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<f:translate key="function.langfile.edit" />
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<p>
|
||||
<span id="tx-lfeditor-numberCur">{curConsts}</span> /
|
||||
<span id="tx-lfeditor-numberOf">{totalConsts}</span>
|
||||
</p>
|
||||
|
||||
<f:form id="contentForm" action="editFileSave">
|
||||
<f:form.hidden name="buttonType" value="0" />
|
||||
|
||||
<f:for each="{constValues}" key="constKey" as="constValue" iteration="iterator">
|
||||
<fieldset class="tx-lfeditor-fieldset bgColor5 {f:if(condition: '{iterator.isOdd} || {parallelEdit}', then: 'tx-lfeditor-fleft', else: 'tx-lfeditor-fright')}">
|
||||
<legend class="bgColor3 tx-lfeditor-constantMaxWidth400" title="{languageSelection}:{constKey}">
|
||||
{f:if(condition: '{languageSelection} == \'default\'', then: 'en', else: '{languageSelection}')}:{constKey}
|
||||
</legend>
|
||||
<f:if condition="{languageSelection} == {defaultLanguage} && {defaultLanguagePermission} != 1">
|
||||
<f:then>
|
||||
<f:form.textarea
|
||||
cols="80" rows="{numTextAreaRows}"
|
||||
value="{constValue.edit}"
|
||||
name="editFileTextArea[{languageSelection}][{constKey}]"
|
||||
lang="{f:if(condition: '{languageSelection} == \'default\'', then: 'en', else: '{languageSelection}')}"
|
||||
additionalAttributes="{readonly: ''}"
|
||||
class="tx-lfeditor-textarea" />
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:form.textarea
|
||||
cols="80" rows="{numTextAreaRows}"
|
||||
value="{constValue.edit}"
|
||||
name="editFileTextArea[{languageSelection}][{constKey}]"
|
||||
lang="{f:if(condition: '{languageSelection} == \'default\'', then: 'en', else: '{languageSelection}')}"
|
||||
class="tx-lfeditor-textarea" />
|
||||
</f:else>
|
||||
</f:if>
|
||||
<f:if condition="{constValue.default}">
|
||||
<p class="tx-lfeditor-defaultTranslation bgColor3">
|
||||
{constValue.default}
|
||||
</p>
|
||||
</f:if>
|
||||
</fieldset>
|
||||
<f:if condition="{parallelEdit}">
|
||||
<fieldset class="tx-lfeditor-fieldset bgColor5 tx-lfeditor-fright">
|
||||
<legend class="bgColor3 tx-lfeditor-constantMaxWidth400" title="{referenceLanguageSelection}:{constKey}">
|
||||
{f:if(condition: '{referenceLanguageSelection} == \'default\'', then: 'en', else: '{referenceLanguageSelection}')}:{constKey}
|
||||
</legend>
|
||||
<f:if condition="{referenceLanguageSelection} == {defaultLanguage} && {defaultLanguagePermission} != 1">
|
||||
<f:then>
|
||||
<f:form.textarea
|
||||
cols="80" rows="{numTextAreaRows}"
|
||||
value="{constValue.pattern}"
|
||||
name="editFileTextArea[{referenceLanguageSelection}][{constKey}]"
|
||||
lang="{f:if(condition: '{referenceLanguageSelection} == \'default\'', then: 'en', else: '{referenceLanguageSelection}')}"
|
||||
additionalAttributes="{readonly: ''}"
|
||||
class="tx-lfeditor-textarea" />
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:form.textarea
|
||||
cols="80" rows="{numTextAreaRows}"
|
||||
value="{constValue.pattern}"
|
||||
name="editFileTextArea[{referenceLanguageSelection}][{constKey}]"
|
||||
lang="{f:if(condition: '{referenceLanguageSelection} == \'default\'', then: 'en', else: '{referenceLanguageSelection}')}"
|
||||
class="tx-lfeditor-textarea" />
|
||||
</f:else>
|
||||
</f:if>
|
||||
<f:if condition="{constValue.default}">
|
||||
<p class="tx-lfeditor-defaultTranslation bgColor3">
|
||||
{constValue.default}
|
||||
</p>
|
||||
</f:if>
|
||||
</fieldset>
|
||||
</f:if>
|
||||
</f:for>
|
||||
</f:form>
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
</f:section>
|
||||
|
||||
<f:section name="ButtonBarLeft">
|
||||
<f:if condition="{displayBackButton}">
|
||||
<button class="btn btn-default btn-sm" onclick="TYPO3.lfEditor.submitLanguageFileEdit(1)">
|
||||
<core:icon identifier="actions-move-left" />
|
||||
<f:translate key="button.session.back" />
|
||||
</button>
|
||||
</f:if>
|
||||
<f:if condition="{displayNextButton}">
|
||||
<button class="btn btn-default btn-sm" onclick="TYPO3.lfEditor.submitLanguageFileEdit(2)">
|
||||
<core:icon identifier="actions-move-right" />
|
||||
<f:translate key="button.session.next" />
|
||||
</button>
|
||||
</f:if>
|
||||
<button class="btn btn-default btn-sm" onclick="TYPO3.lfEditor.submitLanguageFileEdit(3)">
|
||||
<core:icon identifier="actions-save" />
|
||||
<f:translate key="button.save" />
|
||||
</button>
|
||||
<button class="btn btn-default btn-sm" onclick="return TYPO3.lfEditor.confirmCancelFileEdit()">
|
||||
<core:icon identifier="actions-close" />
|
||||
<f:translate key="button.cancel" />
|
||||
</button>
|
||||
</f:section>
|
||||
@@ -0,0 +1,167 @@
|
||||
{namespace lfe=SGalinski\Lfeditor\ViewHelpers}
|
||||
{namespace core=TYPO3\CMS\Core\ViewHelpers}
|
||||
|
||||
<f:layout name="Default" />
|
||||
|
||||
<f:section name="selectItems">
|
||||
<f:render partial="SelectExtensionAndLanguageFile" arguments="{_all}" />
|
||||
</f:section>
|
||||
|
||||
<f:section name="main">
|
||||
<f:if condition="{languageFileSelection} && {infos}">
|
||||
<lfe:addJavaScriptFile javaScriptFile="{f:uri.resource(path: 'JavaScript/GeneralTable.js')}" />
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<f:translate key="function.general.general" />
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<p>
|
||||
<a id="hideShowUntranslatedLanguagesInTableId" class="btn btn-default btn-sm" href="javascript:hideShowUntranslatedLanguagesInTable()">
|
||||
[<f:translate key="function.general.hideShowUntranslated" />]
|
||||
</a>
|
||||
</p>
|
||||
<table id="tx-lfeditor-table" class="table table-bordered table-responsive">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="bgColor5">
|
||||
<f:translate key="lang.shortcut" />
|
||||
</th>
|
||||
<th class="bgColor5">
|
||||
<f:translate key="lang.state" />
|
||||
</th>
|
||||
<th class="bgColor5">
|
||||
<f:translate key="lang.origin" />
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<f:for each="{infos}" as="info" key="langKey">
|
||||
<tr>
|
||||
<td>
|
||||
<f:link.action action="goToEditFile" arguments="{language: langKey}">
|
||||
{f:if(condition: '{langKey} == \'default\'', then: 'en', else: '{langKey}')}
|
||||
</f:link.action>
|
||||
</td>
|
||||
<td>
|
||||
<f:if condition="{info.numTranslated} >= {refLangNumTranslated}">
|
||||
<f:then>
|
||||
<span class="tx-lfeditor-goodMarkup">
|
||||
<f:translate key="lang.complete" />
|
||||
</span>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<span class="tx-lfeditor-badMarkup">
|
||||
<f:translate key="lang.incomplete" />
|
||||
</span>
|
||||
</f:else>
|
||||
</f:if>
|
||||
(
|
||||
<span class="tx-lfeditor-goodMarkup" title="{f:translate(key:'const.type.translated')}">
|
||||
{info.numTranslated}
|
||||
</span>
|
||||
-
|
||||
<span class="tx-lfeditor-specialMarkup" title="{f:translate(key:'const.type.unknown')}">
|
||||
{info.numUnknown}
|
||||
</span>
|
||||
-
|
||||
<span class="tx-lfeditor-badMarkup" title="{f:translate(key:'const.type.untranslated')}">
|
||||
{info.numUntranslated}
|
||||
</span>
|
||||
)
|
||||
</td>
|
||||
<td>{info.origin}</td>
|
||||
</tr>
|
||||
</f:for>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<f:form id="contentForm" action="generalSave">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<f:translate key="function.general.metaInfo.metaInfo" />
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<fieldset class="form-section">
|
||||
<h4 class="form-section-headline">
|
||||
<f:translate key="function.general.metaInfo.author" />
|
||||
</h4>
|
||||
<div class="form-group">
|
||||
<label for="name">
|
||||
<f:translate key="function.general.metaInfo.author.name" />
|
||||
</label>
|
||||
<f:form.textfield id="name" name="authorName" value="{infos.default.meta.authorName}" class="form-control" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email">
|
||||
<f:translate key="function.general.metaInfo.author.email" />
|
||||
</label>
|
||||
<f:form.textfield id="email" name="authorEmail" value="{infos.default.meta.authorEmail}" class="form-control" />
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-section">
|
||||
<h4 class="form-section-headline">
|
||||
<f:translate key="function.general.metaInfo.desc" />
|
||||
</h4>
|
||||
<div class="form-group">
|
||||
<f:form.textarea id="meta-description" cols="80" rows="{numTextAreaRows}" name="metaDescription" value="{metaDescription}" class="form-control" />
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<f:if condition="{editingMode} != 'override'">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<f:translate key="function.general.options" />
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<f:if condition="{langFileExtension} != 'xlf' && {editingMode} != 'l10n'">
|
||||
<fieldset class="form-section">
|
||||
<h4 class="form-section-headline">
|
||||
<f:translate key="function.general.split.split" />
|
||||
</h4>
|
||||
<div class="form-group">
|
||||
<f:form.radio name="splitFile" id="normalSplit" value="1" checked="{preselectMerge} != 'TRUE'" />
|
||||
<label for="normalSplit">
|
||||
<f:translate key="function.general.split.splitNormal" />
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<f:form.radio name="splitFile" id="merge" value="2" checked="{preselectMerge}" />
|
||||
<label for="merge">
|
||||
<f:translate key="function.general.split.merge" />
|
||||
</label>
|
||||
</div>
|
||||
</fieldset>
|
||||
</f:if>
|
||||
|
||||
<fieldset class="form-section">
|
||||
<h4 class="form-section-headline">
|
||||
<f:translate key="function.general.transform.transform" />
|
||||
</h4>
|
||||
<div class="form-group">
|
||||
<f:form.radio name="transformFile" id="xlf" value="xlf" checked="{langFileExtension} == 'xlf'" />
|
||||
<label for="xlf">XLF</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<f:form.radio name="transformFile" id="xml" value="xml" checked="{langFileExtension} == 'xml'" />
|
||||
<label for="xml">
|
||||
<f:translate key="function.general.transform.xml" />
|
||||
</label>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
</f:form>
|
||||
</f:if>
|
||||
</f:section>
|
||||
|
||||
<f:section name="ButtonBarLeft">
|
||||
<button class="btn btn-default btn-sm" onclick="document.getElementById('contentForm').submit();">
|
||||
<core:icon identifier="actions-save" />
|
||||
<f:translate key="button.save" />
|
||||
</button>
|
||||
</f:section>
|
||||
@@ -0,0 +1,147 @@
|
||||
{namespace lfe=SGalinski\Lfeditor\ViewHelpers}
|
||||
|
||||
<f:layout name="Default" />
|
||||
|
||||
<f:section name="selectItems">
|
||||
<f:form id="mainMenuForm" action="changeSelection">
|
||||
<h2 class="uppercase">
|
||||
<f:translate key="select.extension" />
|
||||
</h2>
|
||||
<f:form.select name="extensionSelection"
|
||||
value="{extensionSelection}"
|
||||
options="{extensionOptions}"
|
||||
additionalAttributes="{onchange: 'TYPO3.lfEditor.changeForm(\'mainMenuForm\')'}"
|
||||
/>
|
||||
</f:form>
|
||||
</f:section>
|
||||
|
||||
<f:section name="main">
|
||||
<f:if condition="{extensionSelection} && {backups}">
|
||||
<h2 class="uppercase">
|
||||
<f:translate key="function.backupMgr.backupMgr" />
|
||||
</h2>
|
||||
<table id="tx-lfeditor-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="bgColor5">
|
||||
<f:translate key="function.backupMgr.date" />
|
||||
</th>
|
||||
<th class="bgColor5">
|
||||
<f:translate key="function.backupMgr.state" />
|
||||
</th>
|
||||
<th class="bgColor5">
|
||||
<f:translate key="lang.file.file" />
|
||||
</th>
|
||||
<th id="tx-lfeditor-table-markup1" class="bgColor5">
|
||||
<f:link.action action="deleteAllBackup"
|
||||
title="{f:translate(key: 'function.backupMgr.deleteAll')}">
|
||||
<img src="{f:uri.resource(path: 'Icons/garbage.png')}"
|
||||
alt="{f:translate(key: 'function.backupMgr.deleteAll')}">
|
||||
</f:link.action>
|
||||
</th>
|
||||
<th id="tx-lfeditor-table-markup2" title="{f:translate(key: 'function.backupMgr.recover')}">
|
||||
{recoverLabelThead}
|
||||
</th>
|
||||
<th id="tx-lfeditor-table-markup3" title="{f:translate(key: 'function.backupMgr.diff.diff')}">
|
||||
{differenceLabelThead}
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<f:for each="{backups}" as="backup">
|
||||
<tr>
|
||||
<td class="bgColor4">
|
||||
{backup.date}
|
||||
</td>
|
||||
<f:if condition="{backup.state} == 'function.backupMgr.ok'">
|
||||
<f:then>
|
||||
<td class="tx-lfeditor-goodMarkup bgColor4">
|
||||
<f:translate key="{backup.state}" />
|
||||
</td>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<td class="tx-lfeditor-badMarkup bgColor4">
|
||||
<f:translate key="{backup.state}" />
|
||||
</td>
|
||||
</f:else>
|
||||
</f:if>
|
||||
<td class="bgColor4">
|
||||
{backup.langFile}
|
||||
</td>
|
||||
<td class="bgColor4">
|
||||
<f:link.action action="deleteBackup"
|
||||
arguments="{fileName: backup.fileName, langFile: backup.langFile}"
|
||||
title="{f:translate(key: 'function.backupMgr.delete')}">
|
||||
<img src="{f:uri.resource(path: 'Icons/garbage.png')}"
|
||||
alt="{f:translate(key: 'function.backupMgr.delete')}">
|
||||
</f:link.action>
|
||||
</td>
|
||||
<f:if condition="{backup.state} == 'function.backupMgr.ok'">
|
||||
<f:then>
|
||||
<td class="bgColor4">
|
||||
<f:link.action action="recoverBackup"
|
||||
arguments="{fileName: backup.fileName, langFile: backup.langFile}"
|
||||
title="{f:translate(key: 'function.backupMgr.recover')}">
|
||||
<img src="{f:uri.resource(path: 'Icons/recover.png')}"
|
||||
alt="{f:translate(key: 'function.backupMgr.recover')}">
|
||||
</f:link.action>
|
||||
</td>
|
||||
<td class="bgColor4">
|
||||
<f:link.action action="showDifferenceBackup"
|
||||
arguments="{fileName: backup.fileName, langFile: backup.langFile}"
|
||||
title="{f:translate(key: 'function.backupMgr.diff.diff')}">
|
||||
<img src="{f:uri.resource(path: 'Icons/diff.png')}"
|
||||
alt="{f:translate(key: 'function.backupMgr.diff.diff')}">
|
||||
</f:link.action>
|
||||
</td>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<td class="bgColor4">[-]</td>
|
||||
<td class="bgColor4">[-]</td>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</tr>
|
||||
</f:for>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<f:if condition="{differences}">
|
||||
<fieldset class="tx-lfeditor-fieldset bgColor5">
|
||||
<legend class="bgColor3">
|
||||
<f:translate key="function.backupMgr.diff.diff" />
|
||||
</legend>
|
||||
<p class="tx-lfeditor-goodMarkup">
|
||||
xyz -- <f:translate key="function.backupMgr.diff.goodMarkupHint" />
|
||||
</p>
|
||||
<p class="tx-lfeditor-badMarkup">
|
||||
xyz -- <f:translate key="function.backupMgr.diff.badMarkupHint" />
|
||||
</p>
|
||||
|
||||
<f:for each="{differences}" as="difference">
|
||||
<fieldset class="bgColor4">
|
||||
<legend class="bgColor3">
|
||||
{difference.legend}
|
||||
</legend>
|
||||
<ul class="tx-lfeditor-backups-label">
|
||||
<f:for each="{difference.constants}" as="constant">
|
||||
<li>
|
||||
<p class="{f:if(condition: '{constant.state} == 2', then: 'tx-lfeditor-goodMarkup')}{f:if(condition: '{constant.state} == 1', then: 'tx-lfeditor-badMarkup')}">
|
||||
{constant.label}
|
||||
</p>
|
||||
<ul class="tx-lfeditor-backups-value">
|
||||
<li>
|
||||
{constant.value}
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</f:for>
|
||||
</fieldset>
|
||||
</f:if>
|
||||
</f:if>
|
||||
</f:section>
|
||||
|
||||
<f:section name="ButtonBarLeft">
|
||||
</f:section>
|
||||
@@ -0,0 +1,41 @@
|
||||
{namespace lfe=SGalinski\Lfeditor\ViewHelpers}
|
||||
{namespace core=TYPO3\CMS\Core\ViewHelpers}
|
||||
|
||||
<f:layout name="Default" />
|
||||
|
||||
<f:section name="selectItems">
|
||||
<f:render partial="SelectExtensionAndLanguageFile" arguments="{_all}" />
|
||||
<div class="row">
|
||||
<f:form id="mainMenuForm" action="changeSelection">
|
||||
<f:render partial="SelectConstant" arguments="{_all}" />
|
||||
</f:form>
|
||||
</div>
|
||||
</f:section>
|
||||
|
||||
<f:section name="main">
|
||||
<f:if condition="{extensionSelection} && {languageFileSelection} && {constantSelection} && {constantSelection} != '###default###'">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<f:translate key="function.const.rename.rename" />
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<f:form id="contentForm" action="renameConstantSave">
|
||||
<p><f:translate key="function.const.rename.hint" /></p>
|
||||
<div class="form-group">
|
||||
<label>
|
||||
<f:translate key="function.const.rename.newName" />
|
||||
</label>
|
||||
<f:form.textfield name="newConstantName" value="{constantSelection}" class="form-control" />
|
||||
</div>
|
||||
</f:form>
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
</f:section>
|
||||
|
||||
<f:section name="ButtonBarLeft">
|
||||
<button class="btn btn-default btn-sm" onclick="document.getElementById('contentForm').submit();">
|
||||
<core:icon identifier="actions-save" />
|
||||
<f:translate key="button.save" />
|
||||
</button>
|
||||
</f:section>
|
||||
@@ -0,0 +1,62 @@
|
||||
{namespace lfe=SGalinski\Lfeditor\ViewHelpers}
|
||||
|
||||
<f:layout name="Default" />
|
||||
|
||||
<f:section name="selectItems">
|
||||
<f:render partial="SelectExtensionAndLanguageFile" arguments="{_all}" />
|
||||
</f:section>
|
||||
|
||||
<f:section name="main">
|
||||
<f:if condition="{extensionSelection} && {languageFileSelection}">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<f:translate key="function.const.search.search" />
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<f:form id="contentForm" action="searchConstantSearch">
|
||||
<label>
|
||||
<f:form.checkbox id="caseSensitive" name="caseSensitive" value="1" checked="{searchCaseSensitive}"
|
||||
class="tx-lfeditor-checkBox-bottom" />
|
||||
<f:translate key="function.search.caseSensitiveCheckbox" />
|
||||
</label>
|
||||
|
||||
<p>
|
||||
<f:form.textfield name="searchStr" value="{searchString}" class="tx-lfeditor-wideField" />
|
||||
<f:form.submit id="tx-lfeditor-button-submit" value="{f:translate(key:'button.search')}" />
|
||||
</p>
|
||||
|
||||
<f:if condition="{searchResultArray}">
|
||||
<fieldset class="tx-lfeditor-fieldset bgColor5">
|
||||
<legend class="bgColor3">
|
||||
<f:translate key="function.const.search.result" />
|
||||
</legend>
|
||||
|
||||
<f:for each="{searchResultArray}" as="data" key="langKey">
|
||||
<fieldset class="bgColor4">
|
||||
<legend class="bgColor3">
|
||||
{f:if(condition: '{langKey} == \'default\'', then: 'en', else: '{langKey}')}
|
||||
</legend>
|
||||
<dl>
|
||||
<f:for each="{data}" as="constantLabel" key="constantKey">
|
||||
<dt>
|
||||
<f:link.action action="prepareEditConstant"
|
||||
controller="EditConstant"
|
||||
arguments="{constantKey: '{constantKey}'}">
|
||||
{constantKey}
|
||||
</f:link.action>
|
||||
</dt>
|
||||
<dd>{constantLabel}</dd>
|
||||
</f:for>
|
||||
</dl>
|
||||
</fieldset>
|
||||
</f:for>
|
||||
</fieldset>
|
||||
</f:if>
|
||||
</f:form>
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
</f:section>
|
||||
|
||||
<f:section name="ButtonBarLeft">
|
||||
</f:section>
|
||||
@@ -0,0 +1,72 @@
|
||||
{namespace lfe=SGalinski\Lfeditor\ViewHelpers}
|
||||
|
||||
<f:layout name="Default" />
|
||||
|
||||
<f:section name="selectItems">
|
||||
<f:render partial="SelectExtensionAndLanguageFile" arguments="{_all}" />
|
||||
<div class="row">
|
||||
<f:form id="mainMenuForm" action="changeSelection">
|
||||
<f:render partial="SelectLanguageAndReference" arguments="{_all}" />
|
||||
</f:form>
|
||||
</div>
|
||||
</f:section>
|
||||
|
||||
<f:section name="main">
|
||||
<f:if condition="{extensionSelection} && {languageFileSelection} && {languageSelection} && {fluidTree}">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<f:translate key="select.explodeToken" />
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<f:form id="contentForm" action="selectExplodeToken">
|
||||
<p>
|
||||
<f:form.textfield name="explodeToken" value="{explodeToken}" />
|
||||
<f:form.submit value="{f:translate(key:'select.explodeToken')}" />
|
||||
</p>
|
||||
<fieldset class="tx-lfeditor-fieldset bgColor5">
|
||||
<legend class="bgColor3">
|
||||
<f:translate key="function.const.treeview.treeview" />
|
||||
</legend>
|
||||
<p class="tx-lfeditor-goodMarkup">
|
||||
xyz -- <f:translate key="function.const.treeview.goodMarkupHint" />
|
||||
</p>
|
||||
<p class="tx-lfeditor-badMarkup">
|
||||
xyz -- <f:translate key="function.const.treeview.badMarkupHint" />
|
||||
</p>
|
||||
<p class="tx-lfeditor-specialMarkup">
|
||||
xyz -- <f:translate key="function.const.treeview.specialMarkupHint" />
|
||||
</p>
|
||||
<fieldset class="bgColor4">
|
||||
<legend class="bgColor3">
|
||||
<a href="javascript:TYPO3.lfEditor.hideUnHideAll()">
|
||||
<f:translate key="function.const.treeview.hideUnhideAll" />
|
||||
</a>
|
||||
</legend>
|
||||
|
||||
<ul class="tx-lfeditor-treeview">
|
||||
<li>
|
||||
<a href="javascript:TYPO3.lfEditor.openCloseTreeEntry('{f:uri.resource(path: 'Icons')}', 'ul-Root', 'icon-Root', 1)">
|
||||
<img id="icon-Root"
|
||||
src="{f:uri.resource(path: 'Icons/{fluidTree.Root.icons.0.name}')}"
|
||||
alt="{fluidTree.Root.icons.0.name}"
|
||||
style="margin-left: {fluidTree.Root.icons.0.marginLeft}px;" />
|
||||
<f:translate key="function.const.treeview.root" />
|
||||
</a>
|
||||
<f:if condition="{fluidTree.Root.children}">
|
||||
<ul id="ul-Root" class="tx-lfeditor-treeview">
|
||||
<f:render partial="TreeElement"
|
||||
arguments="{fluidTree: '{fluidTree.Root.children}', treeHide: '{treeHide}'}" />
|
||||
</ul>
|
||||
</f:if>
|
||||
</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</f:form>
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
</f:section>
|
||||
|
||||
<f:section name="ButtonBarLeft">
|
||||
</f:section>
|
||||
Reference in New Issue
Block a user