Default.html 4.92 KB
Newer Older
1
{namespace sgm=SGalinski\SgMail\ViewHelpers}
2
<f:be.container enableClickMenu="FALSE" loadExtJs="FALSE" includeCssFiles="{0: '{f:uri.resource(path: \'StyleSheets/backend.css\')}'}">
3
	<sgm:addJavaScriptFile javaScriptFile="{f:uri.resource(path: 'Scripts/Backend.js')}" />
4
	<sgm:inlineLanguageLabels labels="backend.delete_template, backend.send_mail_manually, backend.send_mail_again" />
5
6
7
8
9
	<div class="module" data-module-id="" data-module-name="">
		<div class="module-docheader t3js-module-docheader">
			<div class="module-docheader-bar module-docheader-bar-navigation t3js-module-docheader-bar t3js-module-docheader-bar-navigation">
				<div class="module-docheader-bar-column-left">
					<div class="btn-toolbar" role="toolbar">
10
						<f:be.menus.actionMenu>
11
							<f:if condition="{mode} == 'queue'">
12
								<f:then>
13
									<sgm:be.menus.actionMenuItem label="{f:translate(key:'backend.mail_queue')}"
14
15
										controller="Queue"
										action="index"
16
										arguments="{selectedTemplate: templateKey, selectedExtension: extensionKey}"
17
18
19
										additionalAttributes="{selected: 'selected'}" />
								</f:then>
								<f:else>
20
									<sgm:be.menus.actionMenuItem label="{f:translate(key:'backend.mail_queue')}"
21
										controller="Queue"
22
23
										action="index"
										arguments="{selectedTemplate: templateKey, selectedExtension: extensionKey}" />
24
25
								</f:else>
							</f:if>
26
							<f:if condition="{mode} == 'editor'">
27
								<f:then>
28
									<sgm:be.menus.actionMenuItem label="{f:translate(key:'backend.template_editor')}"
29
30
										controller="Mail"
										action="index"
31
										arguments="{selectedTemplate: templateKey, selectedExtension: extensionKey}"
32
33
34
										additionalAttributes="{selected: 'selected'}" />
								</f:then>
								<f:else>
35
									<sgm:be.menus.actionMenuItem label="{f:translate(key:'backend.template_editor')}"
36
										controller="Mail"
37
38
										action="index"
										arguments="{selectedTemplate: templateKey, selectedExtension: extensionKey}" />
39
40
41
								</f:else>
							</f:if>
						</f:be.menus.actionMenu>
42
43
44
45
46
47
						<f:if condition="{templates}">
							<f:be.menus.actionMenu>
								<f:for each="{templates}" as="template" key="extensionKey">
									<f:if condition="{mode} == 'queue'">
										<sgm:be.menus.actionMenuOptionGroup label="{extensionKey}">
											<f:for each="{template}" as="currentTemplate" key="templateKey">
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
												<sgm:extendedIf condition="{selectedTemplateKey} == {templateKey}"
													and="{selectedExtensionKey} == {extensionKey}">
													<f:then>
														<sgm:be.menus.actionMenuItem label="{currentTemplate.templateName}"
															controller="Queue"
															action="index"
															arguments="{selectedTemplate: templateKey, selectedExtension: extensionKey}"
															additionalAttributes="{selected: 'selected'}" />
													</f:then>
													<f:else>
														<sgm:be.menus.actionMenuItem label="{currentTemplate.templateName}"
															controller="Queue"
															action="index"
															arguments="{selectedTemplate: templateKey, selectedExtension: extensionKey}" />
													</f:else>
												</sgm:extendedIf>
64
65
66
67
											</f:for>
										</sgm:be.menus.actionMenuOptionGroup>
									</f:if>
									<f:else>
68
69
70
71

										<f:if condition="{mode} == 'editor'">
											<sgm:be.menus.actionMenuOptionGroup label="{extensionKey}">
												<f:for each="{template}" as="currentTemplate" key="templateKey">
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
													<sgm:extendedIf condition="{selectedTemplateKey} == {templateKey}"
														and="{selectedExtensionKey} == {extensionKey}">
														<f:then>
															<sgm:be.menus.actionMenuItem label="{currentTemplate.templateName}"
																controller="Mail"
																action="index"
																arguments="{selectedTemplate: templateKey, selectedExtension: extensionKey}"
																additionalAttributes="{selected: 'selected'}" />
														</f:then>
														<f:else>
															<sgm:be.menus.actionMenuItem label="{currentTemplate.templateName}"
																controller="Mail"
																action="index"
																arguments="{selectedTemplate: templateKey, selectedExtension: extensionKey}" />
														</f:else>
													</sgm:extendedIf>
88
89
90
												</f:for>
											</sgm:be.menus.actionMenuOptionGroup>
										</f:if>
91
92
93
94
95
									</f:else>
								</f:for>

							</f:be.menus.actionMenu>
						</f:if>
96
97
98
					</div>
				</div>
				<div class="module-docheader-bar-column-right">
99
					<f:if condition="{mode} == 'editor'">
100
						<f:link.action class="reset-btn btn-danger btn form-group" action="reset" arguments="{template: selectedTemplateKey, extensionKey: selectedTemplate.extension}">{f:translate(key:'backend.button_reset_all')}</f:link.action>
101
					</f:if>
102
103
104
105
106
107
108
109
110
111
				</div>
			</div>
		</div>
		<div id="typo3-docbody">
			<div id="typo3-inner-docbody">
				<f:render section="main" />
			</div>
		</div>
	</div>
</f:be.container>