Files
taxbaik/src/TaxBaik.Web/Pages/Admin/Inquiries/Index.cshtml
T
kjh2064 505bd9f663
TaxBaik CI/CD / build-and-deploy (push) Successful in 1m2s
style: Fix search form height - add min-height: auto override
Search form card-body inherits min-height: calc(100vh - 140px) from .admin-content-card .card-body, causing it to occupy full screen. Add inline min-height: auto to override and allow natural height for search forms only.

Affected pages: Blog, Clients, Inquiries

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-07-09 22:32:45 +09:00

73 lines
2.8 KiB
Plaintext

@page
@model TaxBaik.Web.Pages.Admin.Inquiries.IndexModel
@{ ViewData["Title"] = "문의"; }
<section class="admin-page-shell">
@await Html.PartialAsync("_AdminPageHeader", new TaxBaik.Web.Models.AdminPageHeaderModel("Customer Requests", "문의 관리", "상담 요청을 상태별로 확인합니다.", "/admin/inquiries/create", "문의 등록"))
<div class="card">
<div class="card-body p-2" style="min-height: auto;">
<form method="get">
<div class="row g-2 align-items-end">
<div class="col-md-3">
<label class="form-label form-label-sm" for="Status">상태</label>
<input class="form-control form-control-sm" id="Status" name="status" value="@Model.Status" placeholder="new, consulting..." />
</div>
<div class="col-auto">
<button class="btn btn-primary btn-sm" type="submit">필터</button>
</div>
</div>
</form>
</div>
@if (Model.Items.Count > 0)
{
<div class="table-responsive table-responsive--separator">
<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>
<td>@item.Phone</td>
<td>@item.ServiceType</td>
<td>@await Html.PartialAsync("_StatusBadge", item.Status)</td>
<td>@item.CreatedAt.ToString("yyyy-MM-dd")</td>
<td class="text-end">
<div class="btn-list flex-nowrap justify-content-end">
<a class="btn btn-sm btn-outline-secondary" href="/admin/inquiries/@item.Id">상세</a>
<a class="btn btn-sm btn-primary" href="/admin/inquiries/@item.Id/edit">수정</a>
</div>
</td>
</tr>
}
</tbody>
</table>
</div>
}
else
{
<div class="card-body">
@await Html.PartialAsync("_EmptyState", "문의 목록이 없습니다.")
</div>
}
</div>
</section>