ui: import: add rename support

pull/588/head
undefined 1 year ago
parent 979a5f6e12
commit 42e2151c42
No known key found for this signature in database

@ -12,7 +12,7 @@ const knownRemoteMapping = {
class FpsProblemImportHandler extends Handler {
async get() {
this.response.template = 'problem_import.html';
this.response.template = 'problem_import_fps.html';
}
async run(domainId: string, result: any) {

@ -4,26 +4,8 @@
<div class="medium-9 columns">
<div class="section">
<div class="section__body">
<form method="post">
<div class="row"><div class="columns">
<label>
{{ _('FPS FILE') }}
<textarea name="input" class="textbox" data-xml style="height: 500px"></textarea>
</label>
</div></div>
<div class="row"><div class="columns">
<button type="submit" class="rounded primary button">
{{ _('Import') }}
</button>
<button type="button" class="rounded button" onclick="window.history.go(-1)">
{{ _('Cancel') }}
</button>
</div></div>
</form>
<form method="post" enctype="multipart/form-data" action="{{ url('file_upload') }}">
<p>{{ _('Upload file') }}:
<input type="hidden" name="title" value="FPS_IMPORT">
<input type="hidden" name="redirect" value="{{ url('problem_import_fps') }}">
<form method="post" enctype="multipart/form-data">
<p>{{ _('Upload fps file') }}:
<input type="file" name="file">
<input type="submit" value="{{ _('Upload') }}" class="rounded primary button">
</p>

@ -8,6 +8,7 @@
<p>{{ _('Upload zipfile') }} {% if type %}({{ _('Type') }}: {{type}}){% endif %}:
<input type="file" name="file">
{% if handler.user.hasPriv(PRIV.PRIV_EDIT_SYSTEM) and not type %}<input type="checkbox" name="keepUser">{% endif %}
<input type="text" name="preferredPrefix"></input>
<input type="submit" value="{{ _('Upload') }}" class="rounded primary button">
</p>
</form>

Loading…
Cancel
Save