This commit is contained in:
2022-03-02 00:17:19 -05:00
parent d8a77905f9
commit ad9cf01d90
6 changed files with 58 additions and 17 deletions
+9 -5
View File
@@ -1,5 +1,3 @@
{{! vim: set ft=html: }}
<html>
<head>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
@@ -10,6 +8,10 @@
<div class="vstack gap-3">
<div class="bg-light border rounded-3 p-2">
<div class="d-grid gap-2">
<form action="/upload/{{current.0.path}}" method="post" enctype="multipart/form-data">
<input type="file" id="file" name="upload"/>
<input type="submit" value="Upload"/>
</form>
<a type="button" class="btn btn-outline-secondary text-start col-sm-1" href="/serve/{{parent.0.path}}" role="button">
..
</a>
@@ -26,9 +28,11 @@
{{name}}
</a>
{{/if}}
<!-- <a type="button" class="btn btn-outline-danger text-start col-sm-1 ms-1 me-1" href="/del/{{path}}", role="button">
<i class="bi bi-trash"></i>
</a> -->
<form action="/del/{{path}}" method="post">
<button class="btn btn-outline-danger text-start ms-1 me-1">
<i class="bi bi-trash"></i>
</button>
</form>
</div>
{{/each}}
</div>