Skip to content

Commit

Permalink
[DONE] Ptitloup/improve video edit (#1038)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ptitloup authored Jan 31, 2024
1 parent eb49ce2 commit 9c6bea5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pod/video/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion pod/video/templates/videos/video_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ <h2 class="accordion-header">

{% for field in form.visible_fields %}
{% if field.name in options.fields %}
<div class="mt-3 {% if 'description_' in field.name or 'title_' in field.name %}collapse ms-4{% endif %}{% if 'description_' in field.name %} description{% endif %}{% if 'title_' in field.name %} title{% endif %}{% with 'is_restricted restrict_access_to_groups password' as res %} {% if field.name in res.split %}collapse restricted_access{% endif %}{% endwith %}">
<div class="mt-3 field-{{ field.name }} {% if 'description_' in field.name or 'title_' in field.name %}collapse ms-4{% endif %}{% if 'description_' in field.name %} description{% endif %}{% if 'title_' in field.name %} title{% endif %}{% with 'is_restricted restrict_access_to_groups password' as res %} {% if field.name in res.split %}collapse restricted_access{% endif %}{% endwith %}">
<div class="form-group{% if field.field.required %} form-group-required{% endif %}{% if field.errors %} errors{% endif %}{% if "form-control-file" in field.field.widget.attrs.class and form.instance.video %} pod-largelink{% endif %}">
{% if "form-check-input" in field.field.widget.attrs.class %}
<div class="form-check">
Expand Down

0 comments on commit 9c6bea5

Please sign in to comment.