{% set social_links = [ 'github' : [ 'connected': user.getGithubId() > 0 ], 'gitlab' : [ 'connected': user.getGitlabId() > 0, 'class': 'text-gitlab' ], 'google' : [ 'connected': user.getGoogleId() > 0, 'class': 'text-google' ], 'linkedin' : [ 'connected': user.getLinkedinId() | length, 'class': 'text-linkedin' ] ] %}
{{ form.renderDecorated('username', [ 'length': 7 ]) }} {{ form.renderDecorated('id', [ 'length': 2, 'label-length' : 1 ]) }}
{{ form.renderDecorated('name') }}
{{ form.renderDecorated('email') }}
Password
{% if form.has('passwordCurrent') %}
{{ form.renderDecorated('passwordCurrent') }}
{% endif %}
{{ form.renderDecorated('passwordNew') }}
{{ form.renderDecorated('passwordConfirm') }}
Social sign-in

{% for name,info in social_links %}
{% set class = info['class'] | default(false) %} {{ icon('brand/' ~ name, [ '3x' ]) }}
{% if info['connected'] %} Disconnect {% else %} Connect {% endif %}
{% endfor %}

{{ form.render('Save') }}