42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
{% extends 'layouts/base.njk' %}
|
|
|
|
{% set title = 'ily.li - File manager' %}
|
|
|
|
{% 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">
|
|
{{ macros.field(_locals, 'file', 'upload', '', 'Choose wisely', 'The maximum upload size is ' + max_upload_size, validation_attributes='required') }}
|
|
|
|
{{ macros.field(_locals, 'number', 'expire_after_days', '30', 'How many days to delete this file after', null, validation_attributes='max="1825"') }}
|
|
|
|
{{ macros.field(_locals, 'checkbox', 'never_expire', '', 'Never delete this file') }}
|
|
|
|
<button type="submit">Upload <i data-feather="upload"></i></button>
|
|
</form>
|
|
</section>
|
|
</div>
|
|
|
|
<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 %} |