{% extends "layouts/base.html" %} {% load static %} {% block title %} {% if object %}Edit Jingle Template{% else %}Create Jingle Template{% endif %} - Stream Processor {% endblock %} {% block content %}

{% if object %} Edit Jingle Template {% else %} Create Jingle Template {% endif %}

{% if object %} Update the jingle template configuration and reference image. {% else %} Upload a reference image and configure detection settings for a new jingle template. {% endif %}

Back to Templates
{% csrf_token %}
Basic Information
{{ form.name }} {% if form.name.errors %}
{{ form.name.errors.0 }}
{% endif %} {% if form.name.help_text %}
{{ form.name.help_text }}
{% endif %}
URL slug will be automatically generated from the template name
{{ form.description }} {% if form.description.errors %}
{{ form.description.errors.0 }}
{% endif %} {% if form.description.help_text %}
{{ form.description.help_text }}
{% endif %}
Reference Image
{% if object and object.image_path %} {% endif %}
{{ form.image_file }} {% if form.image_file.errors %}
{{ form.image_file.errors.0 }}
{% endif %} {% if form.image_file.help_text %}
{{ form.image_file.help_text }}
{% endif %}
Image Guidelines:
  • Use clear, high-quality images for better detection accuracy
  • Supported formats: JPG, PNG, GIF, WebP
  • Recommended size: 1920x1080 or higher resolution
  • Avoid blurry or low-contrast images
Detection Configuration
{{ form.channel }} {% if form.channel.errors %}
{{ form.channel.errors.0 }}
{% endif %} {% if form.channel.help_text %}
{{ form.channel.help_text }}
{% endif %}
{{ form.category }} {% if form.category.errors %}
{{ form.category.errors.0 }}
{% endif %} {% if form.category.help_text %}
{{ form.category.help_text }}
{% endif %}
{{ form.similarity_threshold }} {% if form.similarity_threshold.errors %}
{{ form.similarity_threshold.errors.0 }}
{% endif %} {% if form.similarity_threshold.help_text %}
{{ form.similarity_threshold.help_text }}
{% endif %}
Status
{{ form.is_active }}
{% if form.is_active.errors %}
{{ form.is_active.errors.0 }}
{% endif %}
Enable this template for jingle detection
Cancel
{% endblock %}