PHRAS-3116

This commit is contained in:
Harrys Ravalomanana
2020-06-17 21:30:54 +04:00
parent 1f6166dfab
commit add763c244
2 changed files with 13 additions and 25 deletions

View File

@@ -172,11 +172,11 @@
<input type="hidden" id="defaultStartValue" value="00:00:00.000"> <input type="hidden" id="defaultStartValue" value="00:00:00.000">
<input type="hidden" id="defaultEndValue" value="00:00:02.000"> <input type="hidden" id="defaultEndValue" value="00:00:02.000">
<div id="default-item" class="default-item hide"> <div id="default-item" class="default-item hide">
<fieldset class='video-subtitle-item'><h4 class='number'>0</h4> <fieldset class='video-subtitle-item'><span class='number'>0</span>
<div class='item-field start-time' ><label>Start time</label><input class='time startTime' type='text' name='startTime' size='12' value="00:00:00.000"/></div> <div class='item-field start-time' ><label>{{ "prod:videoeditor:subtitletab:: Start time" | trans }}</label><input class='time startTime' type='text' name='startTime' size='12' value="00:00:00.000"/></div>
<div class='item-field end-time'><label>End time</label><input class='time endTime' type='text' name='endTime' size='12'value="00:00:02.000" /></div> <div class='item-field end-time'><label>{{ "prod:videoeditor:subtitletab:: End time" | trans }}</label><input class='time endTime' type='text' name='endTime' size='12'value="00:00:02.000" /></div>
<div class='item-field show-for-time'><label>Show for</label><input class='showForTime' readonly type='text' size='12' value="00:00:02.000"/></div> <div class='item-field show-for-time'><label>{{ "prod:videoeditor:subtitletab:: Show for" | trans }}</label><input class='showForTime' readonly type='text' size='12' value="00:00:02.000"/></div>
<div class='item-field caption-text'><textarea class="captionText" name='captionText' placeholder='Caption' rows='2' ></textarea></div> <div class='item-field caption-text'><textarea class="captionText" name='captionText' placeholder='{{ "prod:videoeditor:subtitletab:: Caption placeholder" | trans }}' rows='2' ></textarea></div>
<div class='remove-item'><i class='fa fa-times-circle'></i></div> <div class='remove-item'><i class='fa fa-times-circle'></i></div>
</fieldset> </fieldset>
</div> </div>
@@ -192,10 +192,11 @@
{% for videoTextTrackField in videoTextTrackFields %} {% for videoTextTrackField in videoTextTrackFields %}
<input type="hidden" id="caption_{{ videoTextTrackField.meta_struct_id}}" value='{{ videoTextTrackField.value}}' name='databox_id'> <input type="hidden" id="caption_{{ videoTextTrackField.meta_struct_id}}" value='{{ videoTextTrackField.value}}' name='databox_id'>
{% endfor %} {% endfor %}
</div> <input type="text" id="record-vtt">
<input type="hidden" value='{{ record.get_sbas_id() }}' name='databox_id'> <input type="hidden" value='{{ record.get_sbas_id() }}' name='databox_id'>
<input type="hidden" value='{{ record.get_record_id() }}' name='record_id'> <input type="hidden" value='{{ record.get_record_id() }}' name='record_id'>
<input type="hidden" id="no_caption" value='{{ "prod:videoeditor:subtitletab:: No caption message" | trans }}'>
</div>
</form> </form>
<form name="video_subtitle_list" id="video-subtitle-list"> <form name="video_subtitle_list" id="video-subtitle-list">
<div class="video-subtitle-bottom"> <div class="video-subtitle-bottom">
@@ -214,13 +215,6 @@
</div> </div>
<div class="video-subtitle-right"> <div class="video-subtitle-right">
<div class="video-subtitle-wrapper"> <div class="video-subtitle-wrapper">
<video class="thumb_video" controls="" preload="auto" data-ratio="{{ prevRatio }}">
{% for subdef in previewHtml5 %}
<source type="{{ subdef.get_mime() }}" src="{{ subdef.get_url() }}"/>
{% endfor %}
<track label="English" kind="subtitles" srclang="en" src="/assets/my_captions.vtt" default>
{{ 'No preview available' | trans }}
</video>
</div> </div>
</div> </div>
</div> </div>
@@ -295,12 +289,6 @@
> >
</iframe> </iframe>
</div> </div>
<style>
.editing>p {
color: #fff;
position: relative;
}
</style>
<script type="text/javascript"> <script type="text/javascript">
var toolsConfig = { var toolsConfig = {
selectionLength: {{ selectionLength }}, selectionLength: {{ selectionLength }},

View File

@@ -7578,10 +7578,10 @@ phraseanet-common@^0.4.5-d:
js-cookie "^2.1.0" js-cookie "^2.1.0"
pym.js "^1.3.1" pym.js "^1.3.1"
phraseanet-production-client@0.34.228-d: phraseanet-production-client@0.34.229-d:
version "0.34.228-d" version "0.34.229-d"
resolved "https://registry.yarnpkg.com/phraseanet-production-client/-/phraseanet-production-client-0.34.228-d.tgz#91617c7d003b4fae508dee9990af05aad05a0ef9" resolved "https://registry.yarnpkg.com/phraseanet-production-client/-/phraseanet-production-client-0.34.229-d.tgz#7e118da378b7240b5796370d2c08cb70ee10c7b2"
integrity sha512-Bxe3o8kRgsP3Ra3JStvING59b0Jxr9PiJ2CktogWJecAm4X1nx0UrnGY7gA01WalC+KJboT6r4Y8CbMdZr6MQw== integrity sha512-+uvOQ9x+wICsEwb+uORFJhRcsOVnIWhU29vm5FQjLSFk2rJlsqExZ+X5Md7SJ27ZrpJsLumkgpaYuezKIN5a4A==
dependencies: dependencies:
"@mapbox/mapbox-gl-language" "^0.9.2" "@mapbox/mapbox-gl-language" "^0.9.2"
"@turf/turf" "^5.1.6" "@turf/turf" "^5.1.6"