This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
@{ ViewData["Title"] = "FAQ 작성"; }
|
||||
|
||||
<section class="admin-page-shell">
|
||||
<partial name="_AdminPageHeader" model='("Support", "FAQ 작성", "Tabler 표준 폼으로 FAQ를 등록합니다.", null, null)' />
|
||||
@await Html.PartialAsync("_AdminPageHeader", new TaxBaik.Web.Models.AdminPageHeaderModel("Support", "FAQ 작성", "Tabler 표준 폼으로 FAQ를 등록합니다.", null, null))
|
||||
|
||||
<form method="post" class="card">
|
||||
<div class="card-body">
|
||||
<partial name="_ValidationSummary" />
|
||||
@await Html.PartialAsync("_ValidationSummary")
|
||||
<div class="row g-3">
|
||||
<div class="col-lg-8">
|
||||
<label asp-for="Input.Question" class="form-label"></label>
|
||||
@@ -45,3 +45,12 @@
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
@{ ViewData["Title"] = "FAQ 상세"; }
|
||||
|
||||
<section class="admin-page-shell">
|
||||
<partial name="_AdminPageHeader" model='("Support", "FAQ 상세", "FAQ의 질문, 답변, 상태를 확인합니다.", null, null)' />
|
||||
@await Html.PartialAsync("_AdminPageHeader", new TaxBaik.Web.Models.AdminPageHeaderModel("Support", "FAQ 상세", "FAQ의 질문, 답변, 상태를 확인합니다.", null, null))
|
||||
|
||||
@if (Model.Item is null)
|
||||
{
|
||||
<partial name="_EmptyState" model="FAQ를 찾을 수 없습니다." />
|
||||
@await Html.PartialAsync("_EmptyState", "FAQ를 찾을 수 없습니다.")
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -23,7 +23,7 @@
|
||||
<dt class="col-sm-3">카테고리</dt>
|
||||
<dd class="col-sm-9">@Model.Item.Category</dd>
|
||||
<dt class="col-sm-3">활성</dt>
|
||||
<dd class="col-sm-9"><partial name="_StatusBadge" model="@(Model.Item.IsActive ? "active" : "inactive")" /></dd>
|
||||
<dd class="col-sm-9">@await Html.PartialAsync("_StatusBadge", Model.Item.IsActive ? "active" : "inactive")</dd>
|
||||
<dt class="col-sm-3">정렬</dt>
|
||||
<dd class="col-sm-9">@Model.Item.SortOrder</dd>
|
||||
</dl>
|
||||
@@ -41,3 +41,12 @@
|
||||
</div>
|
||||
}
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
@{ ViewData["Title"] = "FAQ 수정"; }
|
||||
|
||||
<section class="admin-page-shell">
|
||||
<partial name="_AdminPageHeader" model='("Support", "FAQ 수정", "기존 FAQ를 Tabler 표준 폼으로 수정합니다.", null, null)' />
|
||||
@await Html.PartialAsync("_AdminPageHeader", new TaxBaik.Web.Models.AdminPageHeaderModel("Support", "FAQ 수정", "기존 FAQ를 Tabler 표준 폼으로 수정합니다.", null, null))
|
||||
|
||||
<div class="card mb-3">
|
||||
<div class="card-body">
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
<form method="post" class="card">
|
||||
<div class="card-body">
|
||||
<partial name="_ValidationSummary" />
|
||||
@await Html.PartialAsync("_ValidationSummary")
|
||||
<input type="hidden" asp-for="Input.Id" />
|
||||
<div class="row g-3">
|
||||
<div class="col-lg-8">
|
||||
@@ -57,3 +57,12 @@
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
@{ ViewData["Title"] = "FAQ"; }
|
||||
|
||||
<section class="admin-page-shell">
|
||||
<partial name="_AdminPageHeader" model='("Support", "FAQ 관리", "질문과 답변을 관리합니다.", "/admin/faqs/create", "FAQ 작성")' />
|
||||
@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">
|
||||
@@ -13,7 +13,7 @@
|
||||
<tbody>
|
||||
@if (Model.Items.Count == 0)
|
||||
{
|
||||
<tr><td colspan="5"><partial name="_EmptyState" model="FAQ가 없습니다." /></td></tr>
|
||||
<tr><td colspan="5">@await Html.PartialAsync("_EmptyState", "FAQ가 없습니다.")</td></tr>
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -22,7 +22,7 @@
|
||||
<tr>
|
||||
<td>@item.Question</td>
|
||||
<td>@item.Category</td>
|
||||
<td><partial name="_StatusBadge" model="@(item.IsActive ? "active" : "inactive")" /></td>
|
||||
<td>@await Html.PartialAsync("_StatusBadge", item.IsActive ? "active" : "inactive")</td>
|
||||
<td>@item.SortOrder</td>
|
||||
<td class="text-end">
|
||||
<div class="btn-list flex-nowrap justify-content-end">
|
||||
@@ -38,3 +38,12 @@
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user