Navigation.html 1.36 KB
Newer Older
David Steeb's avatar
David Steeb committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<html
	xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
	xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers"
	data-namespace-typo3-fluid="true"
>

<nav class="b_form__group b_form__group--navigation">
	<f:if condition="{form.previousPage}">
		<span class="b_form__button b_form__button--previous">
			<f:form.hidden property="__currentPage" value="{form.previousPage.index}" />
			<f:form.button type="button" onclick="document.forms['{form.formDefinition.identifier}'].submit();"
				class="b_button b_button--secondary"
				formnovalidate="formnovalidate">{formvh:translateElementProperty(element: form.currentPage, renderingOptionProperty: 'previousButtonLabel')}</f:form.button>
		</span>
	</f:if>
	<f:if condition="{form.nextPage}">
		<f:then>
			<span class="b_form__button b_form__button--next">
				<f:form.button property="__currentPage" value="{form.nextPage.index}"
					class="b_button">{formvh:translateElementProperty(element: form.currentPage, renderingOptionProperty: 'nextButtonLabel')}</f:form.button>
			</span>
		</f:then>
		<f:else>
			<span class="b_form__button b_form__button--submit">
				<f:form.button property="__currentPage" value="{form.pages -> f:count()}" class="b_button">
					{formvh:translateElementProperty(element: form, renderingOptionProperty: 'submitButtonLabel')}
				</f:form.button>
			</span>
		</f:else>
	</f:if>
</nav>

</html>