mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-05 23:18:53 -05:00
50 lines
1.4 KiB
HTML
50 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
{% load crispy_forms_tags %}
|
|
{% load static %}
|
|
|
|
{% block headtitle %}Add subtitle - {{PORTAL_NAME}}{% endblock headtitle %}
|
|
|
|
{% block innercontent %}
|
|
{% include "cms/media_nav.html" with active_tab="subtitles" %}
|
|
|
|
<div class="user-action-form-wrap">
|
|
<div class="user-action-form-inner">
|
|
<form enctype="multipart/form-data" action="" method="post" class="post-form">
|
|
{% csrf_token %}
|
|
{% crispy form %}
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{% if subtitles %}
|
|
<div class="user-action-form-wrap">
|
|
<div class="user-action-form-inner">
|
|
<h3>Existing Subtitles</h3>
|
|
<ul>
|
|
{% for subtitle in subtitles %}
|
|
<li><a href="{{subtitle.url}}">{{subtitle.language.title}}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if whisper_form %}
|
|
<div class="user-action-form-wrap">
|
|
<div class="user-action-form-inner">
|
|
<h3 style="display: flex; align-items: center; gap: 0.25rem;">Request Automatic Tranascription
|
|
<span title="This is Automatic Transcription using a Whisper model that is loaded locally" style="cursor: help;">
|
|
<i class="material-icons">info_outline</i>
|
|
</span>
|
|
</h3>
|
|
<form enctype="multipart/form-data" action="" method="post" class="post-form">
|
|
{% csrf_token %}
|
|
{% crispy whisper_form %}
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% endblock innercontent %}
|