skills upload function index.html

This commit is contained in:
kuangji
2026-05-26 10:33:15 +08:00
parent 990d872bb8
commit aa064692ad

View File

@@ -15,11 +15,20 @@
<h1>DOCX 规范分析</h1> <h1>DOCX 规范分析</h1>
</div> </div>
<div class="meta"> <div class="meta">
<span>{{ skill_count }} 项技能</span> <span>{{ skill_collection_count }} 个合集</span>
<span>默认 {{ default_provider }}</span> <span>默认 {{ default_provider }}</span>
</div> </div>
</div> </div>
<form id="skill-upload-form" class="collection-upload">
<label>
上传技能合集
<input id="skill-archive" name="file" type="file" accept=".zip" required>
</label>
<button type="submit">上传合集</button>
<p id="skill-upload-status" class="status-text" role="status">仅支持 zip 压缩包,解压后会进入 skills/ 目录</p>
</form>
<form id="upload-form" class="form"> <form id="upload-form" class="form">
<label class="drop-zone"> <label class="drop-zone">
<input id="file" name="file" type="file" accept=".docx" required> <input id="file" name="file" type="file" accept=".docx" required>
@@ -38,7 +47,7 @@
</label> </label>
<label> <label>
技能合集 技能合集
<select name="skill_collection"> <select id="skill-collection" name="skill_collection">
{% for collection in skill_collections %} {% for collection in skill_collections %}
<option value="{{ collection.slug }}" {% if collection.slug == default_skill_collection %}selected{% endif %}> <option value="{{ collection.slug }}" {% if collection.slug == default_skill_collection %}selected{% endif %}>
{{ collection.label }}{{ collection.skill_count }} {{ collection.label }}{{ collection.skill_count }}