{{ form_start(form, { 'action': path('fos_user_profile_edit'), 'attr': { 'class': 'fos_user_profile_edit col-md-6' } }) }} {{ form_errors(form) }}
{{ form_label(form.username) }}
{{ form_errors(form.username) }} {{ form_widget(form.username) }}
{{ form_label(form.email) }}
{{ form_errors(form.email) }} {{ form_widget(form.email) }}
{% if not app.user.githubId %}
{{ form_label(form.current_password) }}
{{ form_errors(form.current_password) }} {{ form_widget(form.current_password) }}
{% endif %}
{{ form_errors(form.failureNotifications) }}
{{ form_rest(form) }}
Using GitHub:
{% set ghUser = app.user.githubUsername %} {{ (app.user.githubId ? 'profile.accounts_connected' : 'profile.connect_accounts')|trans({"%user%": ghUser|default('unknown')}) }} {% if app.user.githubId %} {% if ghUser == false %}

Unknown GitHub user, token is missing, logout and login again via GitHub to fix it, or disconnect your GitHub account entirely to connect another one.

{% else %}

Disconnect your GitHub account to connect another one.

{% endif %} {% endif %} {{ form_end(form) }}