Edit.html 3.18 KB
Newer Older
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{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">
		<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>

							<f:if condition="{settings.edit.fields}">

								<f:then>
									<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>
									<f:render partial="Fields/SubmitUpdate" arguments="{_all}" />
								</f:then>

								<f:else>
									<f:comment>
										If no fields are selected in the flexform => show all
									</f:comment>
									<f:render partial="Fields/Username" arguments="{_all}" />
									<f:render partial="Fields/Password" arguments="{_all}" />
									<f:render partial="Fields/Title" arguments="{_all}" />
									<f:render partial="Fields/Name" arguments="{_all}" />
									<f:render partial="Fields/FirstName" arguments="{_all}" />
									<f:render partial="Fields/MiddleName" arguments="{_all}" />
									<f:render partial="Fields/LastName" arguments="{_all}" />
									<f:render partial="Fields/Gender" arguments="{_all}" />
									<f:render partial="Fields/DateOfBirth" arguments="{_all}" />
									<f:render partial="Fields/Company" arguments="{_all}" />
									<f:render partial="Fields/Www" arguments="{_all}" />
									<f:render partial="Fields/Email" arguments="{_all}" />
									<f:render partial="Fields/Telephone" arguments="{_all}" />
									<f:render partial="Fields/Fax" arguments="{_all}" />
									<f:render partial="Fields/Address" arguments="{_all}" />
									<f:render partial="Fields/Zip" arguments="{_all}" />
									<f:render partial="Fields/City" arguments="{_all}" />
									<f:render partial="Fields/Country" arguments="{_all}" />
									<f:render partial="Fields/Image" arguments="{_all}" />
									<f:render partial="Fields/Usergroup" arguments="{_all}" />
									<f:if condition="{femanager:Misc.CaptchaEnabled(settings:'{settings}')}">
										<f:render partial="Fields/Captcha" arguments="{_all}" />
									</f:if>

									<f:render partial="Fields/SubmitUpdate" arguments="{_all}" />
								</f:else>

							</f:if>

						</fieldset>

						<f:render partial="Misc/DeleteLink" arguments="{_all}" />
					</f:form>
				</f:then>
				<f:else>
					<div class="femanager_note">
						<f:translate key="notLoggedIn" />
					</div>
				</f:else>
			</f:if>
		</div>
	</f:section>

</div>