mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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 {
|
class FpsProblemImportHandler extends Handler {
|
||||||
async get() {
|
async get() {
|
||||||
this.response.template = 'problem_import.html';
|
this.response.template = 'problem_import_fps.html';
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(domainId: string, result: any) {
|
async run(domainId: string, result: any) {
|
||||||
|
|||||||
@@ -4,26 +4,8 @@
|
|||||||
<div class="medium-9 columns">
|
<div class="medium-9 columns">
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<div class="section__body">
|
<div class="section__body">
|
||||||
<form method="post">
|
<form method="post" enctype="multipart/form-data">
|
||||||
<div class="row"><div class="columns">
|
<p>{{ _('Upload fps file') }}:
|
||||||
<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') }}">
|
|
||||||
<input type="file" name="file">
|
<input type="file" name="file">
|
||||||
<input type="submit" value="{{ _('Upload') }}" class="rounded primary button">
|
<input type="submit" value="{{ _('Upload') }}" class="rounded primary button">
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
<p>{{ _('Upload zipfile') }} {% if type %}({{ _('Type') }}: {{type}}){% endif %}:
|
<p>{{ _('Upload zipfile') }} {% if type %}({{ _('Type') }}: {{type}}){% endif %}:
|
||||||
<input type="file" name="file">
|
<input type="file" name="file">
|
||||||
{% if handler.user.hasPriv(PRIV.PRIV_EDIT_SYSTEM) and not type %}<input type="checkbox" name="keepUser">{% endif %}
|
{% 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">
|
<input type="submit" value="{{ _('Upload') }}" class="rounded primary button">
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in new issue
Block a user