Default.html 3.61 KB
Newer Older
1 2
{namespace lfe=SGalinski\Lfeditor\ViewHelpers}
<lfe:addJavaScriptFile javaScriptFile="{f:uri.resource(path: 'Scripts/FormUtility.js')}" />
Damjan's avatar
Damjan committed
3
<lfe:addJavaScriptFile javaScriptFile="{f:uri.resource(path: 'Scripts/Lfeditor.js')}" />
Damjan's avatar
Damjan committed
4 5
<lfe:addJavaScriptFile javaScriptFile="{f:uri.resource(path: 'Scripts/textareaResize.js')}" />

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

<f:be.container enableClickMenu="FALSE" loadPrototype="FALSE" loadExtJs="FALSE">

Damjan's avatar
Damjan committed
10 11 12 13 14 15 16
	<div class="typo3-fullDoc">
		<div id="typo3-docheader">
			<f:comment>
				<!--<div id="typo3-docheader-row1">-->
				<!--<div class="buttonsleft">-->
				<!--<f:render section="iconButtons" />-->
				<!--</div>-->
17

Damjan's avatar
Damjan committed
18 19 20 21 22 23 24 25
				<!--<div class="buttonsright">-->
				<!--<f:be.buttons.shortcut />-->
				<!--</div>-->
				<!--</div>-->
			</f:comment>
			<div id="typo3-docheader-row2">
				<div class="docheader-row2-left">
					<f:be.menus.actionMenu>
26
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.general.general')}"
Damjan's avatar
Damjan committed
27 28
							controller="Main"
							action="general" />
29
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.langfile.edit')}"
Damjan's avatar
Damjan committed
30
							controller="Main"
Damjan's avatar
Damjan committed
31 32
							action="editFile"
							arguments="{buttonType: 0}"/>
33 34 35
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.const.edit.edit')}"
							controller="Main"
							action="editConstant" />
Damjan's avatar
Damjan committed
36 37 38
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.const.add.add')}"
							controller="Main"
							action="addConstant" />
39 40 41
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.const.delete.delete')}"
							controller="Main"
							action="deleteConstant" />
42 43 44
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.const.rename.rename')}"
							controller="Main"
							action="renameConstant" />
45 46 47
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.const.search.search')}"
							controller="Main"
							action="searchConstant" />
Damjan's avatar
Damjan committed
48 49 50
						<f:be.menus.actionMenuItem label="{f:translate(key:'function.const.treeview.treeview')}"
							controller="Main"
							action="viewTree" />
Damjan's avatar
Damjan committed
51 52 53 54
					</f:be.menus.actionMenu>
				</div>
			</div>
		</div>
55

Damjan's avatar
Damjan committed
56 57 58
		<div id="typo3-docbody">
			<div id="typo3-inner-docbody">
				<f:form id="mainMenuForm" action="{mainMenuSelection}ChangeSelection">
59
					<f:flashMessages renderMode="div" />
60 61 62
					<h2 class="uppercase">
						<f:translate key="select.extension" />
					</h2>
Damjan's avatar
Damjan committed
63 64
					<f:form.select name="extensionSelection"
						value="{extensionSelection}"
65 66
						options="{extensionOptions}"
						additionalAttributes="{onchange: 'submitForm(\'mainMenuForm\')'}"
Damjan's avatar
Damjan committed
67 68 69 70 71 72 73
						/>
					<f:render section="selectItems" />
				</f:form>
				<f:render section="main" />
			</div>
		</div>
	</div>
74 75 76
</f:be.container>

<f:comment>
Damjan's avatar
Damjan committed
77
	<f:debug title="All available variables">{_all}</f:debug>
78
	<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
79

Damjan's avatar
Damjan committed
80 81 82
	<div>
		This is Default layout. <br>
		<f:form id="mainMenuForm" action="mainMenuSelect">
83

Damjan's avatar
Damjan committed
84 85
			<f:form.select name="mainMenuSelection"
				value="{mainMenuSelection}"
86
				options="{ general: 'General select item', editFile: 'Edit file select item'}" options="{NULL: '--Select something--', extension1: 'Test extension 1', extension2: 'Test extension 2'}"
Damjan's avatar
Damjan committed
87 88 89 90 91 92 93 94 95 96 97 98
				additionalAttributes="{onchange: 'submitForm(\'mainMenuForm\');'}"
				/>
			<br><br><br><br><br><br><br><br><br><br><br><br><br><br>
			<f:render section="selectItems" />
		</f:form>
		<br><br>
		<!--<f:link.action action="editFile">Edit file link</f:link.action>-->
		<!--<br>-->
		<!--<f:link.action action="general">General link</f:link.action>-->
		<!--<br><br>-->
		<f:render section="main" />
	</div>
99
</f:comment>