Add frontend video image validations - EDUCATOR-447
This commit is contained in:
7
cms/templates/js/video-thumbnail-error.underscore
Normal file
7
cms/templates/js/video-thumbnail-error.underscore
Normal file
@@ -0,0 +1,7 @@
|
||||
<tr class="thumbnail-error-wrapper thumbnail-error" data-video-id="<%- videoId %>">
|
||||
<td colspan="6" class="thumbnail-error-text" colspan="6">
|
||||
<span class="action-icon" aria-hidden="true">
|
||||
<span class="icon fa fa-exclamation-triangle" aria-hidden="true"></span>
|
||||
</span>
|
||||
<span class="action-text"><%- errorText %></span></td>
|
||||
</tr>
|
||||
@@ -9,7 +9,10 @@
|
||||
</label>
|
||||
|
||||
<span class="requirements-text-sr sr">
|
||||
<%- gettext('Recommended image resolution is 1280x720 pixels and format must be one of .jpg, .png or .gif') %>
|
||||
<%- edx.StringUtils.interpolate(
|
||||
gettext("Recommended image resolution is {imageResolution}, maximum image file size should be {maxFileSize} and format must be one of {supportedImageFormats}."),
|
||||
{imageResolution: videoImageResolution, maxFileSize: videoImageMaxSize.humanize, supportedImageFormats: videoImageSupportedFileFormats.humanize}
|
||||
) %>
|
||||
</span>
|
||||
</div>
|
||||
<% if(duration) { %>
|
||||
|
||||
Reference in New Issue
Block a user