{% 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);" %} {{ _("You've been invited!") }} {% if server_name %} {{ _("To join") }} {{ server_name }} {% endif %} {{ _("Join the ultimate media server experience.") }} {{ _("Accept Invitation") }} {{ _("Get ready to join the magic") }} {{ _("Accept Invitation") }} ✨ {{ _("Create Account") }} {{ _("Set up your magical account") }} {% if error %} {{ error }} {% endif %} {{ form.hidden_tag() }} {{ _("Username") }} {{ 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 %} {{ _("Email") }} {{ 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 %} {{ _("Password") }} {{ 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 %} {{ _("Confirm Password") }} {{ 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 %} {{ _("Invite Code") }} {{ 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 %} {{ _("Create Account") }} {{ _("Creating account...") }} {{ _("Secure invitation system powered by Wizarr") }} {% endblock main %}
{{ _("To join") }}
{{ server_name }}
{{ _("Join the ultimate media server experience.") }}
{{ _("Get ready to join the magic") }}
{{ _("Set up your magical account") }}
{{ error }}
{{ err }}
{{ _("Secure invitation system powered by Wizarr") }}