45 lines
1.7 KiB
HTML
45 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>🫐Edit video - artberry🫐</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h2>Edit video: {{ video.video_name }}</h2>
|
|
|
|
<form method="POST" action="{{ url_for('video_edit', id=video.id) }}" enctype="multipart/form-data">
|
|
{{ form.hidden_tag() }}
|
|
|
|
<div class="form-group">
|
|
<label for="video_name">Video Name</label>
|
|
{{ form.video_name(class="input-field") }}
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="video_thumbnail">Video Thumbnail</label>
|
|
{{ form.video_thumbnail(class="file-input") }}
|
|
{% if video.video_thumbnail_file %}
|
|
<img src="{{ url_for('static', filename='thumbnails/' + video.video_thumbnail_file) }}" alt="Thumbnail preview" style="display: flex;margin: 0 auto;">
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="description">Description:</label>
|
|
{{ form.description(class="input-field") }}
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="tags">Tags:</label>
|
|
{{ form.tags(class="input-field") }}
|
|
</div>
|
|
|
|
<button type="submit" class="button">{{ form.submit.label }}</button>
|
|
</form>
|
|
|
|
<a href="{{ url_for('view', content_type='video', id=video.id) }}" class="button">Cancel</a>
|
|
</div>
|
|
</body>
|
|
</html> |