Select Text read_text.html
edit_post.html
<!-- edit_post.html -->
{% extends 'base_1.html' %}
{% block title %}ID:{{post[0]}}∇∇ | ∇∇ Edit - Post - {{ post[1] }}{% endblock %}
{% block content %}
<h1 style="font-size:4vw;">Edit Post- edit_post.html</h1>
<form method="POST" enctype="multipart/form-data">
<label style="font-size:4vw;color:coral;">Title</label><br>
<input style="font-size:4vw;color:white;"type="text" name="title" value="{{ post[1] }}" required><br><br>
<label style="font-size:4vw;color:coral;">Content</label><br>
<textarea name="content" rows="50" required>{{ post[2] }}</textarea><br><br>
<label style="font-size:4vw;color:coral;">Image</label><br>
<input style="font-size:4vw;color:coral;" type="file" name="image"><br><br>
{% if post[3] %}
<img src="data:image/png;base64,{{ post[3] }}" alt="{{ post[1] }}" style="max-width: 400px;"><br><br>
{% endif %}
<label style="font-size:4vw;color:coral;" for="video">Upload Video</label>
<input style="font-size:4vw;color:coral;" type="file" id="video" name="video" accept="video/*">
{% if post[4] %}
<video width="320" height="240" controls>
<source src="{{ url_for('static', filename='videos/' + post[4]) }}" type="video/mp4" />
Your browser does not support the video tag.
</video>
{% endif %}
<br/>
<button style="font-size:4vw;color:coral;" type="submit">Update</button>
</form>
{% endblock %}
Back to file list