{#
    This template returns the updates for one usersettings form processed as part of an XHR request.
#}

{% import "usersettings_forms.html" as user_forms with context %}

{% if part == 'personal' %}
    {{ user_forms.personal(form) }}
{% elif part == 'password' %}
    {{ user_forms.password(form) }}
{% elif part == 'notification' %}
    {{ user_forms.notification(form) }}
{% elif part == 'ui' %}
    {{ user_forms.ui(form) }}
{% elif part == 'quicklinks' %}
    {{ user_forms.quicklinks(form) }}
{% elif part == 'options' %}
    {{ user_forms.options(form) }}
{% elif part == 'subscriptions' %}
    {{ user_forms.subscriptions(form) }}
{% endif %}
