Default.html 4.44 KB
Newer Older
1
{namespace lfe=SGalinski\Lfeditor\ViewHelpers}
Damjan's avatar
Damjan committed
2

3
<lfe:addJavaScriptFile javaScriptFile="{f:uri.resource(path: 'Scripts/FormUtility.js')}" />
Damjan's avatar
Damjan committed
4
<lfe:addJavaScriptFile javaScriptFile="{f:uri.resource(path: 'Scripts/Lfeditor.js')}" />
5 6
<f:if condition="{tinyMCESelected} != 'TRUE'">
	<lfe:addJavaScriptFile javaScriptFile="{f:uri.resource(path: 'Scripts/textareaResize.js')}" />
7
</f:if>
8
<lfe:inlineLanguageLabels labels="function.langfile.confirmCancel" />
Damjan's avatar
Damjan committed
9

10
<lfe:addCssFile cssFile="{f:uri.resource(path: 'StyleSheets/Lfeditor.css')}" />
11

12
<f:be.container enableClickMenu="FALSE" loadExtJs="FALSE">
Damjan's avatar
Damjan committed
13 14 15 16 17
	<div class="typo3-fullDoc">
		<div id="typo3-docheader">
			<div id="typo3-docheader-row2">
				<div class="docheader-row2-left">
					<f:be.menus.actionMenu>
18
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.general.general')}"
19
							controller="General"
Damjan's avatar
Damjan committed
20
							action="general" />
21
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.langfile.edit')}"
22
							controller="EditFile"
Damjan's avatar
Damjan committed
23
							action="editFile"
Damjan's avatar
Damjan committed
24
							arguments="{buttonType: 0}" />
25
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.const.edit.edit')}"
26
							controller="EditConstant"
27
							action="editConstant" />
28 29 30 31 32 33 34 35 36 37 38
						<f:if condition="{defaultLanguagePermission}">
							<f:be.menus.actionMenuItem label="{f:translate(key:'function.const.add.add')}"
								controller="AddConstant"
								action="addConstant" />
							<f:be.menus.actionMenuItem label="{f:translate(key:'function.const.delete.delete')}"
								controller="DeleteConstant"
								action="deleteConstant" />
							<f:be.menus.actionMenuItem label="{f:translate(key:'function.const.rename.rename')}"
								controller="RenameConstant"
								action="renameConstant" />
						</f:if>
39
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.const.search.search')}"
40
							controller="SearchConstant"
41
							action="searchConstant" />
Damjan's avatar
Damjan committed
42
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.const.treeview.treeview')}"
43
							controller="ViewTree"
Damjan's avatar
Damjan committed
44
							action="viewTree" />
45
						<f:if condition="{editingMode} == 'extension'">
46 47 48 49
							<f:be.menus.actionMenuItem label="{f:translate(key:'function.backupMgr.backupMgr')}"
								controller="ManageBackups"
								action="manageBackups" />
						</f:if>
Damjan's avatar
Damjan committed
50
					</f:be.menus.actionMenu>
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
					<f:if condition="{tinyMCELoaded}">
						<f:be.menus.actionMenu>
							<f:if condition="{tinyMCESelected}">
								<f:then>
									<f:be.menus.actionMenuItem label="{f:translate(key:'select.insertMode.normal')}"
										controller="General"
										action="switchInsertMode"
										arguments="{tinyMCE: 0}" />
									<f:be.menus.actionMenuItem label="{f:translate(key:'select.insertMode.tinyMCE')}"
										controller="General"
										action="switchInsertMode"
										arguments="{tinyMCE: 1}"
										additionalAttributes="{selected: 'selected'}" />
								</f:then>
								<f:else>
									<f:be.menus.actionMenuItem label="{f:translate(key:'select.insertMode.normal')}"
										controller="General"
										action="switchInsertMode"
										arguments="{tinyMCE: 0}"
										additionalAttributes="{selected: 'selected'}" />
									<f:be.menus.actionMenuItem label="{f:translate(key:'select.insertMode.tinyMCE')}"
										controller="General"
										action="switchInsertMode"
										arguments="{tinyMCE: 1}" />
								</f:else>
							</f:if>
						</f:be.menus.actionMenu>
					</f:if>
79
					<f:if condition="{canChangeEditingModes}">
80
						<f:be.menus.actionMenu>
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
							<f:for each="{editingModeOptions}" key="editingModeOption" as="editingModeLabel">
								<f:if condition="{editingMode} == {editingModeOption}">
									<f:then>
										<f:be.menus.actionMenuItem label="{editingModeLabel}"
											controller="General"
											action="switchEditingMode"
											arguments="{editingMode: editingModeOption}"
											additionalAttributes="{selected: 'selected'}" />
									</f:then>
									<f:else>
										<f:be.menus.actionMenuItem label="{editingModeLabel}"
											controller="General"
											action="switchEditingMode"
											arguments="{editingMode: editingModeOption}" />
									</f:else>
								</f:if>
							</f:for>
98 99
						</f:be.menus.actionMenu>
					</f:if>
Damjan's avatar
Damjan committed
100 101 102
				</div>
			</div>
		</div>
103

Damjan's avatar
Damjan committed
104 105
		<div id="typo3-docbody">
			<div id="typo3-inner-docbody">
106
				<f:render section="selectItems" />
107
				<f:flashMessages renderMode="div" />
Damjan's avatar
Damjan committed
108 109 110 111
				<f:render section="main" />
			</div>
		</div>
	</div>
Damjan's avatar
Damjan committed
112
</f:be.container>