Default.html 4.61 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>
Damjan's avatar
Damjan committed
8

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

<f:be.container enableClickMenu="FALSE" loadPrototype="FALSE" loadExtJs="FALSE">
Damjan's avatar
Damjan committed
12 13 14 15 16
	<div class="typo3-fullDoc">
		<div id="typo3-docheader">
			<div id="typo3-docheader-row2">
				<div class="docheader-row2-left">
					<f:be.menus.actionMenu>
17
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.general.general')}"
18
							controller="General"
Damjan's avatar
Damjan committed
19
							action="general" />
20
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.langfile.edit')}"
21
							controller="EditFile"
Damjan's avatar
Damjan committed
22
							action="editFile"
Damjan's avatar
Damjan committed
23
							arguments="{buttonType: 0}" />
24
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.const.edit.edit')}"
25
							controller="EditConstant"
26
							action="editConstant" />
Damjan's avatar
Damjan committed
27
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.const.add.add')}"
28
							controller="AddConstant"
Damjan's avatar
Damjan committed
29
							action="addConstant" />
30
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.const.delete.delete')}"
31
							controller="DeleteConstant"
32
							action="deleteConstant" />
33
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.const.rename.rename')}"
34
							controller="RenameConstant"
35
							action="renameConstant" />
36
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.const.search.search')}"
37
							controller="SearchConstant"
38
							action="searchConstant" />
Damjan's avatar
Damjan committed
39
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.const.treeview.treeview')}"
40
							controller="ViewTree"
Damjan's avatar
Damjan committed
41
							action="viewTree" />
42 43 44 45 46
						<f:if condition="{adminUser}">
							<f:be.menus.actionMenuItem label="{f:translate(key:'function.backupMgr.backupMgr')}"
								controller="ManageBackups"
								action="manageBackups" />
						</f:if>
Damjan's avatar
Damjan committed
47
					</f:be.menus.actionMenu>
48 49 50 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
					<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>
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
					<f:if condition="{adminUser}">
						<f:be.menus.actionMenu>
							<f:if condition="{overrideMode}">
								<f:then>
									<f:be.menus.actionMenuItem label="{f:translate(key:'select.editMode.normal')}"
										controller="General"
										action="setOverrideMode"
										arguments="{overrideMode: 0}" />
									<f:be.menus.actionMenuItem label="{f:translate(key:'select.editMode.override')}"
										controller="General"
										action="setOverrideMode"
										arguments="{overrideMode: 1}"
										additionalAttributes="{selected: 'selected'}" />
								</f:then>
								<f:else>
									<f:be.menus.actionMenuItem label="{f:translate(key:'select.editMode.normal')}"
										controller="General"
										action="setOverrideMode"
										arguments="{overrideMode: 0}"
										additionalAttributes="{selected: 'selected'}" />
									<f:be.menus.actionMenuItem label="{f:translate(key:'select.editMode.override')}"
										controller="General"
										action="setOverrideMode"
										arguments="{overrideMode: 1}" />
								</f:else>
							</f:if>
						</f:be.menus.actionMenu>
					</f:if>
Damjan's avatar
Damjan committed
104 105 106
				</div>
			</div>
		</div>
107

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