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

[TASK] Update edit form html

parent 521b7edb
Pipeline #2473 canceled with stages
......@@ -8,6 +8,7 @@
{allUserGroups}
<f:section name="main">
<section class="container">
<f:render partial="Misc/FlashMessages" arguments="{_all}" />
<f:render partial="Misc/FormErrors" arguments="{object:User}" />
......@@ -25,54 +26,36 @@
<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>
<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" />
<f:link.action
action="delete"
arguments="{user:user}"
class="btn btn-danger btn-large"
additionalAttributes="{data-confirm:'{f:translate(key:\'UserDeleteConfirmation\')}'}">
<i class="icon-trash icon-white"></i>
<f:translate key="deleteProfile" />
</f:link.action>
</div>
</div>
<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>
......@@ -82,6 +65,7 @@
</f:else>
</f:if>
</div>
</section>
</f:section>
</div>
Supports Markdown
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