Edit.html 1.68 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
{namespace femanager=In2code\Femanager\ViewHelpers}
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"	xmlns:f="http://typo3.org/ns/fluid/ViewHelpers" >
	<f:layout name="Default" />

	User / Edit
	Available variables:
	{user}
	{allUserGroups}

	<f:section name="main">
Stefan Busemann's avatar
Stefan Busemann committed
11
		<section class="container">
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
		<f:render partial="Misc/FlashMessages" arguments="{_all}" />
		<f:render partial="Misc/FormErrors" arguments="{object:User}" />

		<div class="femanager_edit">
			<f:if condition="{user}">
				<f:then>
					<f:form
							name="user"
							object="{user}"
							action="update"
							enctype="multipart/form-data"
							class="form-horizontal {f:if(condition:'{settings.edit.validation._enable.client}',then:'feManagerValidation',else:'')}">
						<fieldset>
							<legend>
								<f:translate key="titleUpdateProfile" />
							</legend>

29
30
31
32
33
34
35
36
							<f:form.hidden name="token" value="{token}" />

							<f:comment>
								If some fields are selected in the flexform
							</f:comment>
							<f:for each="{femanager:misc.explode(string:'{settings.edit.fields}')}" as="field">
								<f:render partial="Fields/{femanager:misc.upper(string:'{field}')}" arguments="{_all}"/>
							</f:for>
37

Stefan Busemann's avatar
Stefan Busemann committed
38
39
40
41
42
43
44
45
							<div class="femanager_fieldset femanager_submit form-group">
								<div class="col-sm-10 col-sm-offset-2">
									<f:form.submit
											value="{f:translate(key:'submitEdit')}"
											id="femanager_field_submit"
											class="btn btn-success btn-large" />
								</div>
							</div>
46
47
48
49
50
51
52
53
54
55
						</fieldset>
					</f:form>
				</f:then>
				<f:else>
					<div class="femanager_note">
						<f:translate key="notLoggedIn" />
					</div>
				</f:else>
			</f:if>
		</div>
Stefan Busemann's avatar
Stefan Busemann committed
56
		</section>
57
58
	</f:section>
</div>