{% extends "public/base.html" %}

{% load i18n %}
{% block head_script %}
    <script>
        const organization = {{ organization_json | safe }};
        const enrollApiUrl = "{{ enroll_api_url }}";
        const localeMessages = {
            "courses": "{% translate 'Courses' %}",
            "enroll_now": "{% translate 'Enroll Now' %}",
            "enrol_for_course": "{% translate 'Enroll for COURSE_NAME' %}",
            "email": "{% translate 'email' %}",
            "cancel": "{% translate 'Cancel' %}",
            "submit": "{% translate 'Submit' %}",
            "enrollment_success": "{% translate 'You are enrolled in this course.' %}",
            "enrollment_failed": "{% translate 'Enrollment failed. Please try again.' %}",
            "no_courses_available": "{% translate 'No courses available.' %}",
            "email_required": "{% translate 'Email is required' %}",
            "email_invalid": "{% translate 'Please enter a valid email address' %}",
        }
    </script>
    <link rel="modulepreload" crossorigin href="/static/assets/render-CsAa6Dr_.js">
    <link rel="modulepreload" crossorigin href="/static/assets/Layout-BVMWwqFc.js">
    <link rel="modulepreload" crossorigin href="/static/assets/RequiredTextField-Bz89YX4-.js">
    <link rel="modulepreload" crossorigin href="/static/assets/utils-B_PI31II.js">
    <link rel="modulepreload" crossorigin href="/static/assets/Alert-C1JjHWpG.js">
    <link rel="modulepreload" crossorigin href="/static/assets/Button-DRzV9gyj.js">
    <link rel="modulepreload" crossorigin href="/static/assets/Dialog-DXg9g5Sc.js">
    <link rel="modulepreload" crossorigin href="/static/assets/Container-BAbMFKjx.js">
    <link rel="stylesheet" href="/static/assets/render-tn0RQdqM.css">
    <script type="module" crossorigin src="/static/assets/organization-Jg9sWWSJ.js"></script>
{% endblock %}
