59 lines
1.4 KiB
Plaintext
59 lines
1.4 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<%- include('../../partials/head'); -%>
|
|
<%- include('../../partials/admin-editor-css'); -%>
|
|
<title>Admin - Add File</title>
|
|
</head>
|
|
<body>
|
|
<%- include('../../winter'); -%>
|
|
|
|
<div class="editor-container">
|
|
<a class="btn btn-back" href="<%= endpoint %>/dashboard">Back to dashboard</a>
|
|
<section>
|
|
<h1>Add New file</h1>
|
|
<form action="<%= endpoint %>/storage/add" method="post" enctype="multipart/form-data" class="editor-form editor-form--stacked">
|
|
|
|
<label>
|
|
Name
|
|
<input type="text" name="name" required>
|
|
</label>
|
|
|
|
<label>
|
|
Description
|
|
<textarea name="description" rows="3"></textarea>
|
|
</label>
|
|
|
|
<label>
|
|
Tags (comma-separated)
|
|
<input type="text" name="tags" class="multi-input">
|
|
</label>
|
|
|
|
<label>
|
|
Access Codes (comma-separated)
|
|
<input type="text" name="accessCodes" class="multi-input">
|
|
</label>
|
|
|
|
<label>
|
|
Created File
|
|
<input type="date" name="created">
|
|
</label>
|
|
|
|
<label>
|
|
File
|
|
<input type="file" name="file" required>
|
|
</label>
|
|
<label>
|
|
Thumbnail
|
|
<input type="file" name="thumbnail" accept="image/*">
|
|
</label>
|
|
|
|
<button type="submit">Upload file</button>
|
|
</form>
|
|
</section>
|
|
</div>
|
|
|
|
|
|
<%- include('../../footer'); -%>
|
|
</body>
|
|
</html> |