Default.html 3.52 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')}" />
4
<lfe:addCssFile cssFile="{f:uri.resource(path: 'StyleSheets/Lfeditor.css')}" />
5 6 7

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

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

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

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

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

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

Damjan's avatar
Damjan committed
82 83
			<f:form.select name="mainMenuSelection"
				value="{mainMenuSelection}"
84
				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
85 86 87 88 89 90 91 92 93 94 95 96
				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>
97
</f:comment>