core: 允许导入题目时保留上传者

This commit is contained in:
undefined committed 2021-06-13 10:34:14 +08:00
1 parent c49a24017f
commit f7225fdc26
3 files changed
+10 -5

No files matched your search

@@ -6,8 +6,9 @@
<div class="section__body">
<form method="post" enctype="multipart/form-data">
<input type="hidden" name="csrfToken" value="{{ handler.csrfToken }}">
<p>{{ _('Upload zipfile') }} ({{ _('Type') }}: {{type}}):
<p>{{ _('Upload zipfile') }} {% if type %}({{ _('Type') }}: {{type}}){% endif %}:
<input type="file" name="file">
{% if handler.user.hasPriv(PRIV.PRIV_EDIT_SYSTEM) not type %}<input type="checkbox" name="keepUser">{% endif %}
<input type="submit" value="{{ _('Upload') }}" class="rounded primary button">
</p>
</form>