27 lines
1.2 KiB
Plaintext
27 lines
1.2 KiB
Plaintext
|
|
@model JobsMedical.Web.Pages.Employer.ListingsModel.Applicant
|
||
|
|
@{
|
||
|
|
var s = Model.Status;
|
||
|
|
}
|
||
|
|
<li style="margin-bottom:8px;">
|
||
|
|
<span>@(Model.Name ?? "کاربر") — <span dir="ltr">@JalaliDate.ToPersianDigits(Model.Phone)</span></span>
|
||
|
|
@if (s == JobsMedical.Web.Models.ApplicationStatus.Accepted)
|
||
|
|
{
|
||
|
|
<span class="badge badge-verified">✓ پذیرفته شد</span>
|
||
|
|
}
|
||
|
|
else if (s == JobsMedical.Web.Models.ApplicationStatus.Rejected)
|
||
|
|
{
|
||
|
|
<span class="badge badge-gender">رد شد</span>
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{
|
||
|
|
<span style="display:inline-flex; gap:6px; margin-inline-start:8px; vertical-align:middle;">
|
||
|
|
<form method="post" asp-page-handler="Accept" asp-route-eventId="@Model.EventId" style="display:inline;">
|
||
|
|
<button type="submit" class="btn btn-accent" style="padding:3px 12px; font-size:12px;">پذیرفتن</button>
|
||
|
|
</form>
|
||
|
|
<form method="post" asp-page-handler="Reject" asp-route-eventId="@Model.EventId" style="display:inline;">
|
||
|
|
<button type="submit" class="btn btn-outline" style="padding:3px 12px; font-size:12px; color:var(--danger); border-color:var(--danger);">رد</button>
|
||
|
|
</form>
|
||
|
|
</span>
|
||
|
|
}
|
||
|
|
</li>
|