{% extends "orga/base.html" %} {% load bootstrap4 %} {% load i18n %} {% block content %}

{% trans "Set up YouTube embeds" %}

{% if form %}

{% translate "Import" %}

{% blocktrans trimmed %} You can either import YouTube URLs from a CSV file or add them manually. For the file import, you will have to include a video_id (the part past the ?v= in YouTube, though the full URL works too) and a submission column (the ID/code of the submission, e.g. DEXF88). {% endblocktrans %}
{% blocktrans trimmed %} If you prefer, you can also use the API. {% endblocktrans %}

{% csrf_token %} {% bootstrap_field file_form.file layout='inline' %}

{% translate "Manually" %}

{% csrf_token %}
{% bootstrap_form form layout='event' %}
{% else %}
{% blocktrans trimmed %} You will be able to add YouTube URLs to your sessions once you've created a schedule. {% endblocktrans %}
{% endif %} {% endblock %}