-
Notifications
You must be signed in to change notification settings - Fork 0
/
import.html
28 lines (27 loc) · 918 Bytes
/
import.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% extends "base.html" %} {% block content %}
<h1>导入</h1>
<div id="notification-area" class="mb-3"></div>
<form id="import-form">
<div class="mb-3">
<label for="import-type" class="form-label">导入类型</label>
<select class="form-select" id="import-type" name="import_type" required>
<option value="Caddyfile">Caddyfile</option>
<option value="Docker-Compose">Docker Compose</option>
<option value="JSON">JSON</option>
</select>
</div>
<div class="mb-3">
<label for="file-content" class="form-label">文件内容</label>
<textarea
class="form-control"
id="file-content"
name="file_content"
rows="10"
required
></textarea>
</div>
<button type="submit" class="btn btn-primary">导入</button>
</form>
{% endblock %} {% block scripts %}
<script src="{{ url_for('static', filename='js/core/import.js') }}"></script>
{% endblock %}