mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: import: add rename support
This commit is contained in:
3 files changed
+4
-21
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user