Files
eam-project/templates/upload/upload-csv-modal.html
T
2025-05-23 14:44:12 +08:00

35 lines
1.7 KiB
HTML

<div class="modal-content">
<div class="modal-header bg-dark white">
<span class="modal-title w-100 text-center" id="myModalLabel150">Upload {{page}}</span>
<button type="button" class="btn-close" data-bs-dismiss="modal"
aria-label="Close">
</button>
</div>
<form action="{{request.path}}" method="post" enctype="multipart/form-data">
{% csrf_token %}
<div class="modal-body">
<div class="card">
<div class="card-content py-0">
<br class="card-body py-0 pt-2">
<input class="form-control" type="file" id="formFile" name="file" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel">
<small>* 请选择一个 CSV 文件。</small> </br>
<small>* 数据应为正确格式。</small> </br>
<small>* 数据行数不应超过 100 行。</small>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-sm btn-light-secondary"
data-bs-dismiss="modal">
<i class="bx bx-x d-block d-sm-none"></i>
<span class="d-none d-sm-block">关闭</span>
</button>
<button type="submit" class="btn btn-sm btn-info ml-1"
onclick="this.innerHTML = `<span class='spinner-grow spinner-grow-sm' role='status' aria-hidden='true'></span> Uploading...`;">
<i class="bx bx-check d-block d-sm-none"></i>
<span class="d-none d-sm-block">上传</span>
</button>
</div>
</form>
</div>