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

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