Commit dd76e92d authored by Stefan Busemann's avatar Stefan Busemann
Browse files

[TASK] Add Edit Form from femanager

parent 7901fd8a
{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>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment