New.html 2.75 KB
Newer Older
Stefan Busemann's avatar
Stefan Busemann 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
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
{namespace femanager=In2code\Femanager\ViewHelpers}
<f:layout name="Default"/>

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

<f:section name="main">
	<section class="container">
		<f:render partial="Misc/FlashMessages" arguments="{_all}"/>
		<f:render partial="Misc/FormErrors" arguments="{object:User}"/>

		<div class="femanager_new">
			<f:form name="user" object="{user}" action="create"
			        class="form-horizontal {f:if(condition:'{settings.new.validation._enable.client}',then:'feManagerValidation',else:'')}">
				<fieldset>
					<legend>
						<f:translate key="titleCreateProfile"/>
					</legend>
					<f:if condition="{settings.new.fields}">
						<f:then>
							<f:comment>
								If some fields are selected in the flexform
							</f:comment>
							<f:for each="{femanager:misc.explode(string:'{settings.new.fields}')}" as="field">
								<f:render partial="Fields/{femanager:misc.upper(string:'{field}')}" arguments="{_all}"/>
							</f:for>
							<f:render partial="Fields/SubmitCreate" 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:render partial="Fields/Terms" arguments="{_all}"/>
							<f:if condition="{femanager:Misc.CaptchaEnabled(settings:'{settings}')}">
								<f:render partial="Fields/Captcha" arguments="{_all}"/>
							</f:if>

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

					</f:if>

				</fieldset>
			</f:form>
		</div>
	</section>
</f:section>