{namespace neos=Neos\Neos\ViewHelpers}
<f:layout name="BackendSubModule" />

<f:section name="subtitle">
	<div class="neos-module-container">
		<h2><neos:backend.translate id="users.editUser" arguments="{0:'{f:if(condition: user.name.firstName, then: user.name, else: user.accounts.0.accountIdentifier)}'}" source="Modules" package="Neos.Neos"/></h2>
	</div>
</f:section>

<f:section name="content">
	<f:form action="update" object="{user}" objectName="user" class="user user-edit">
		<f:render partial="Module/Shared/EditUser" arguments="{_all}"/>

		<div class="neos-footer">
			<neos:link.module path="user" class="neos-button">{neos:backend.translate(id: 'cancel', value: 'Cancel')}</neos:link.module>
			<f:form.submit value="{neos:backend.translate(id: 'userSettings.saveUser', source: 'Modules', value: 'Save user')}" class="neos-button neos-button-primary" />
		</div>
	</f:form>
	<f:form action="index" id="postHelper" method="post"></f:form>
</f:section>
