{% extends "base.html" %} {% block title %} Accept Invite {% endblock title %} {% block og_title %} {{ _(server_name|default("Media Server", true) ) }} {% endblock og_title %} {% block og_description %} {{ _("You've been invited to join the %(name)s server!", name=server_name|default("Media Server", true) ) }} {% endblock og_description %} {% block main %} {% set has_form_errors = form is defined and form.errors %} {% set show_form_on_load = show_form|default(false) or error|default(false) or has_form_errors %} {% set form_field_style = "opacity: 1; transform: translateY(0);" if show_form_on_load else "opacity: 0; transform: translateY(10px);" %}

{{ _("Accept Invitation") }}

{{ _("Get ready to join the magic") }}

{{ _("Create Account") }}

{{ _("Set up your magical account") }}

{% if error %}

{{ error }}

{% endif %}
{{ form.hidden_tag() }}
{{ form.username(class="w-full px-3 py-2 bg-white/80 dark:bg-gray-700/50 border border-gray-300 dark:border-gray-600 text-gray-900 dark:text-white placeholder-gray-500 dark:placeholder-gray-400 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent backdrop-blur-sm transition-all duration-200 text-sm", placeholder=_("Enter your username") ) }} {% for err in form.username.errors %}

{{ err }}

{% endfor %}
{{ form.email(class="w-full px-3 py-2 bg-white/80 dark:bg-gray-700/50 border border-gray-300 dark:border-gray-600 text-gray-900 dark:text-white placeholder-gray-500 dark:placeholder-gray-400 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent backdrop-blur-sm transition-all duration-200 text-sm", placeholder=_("Enter your email") ) }} {% for err in form.email.errors %}

{{ err }}

{% endfor %}
{{ form.password(class="w-full px-3 py-2 bg-white/80 dark:bg-gray-700/50 border border-gray-300 dark:border-gray-600 text-gray-900 dark:text-white placeholder-gray-500 dark:placeholder-gray-400 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent backdrop-blur-sm transition-all duration-200 text-sm", placeholder=_("Create a password") ) }} {% for err in form.password.errors %}

{{ err }}

{% endfor %}
{{ form.confirm_password(class="w-full px-3 py-2 bg-white/80 dark:bg-gray-700/50 border border-gray-300 dark:border-gray-600 text-gray-900 dark:text-white placeholder-gray-500 dark:placeholder-gray-400 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent backdrop-blur-sm transition-all duration-200 text-sm", placeholder=_("Confirm your password") ) }} {% for err in form.confirm_password.errors %}

{{ err }}

{% endfor %}
{{ form.code(class="w-full px-3 py-2 bg-white/80 dark:bg-gray-700/50 border border-gray-300 dark:border-gray-600 text-gray-900 dark:text-white placeholder-gray-500 dark:placeholder-gray-400 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent backdrop-blur-sm transition-all duration-200 text-sm", placeholder=_("Enter invite code") ) }} {% for err in form.code.errors %}

{{ err }}

{% endfor %}
{% endblock main %}