ily.li/views/file-manager.njk

42 lines
1.3 KiB
Plaintext
Raw Normal View History

{% extends 'layouts/base.njk' %}
{% set title = 'ily.li - File manager' %}
2020-06-14 15:05:04 +02:00
{% block scripts %}
<script src="/js/fm.js"></script>
{% endblock %}
{% block body %}
<h1>File manager</h1>
<p>You're their manager, please be nice with them.</p>
<div class="container">
<section class="panel">
<h2>Upload a file</h2>
<form action="{{ route('post-file') }}" method="POST">
2020-06-14 15:15:15 +02:00
{{ macros.field(_locals, 'file', 'upload', '', 'Choose wisely', 'The maximum upload size is ' + max_upload_size, validation_attributes='required') }}
2020-06-14 15:05:04 +02:00
{{ macros.field(_locals, 'number', 'expire_after_days', '30', 'How many days to delete this file after', null, validation_attributes='max="1825"') }}
2020-06-14 15:05:04 +02:00
{{ macros.field(_locals, 'checkbox', 'never_expire', '', 'Never delete this file') }}
<button type="submit">Upload <i data-feather="upload"></i></button>
</form>
</section>
</div>
2020-06-14 15:05:04 +02:00
<section class="panel">
<h2>File list</h2>
<table>
<thead>
<tr>
<th>#</th>
<th>url</th>
<th>name</th>
<th>Expires at</th>
</tr>
</thead>
</table>
</section>
{% endblock %}