ui: fix #74 (multi-lang edit for problem)
parent
ef5ee468bd
commit
ebaa3f290b
@ -1,6 +0,0 @@
|
||||
import { NamedPage } from 'vj/misc/Page';
|
||||
|
||||
const page = new NamedPage('problem_import', async () => {
|
||||
});
|
||||
|
||||
export default page;
|
@ -1,21 +0,0 @@
|
||||
{% extends 'layout/simple.html' %}
|
||||
{% block body %}
|
||||
{% if fdoc %}
|
||||
<p>{{ _('Uploaded file info') }}:</p>
|
||||
<p>{{ _('ID') }}: {{ fdoc['_id'] }}</p>
|
||||
<p>{{ _('Userfile doc_id') }}: {{ ufid }}</p>
|
||||
<p>{{ _('MD5') }}: {{ fdoc['md5'] }}</p>
|
||||
<p>{{ _('URL') }}: {{ model.file.url(fdoc) }}</p>
|
||||
{% endif %}
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="csrfToken" value="{{ handler.csrfToken }}">
|
||||
<p>
|
||||
{{ _('New file') }}:
|
||||
<input type="text" name="title" placeholder="{{ _('Description') }}">
|
||||
<input type="file" name="file">
|
||||
<input type="submit" value="{{ _('Upload') }}" class="rounded primary button">
|
||||
</p>
|
||||
<p>{{ _('Note: file size should be less than or equal to {0}, and file type should be in {1}. Empty files are not allowed.').format(size(FILE_MAX_LENGTH), ALLOWED_MIMETYPE_PREFIX) }}</p>
|
||||
<p>{{ _('Usage: {0}, Quota: {1}').format(size(usage), size(quota)) }}</p>
|
||||
</form>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue