deleting videos, 404

This commit is contained in:
biglyderv 2024-11-25 14:12:44 -05:00
parent b38fb151ac
commit 62645ddd93
8 changed files with 67 additions and 5 deletions

6
views/404.ejs Normal file
View file

@ -0,0 +1,6 @@
<%- include('header.ejs') -%>
<div class='content'>
<h2>Oops!</h2>
<p>This page was not found.</p>
</div>
<%- include('footer.ejs') -%>

View file

@ -1,5 +1,5 @@
<%- include('header.ejs') -%>
<div class='content'>
<form class='content' enctype='multipart/form-data' method='POST' action='/api/form/delete_video'>
<h1>Video</h1>
<div class='video-wrapper'>
<video src='/videos/<%= videoData.id %>.webm'></video>
@ -28,6 +28,8 @@
</div>
</div>
<pre class='form-input'><%= videoData.desc %></pre>
<input class='form-input' type='submit' value="Delete">
<input name='target' hidden value="<%= id %>">
</div>
<%- include('comments.ejs') -%>
<%- include('footer.ejs') -%>