From 9c6bea53e6ce6466bf9dbd8a8ef49748fda98370 Mon Sep 17 00:00:00 2001 From: Ptitloup Date: Wed, 31 Jan 2024 11:40:48 +0100 Subject: [PATCH] [DONE] Ptitloup/improve video edit (#1038) * add USE DISCIPLINE * remove launch transcript in video form - use specific view to do it * remove space * add class for field and remove USE_DISCIPLINE * change underscore by minus --- pod/video/forms.py | 6 +++--- pod/video/templates/videos/video_edit.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pod/video/forms.py b/pod/video/forms.py index 13f952d2f7..c3f7e5a8f8 100644 --- a/pod/video/forms.py +++ b/pod/video/forms.py @@ -786,9 +786,9 @@ def clean(self): and hasattr(self.instance, "video") and cleaned_data["video"] != self.instance.video ) - self.launch_transcript = "transcript" in cleaned_data.keys() and hasattr( - self.instance, "transcript" - ) + # self.launch_transcript = "transcript" in cleaned_data.keys() and hasattr( + # self.instance, "transcript" + # ) self.change_user = ( self.launch_encode is False and hasattr(self.instance, "encoding_in_progress") diff --git a/pod/video/templates/videos/video_edit.html b/pod/video/templates/videos/video_edit.html index 4f79bc5b5e..53975ca24d 100644 --- a/pod/video/templates/videos/video_edit.html +++ b/pod/video/templates/videos/video_edit.html @@ -106,7 +106,7 @@

{% for field in form.visible_fields %} {% if field.name in options.fields %} -
+
{% if "form-check-input" in field.field.widget.attrs.class %}