This commit is contained in:
@@ -17,27 +17,37 @@
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-vcenter card-table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>이름</th>
|
||||
<th>전화</th>
|
||||
<th>서비스</th>
|
||||
<th>상태</th>
|
||||
<th>등록일</th>
|
||||
<th class="text-end">작업</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (Model.Items.Count == 0)
|
||||
{
|
||||
<tr><td colspan="6">@await Html.PartialAsync("_EmptyState", "문의 목록이 없습니다.")</td></tr>
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (var item in Model.Items)
|
||||
@if (Model.Items.Count == 0)
|
||||
{
|
||||
<div class="empty py-5 border rounded bg-body">
|
||||
<div class="empty-img">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-message-off" width="48" height="48" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M3 3l18 18"></path>
|
||||
<path d="M8 9h8"></path>
|
||||
<path d="M8 13h4"></path>
|
||||
<path d="M21 12c0 4.97-4.03 9-9 9a8.96 8.96 0 0 1-4.24-1.06L3 21l1.06-4.76A8.96 8.96 0 0 1 3 12c0-4.97 4.03-9 9-9 1.69 0 3.27.47 4.62 1.28"></path>
|
||||
</svg>
|
||||
</div>
|
||||
<p class="empty-title">문의 목록이 없습니다.</p>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="card">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-vcenter card-table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>이름</th>
|
||||
<th>전화</th>
|
||||
<th>서비스</th>
|
||||
<th>상태</th>
|
||||
<th>등록일</th>
|
||||
<th class="text-end">작업</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model.Items)
|
||||
{
|
||||
<tr>
|
||||
<td>@item.Name</td>
|
||||
@@ -53,11 +63,11 @@
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user