This commit is contained in:
@@ -4,15 +4,23 @@
|
||||
|
||||
<section class="admin-page-shell">
|
||||
@await Html.PartialAsync("_AdminPageHeader", new TaxBaik.Web.Models.AdminPageHeaderModel("Content", "공지사항 관리", "공지 목록을 서버 렌더링으로 표시합니다.", "/admin/announcements/create", "공지 작성"))
|
||||
<div class="card">
|
||||
@if (Model.Items.Count == 0)
|
||||
{
|
||||
<div class="card-body">
|
||||
@await Html.PartialAsync("_EmptyState", "공지사항이 없습니다.")
|
||||
@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-bell-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="M13.58 17H4a1 1 0 0 1-1-1v-1a3 3 0 0 1 3-3h1"></path>
|
||||
<path d="M18 8a6 6 0 1 0-11.7 2"></path>
|
||||
<path d="M18 8a6 6 0 0 1 1.7 4v1a1 1 0 0 0 .3.7"></path>
|
||||
<path d="M3 3l18 18"></path>
|
||||
</svg>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p class="empty-title">공지사항이 없습니다.</p>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="card">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-vcenter card-table table-hover">
|
||||
<thead>
|
||||
@@ -43,8 +51,8 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
@@ -23,15 +23,23 @@
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="card">
|
||||
@if (Model.Items.Count == 0)
|
||||
{
|
||||
<div class="card-body">
|
||||
@await Html.PartialAsync("_EmptyState", "블로그 글이 없습니다.")
|
||||
@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-database-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="M4 6c0 1.657 4.03 3 9 3s9-1.343 9-3-4.03-3-9-3-9 1.343-9 3"></path>
|
||||
<path d="M4 6v6c0 1.657 4.03 3 9 3s9-1.343 9-3V6"></path>
|
||||
<path d="M4 12v6c0 1.657 4.03 3 9 3s9-1.343 9-3v-6"></path>
|
||||
<path d="M3 3l18 18"></path>
|
||||
</svg>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p class="empty-title">블로그 글이 없습니다.</p>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="card">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-vcenter card-table table-hover">
|
||||
<thead>
|
||||
@@ -65,8 +73,8 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
@@ -4,20 +4,30 @@
|
||||
|
||||
<section class="admin-page-shell">
|
||||
@await Html.PartialAsync("_AdminPageHeader", new TaxBaik.Web.Models.AdminPageHeaderModel("Support", "FAQ 관리", "질문과 답변을 관리합니다.", "/admin/faqs/create", "FAQ 작성"))
|
||||
<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 class="text-end">작업</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (Model.Items.Count == 0)
|
||||
{
|
||||
<tr><td colspan="5">@await Html.PartialAsync("_EmptyState", "FAQ가 없습니다.")</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-help-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="M12 17v.01"></path>
|
||||
<path d="M12 13a2 2 0 1 0-2-2"></path>
|
||||
<path d="M12 7a5 5 0 0 1 5 5"></path>
|
||||
</svg>
|
||||
</div>
|
||||
<p class="empty-title">FAQ가 없습니다.</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 class="text-end">작업</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model.Items)
|
||||
{
|
||||
<tr>
|
||||
<td>@item.Question</td>
|
||||
@@ -32,11 +42,11 @@
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
@@ -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