2020-06-14 14:53:05 +02:00
|
|
|
{% 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 %}
|
|
|
|
|
2020-06-14 14:53:05 +02:00
|
|
|
{% 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 14:53:05 +02:00
|
|
|
|
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 14:53:05 +02:00
|
|
|
|
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>
|
2020-06-14 14:53:05 +02:00
|
|
|
</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>
|
2020-06-14 14:53:05 +02:00
|
|
|
{% endblock %}
|