From 42e2151c42b7d57fab6da07be37ac19a5d5de6d5 Mon Sep 17 00:00:00 2001 From: undefined Date: Wed, 7 Jun 2023 14:54:23 +0800 Subject: [PATCH] ui: import: add rename support --- packages/fps-importer/index.ts | 2 +- .../template/problem_import_fps.html | 22 ++----------------- .../ui-default/templates/problem_import.html | 1 + 3 files changed, 4 insertions(+), 21 deletions(-) diff --git a/packages/fps-importer/index.ts b/packages/fps-importer/index.ts index 490a135a..640ff540 100644 --- a/packages/fps-importer/index.ts +++ b/packages/fps-importer/index.ts @@ -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) { diff --git a/packages/fps-importer/template/problem_import_fps.html b/packages/fps-importer/template/problem_import_fps.html index c823d2ec..75bacaef 100644 --- a/packages/fps-importer/template/problem_import_fps.html +++ b/packages/fps-importer/template/problem_import_fps.html @@ -4,26 +4,8 @@
-
-
- -
-
- - -
-
-
-

{{ _('Upload file') }}: - - + +

{{ _('Upload fps file') }}:

diff --git a/packages/ui-default/templates/problem_import.html b/packages/ui-default/templates/problem_import.html index bd570262..12a33112 100644 --- a/packages/ui-default/templates/problem_import.html +++ b/packages/ui-default/templates/problem_import.html @@ -8,6 +8,7 @@

{{ _('Upload zipfile') }} {% if type %}({{ _('Type') }}: {{type}}){% endif %}: {% if handler.user.hasPriv(PRIV.PRIV_EDIT_SYSTEM) and not type %}{% endif %} +