tesses-cms/Tesses.CMS/Assets/ExtrasViewer.html

29 lines
1.2 KiB
HTML
Raw Normal View History

2024-01-04 02:53:13 +00:00
<h1>Extras path: {{path}}</h1>
{{if editable}}
<h4>Create Directory</h4>
2024-07-28 22:59:28 +00:00
<form method="post" enctype="application/x-www-form-urlencoded" action="./mkdir?csrf={{csrf}}">
2024-01-04 02:53:13 +00:00
<input type="hidden" name="parent" value="{{parent}}">
<div class="mb-3">
<label for="exampleFormControlInput1" class="form-label">Directory name</label>
<input type="text" name="name" class="form-control" id="exampleFormControlInput1" placeholder="Directory name">
<input type="submit" class="btn btn-primary" value="Create Directory">
</div>
</form>
<h4>Upload File</h4>
2024-07-28 22:59:28 +00:00
<form method="post" enctype="multipart/form-data" action="./upload_extra?csrf={{csrf}}">
2024-01-04 02:53:13 +00:00
<input type="hidden" name="parent" value="{{parent}}">
<div class="mb-3">
<label for="formFileSm" class="form-label">Browse for file</label>
<input class="form-control form-control-sm" id="formFileSm" name="file" type="file">
</div>
<input type="submit" class="btn btn-primary" value="Upload">
</form>
{{end}}
<ul class="list-group">
{{for extra in extras}}
<li class="list-group-item">
<a href="{{extra.path}}">{{extra.type}} {{extra.name}}</a>
</li>
{{ end }}
</ul>