{% load i18n static cosinnus_tags %}
{% if not SETTINGS.COSINNUS_IS_INTEGRATED_PORTAL %}
{% if not SETTINGS.COSINNUS_IS_SSO_PORTAL %}
{% endif %}
{% endif %}
{% if not SETTINGS.COSINNUS_IS_INTEGRATED_PORTAL and not SETTINGS.COSINNUS_IS_SSO_PORTAL %}
{% if view == "edit_profile" or view == "delete_profile" %}
{% if SETTINGS.COSINNUS_FACEBOOK_INTEGRATION_ENABLED and request.user.cosinnus_profile.get_facebook_user_id %}
{% captureas label %}{% blocktrans with name=request.user.cosinnus_profile.get_facebook_username %}Your account is currently connected with the Facebook account "{{ name }}". Do you really want to disconnect your Facebook account? This will also revoke all permissions you granted us to your Facebook account.{% endblocktrans %}{% endcaptureas %}
{% captureas title %}{% trans "Disconnect Facebook Account" %}{% endcaptureas %}
{% captureas action %}{% url 'cosinnus:facebook-remove-association' %}{% endcaptureas %}
{% include "cosinnus/modal_box.html" with id="remove-facebook-modal" label=label title=title form_action=action disable_on_submit='true' %}
{% endif %}
{% endif %}
{% if view == "edit_profile" or view == "delete_profile" %}
{% endif %}
{% endif %}