{% extends "layouts/base.html" %} {% block title %}{{ _('Register') }} - TryoutPro{% endblock %} {% block auth_content %}

{{ _('Personal Information') }}


{{ _('Discord Connection') }}

{{ _('Connect your Discord account to automatically fill your gamertags from your connected game accounts.') }}

{% set discord_data = session.get('discord_oauth') %} {% if discord_data %}
{% if discord_data.avatar %} {% set avatar_url = 'https://cdn.discordapp.com/avatars/' + discord_data.id|string + '/' + discord_data.avatar + '.png?size=64' %} Discord Avatar {% else %}
{% endif %}
{{ _('Reconnect') }}
{{ _('Discord connected. Game connections have been used to pre-fill your profile below.') }}
{% else %}
{{ _('Connect Discord Account') }} {{ _('Connect to pre-fill your gamertags from Steam, Battle.net, Xbox, etc.') }}
{% endif %}

{{ _('E-Sports Profile') }}

{{ _('Set up your competitive gaming profile for tryouts.') }}

{% set selected_games = form_data.get('games', []) %} {% set auto_select = session.get('discord_oauth', {}).get('auto_select_games', []) %} {% for game in esport_games %} {% set is_checked = game in selected_games or (not form_data and game in auto_select) %} {% endfor %}
{{ _('Select all games you\'re signing in for.') }}
{% set discord_suggestions = session.get('discord_oauth', {}).get('gamertag_suggestions', {}) %} {% for game in esport_games %} {% set game_id = game|replace(' ', '_') %} {% set form_gamertag = form_data.get('gamertag_' ~ game, '') if form_data else '' %} {% set suggested = discord_suggestions.get(game, '') %} {% set gamertag_val = form_gamertag if form_gamertag else suggested %} {% set game_checked = (form_data and game in selected_games) or (not form_data and game in auto_select) %} {% set is_visible = gamertag_val or game_checked %}
Your in-game name for {{ game }}. {% if suggested and not form_gamertag %} Pre-filled from Discord connections. {% endif %}
{% endfor %}
{{ _('Connect your League OS profile for organized play.') }}

{{ _('Security') }}

{% endblock %}