105 lines
4.3 KiB
HTML
105 lines
4.3 KiB
HTML
{% extends 'layouts/main-layout.html' %} {% block content %}
|
|
<div class="page-heading">
|
|
<div class="page-title">
|
|
<div class="row">
|
|
<div class="col-12 col-md-6 order-md-1 order-last">
|
|
<h3>供应商</h3>
|
|
</div>
|
|
<div class="col-12 col-md-6 order-md-2 order-first">
|
|
<nav
|
|
aria-label="breadcrumb"
|
|
class="breadcrumb-header float-start float-lg-end"
|
|
>
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item">
|
|
<a href="/">Dashboard</a>
|
|
</li>
|
|
<li class="breadcrumb-item">Upload</li>
|
|
<li class="breadcrumb-item active" aria-current="page">
|
|
Vendors
|
|
</li>
|
|
</ol>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<section class="section">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<!-- upload Modal -->
|
|
<div class="modal fade text-left" id="upload-vendors-modal" tabindex="-1" role="dialog"
|
|
aria-labelledby="myModalLabel160" aria-hidden="true">
|
|
<div class="modal-dialog modal-dialog-centered" role="document">
|
|
<div id="upload-vendors-modal-content" class="modal-content" hx-target="this"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex justify-content-end my-2 gap-2">
|
|
<a
|
|
type="button"
|
|
class="btn btn-secondary rounded"
|
|
class="btn-space"
|
|
href="{% url 'upload:export_vendors_csv' %}"
|
|
><i class="bi bi-download"></i> Sample File
|
|
</a>
|
|
<button
|
|
type="button"
|
|
class="btn btn-secondary rounded"
|
|
hx-get="{% url 'upload:import_vendors_csv' %}"
|
|
hx-target="#upload-vendors-modal-content"
|
|
data-bs-target="#upload-vendors-modal"
|
|
data-bs-toggle="modal"
|
|
>
|
|
<i class="bi bi-upload"></i> Upload
|
|
</button>
|
|
|
|
<button
|
|
type="button"
|
|
class="btn btn-secondary rounded"
|
|
hx-get="{% url 'upload:import_vendors_csv' %}"
|
|
hx-target="#upload-vendors-modal-content"
|
|
data-bs-target="#upload-vendors-modal"
|
|
data-bs-toggle="modal"
|
|
>
|
|
<i class="bi bi-upload"></i> NFC导入
|
|
</button>
|
|
</div>
|
|
<table class="table table-hover" id="table1">
|
|
<thead>
|
|
<tr>
|
|
<th>序号</th>
|
|
<th>供应商名称</th>
|
|
<th>联系人</th>
|
|
<th>邮箱</th>
|
|
<th>税号</th>
|
|
<th>电话号码</th>
|
|
</tr>
|
|
</thead>
|
|
{% if page_object %}
|
|
<tbody>
|
|
{% for vendors in page_object %}
|
|
<tr>
|
|
<td>
|
|
{{page_object.start_index|add:forloop.counter0}}
|
|
</td>
|
|
<td>{{vendors.name}}</td>
|
|
<td>{{vendors.contact_person}}</td>
|
|
<td>{{vendors.email}}</td>
|
|
<td>{{vendors.gstin_number}}</td>
|
|
<td>{{vendors.phone}}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
{% else %}
|
|
<div class="alert alert-info" role="alert">
|
|
暂无记录
|
|
</div>
|
|
{% endif %}
|
|
</table>
|
|
{% include 'commons/pagination.html' %}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
{% endblock content%}
|