Commit 24a90252 authored by Stefan Busemann's avatar Stefan Busemann
Browse files

[TASK] Add Layout and container

parent 47794df5
plugin.tx_femanager {
view {
layoutRootPaths.2 = EXT:t3omy/Resources/Private/Layouts/Femanager/
}
settings {
new {
validation {
......@@ -8,3 +11,4 @@ plugin.tx_femanager {
}
}
}
<section class="container">
<div class="tx-femanager">
<f:render section="main" />
<f:render partial="Misc/AdditionalFields" arguments="{_all}" />
</div>
</section>
{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>
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