{% extends "base.html" %} {% block title %}{{ t('profile') }} | {{ app_name }}{% endblock %} {% block content %}

{{ t('profile') }}

{{ t('profile_subtitle') }}

{{ form.hidden_tag() }}
{{ form.submit(class="button") }} {{ t('change_password') }}

{{ ltext('Telegram Notifications / إشعارات تيليجرام') }}

{{ ltext('Link your account once, then every ticket email alert will also be delivered in Telegram. / اربط حسابك مرة واحدة، وبعدها ستصلك إشعارات التذاكر التي تُرسل بالبريد أيضاً على تيليجرام.') }}

{% if current_user.telegram_chat_id %} {% elif active_telegram_link %} {% else %} {% endif %}
{% if telegram_enabled and current_user.phone %} {% if not current_user.telegram_chat_id %}
{% endif %}
{% if current_user.telegram_chat_id %}
{% endif %} {% endif %}
{% if not telegram_enabled %} {{ ltext('Telegram notifications are currently disabled by the administrator. / إشعارات تيليجرام معطلة حالياً من قبل الإدارة.') }} {% elif not current_user.phone %} {{ ltext('Save your mobile number first, then start the Telegram link process. / احفظ رقم الموبايل أولاً، ثم ابدأ ربط تيليجرام.') }} {% elif active_telegram_link and not current_user.telegram_chat_id %} {{ ltext('If you are testing locally without a public webhook, press Start in Telegram, share your number, then return to this page or press Refresh Telegram Status. / إذا كنت تختبر محلياً بدون webhook عام، اضغط Start في تيليجرام وشارك رقمك ثم ارجع إلى هذه الصفحة أو اضغط تحديث حالة تيليجرام.') }} {% elif telegram_bot_username %} {{ ltext('Bot username / اسم مستخدم البوت') }}: @{{ telegram_bot_username }} {% else %} {{ ltext('The bot username could not be loaded right now, but the link request can still be created if Telegram is configured correctly. / لم يتم تحميل اسم المستخدم الخاص بالبوت حالياً، لكن يمكن إنشاء طلب الربط إذا كانت إعدادات تيليجرام صحيحة.') }} {% endif %}

{{ t('setup_mfa') }}

{{ t('mfa_enabled') if current_user.two_factor_enabled else t('mfa_disabled') }}

{% if current_user.has_role('super-admin') %} {% if current_user.two_factor_enabled %} {{ t('disable_mfa') }} {% else %} {{ t('enable_mfa') }} {% endif %} {% else %} {{ ltext('MFA for users is controlled by the super admin. / تفعيل وإلغاء MFA للمستخدمين يتم من قبل السوبر أدمن.') }} {% endif %}
{% endblock %}