Skip to content

Commit

Permalink
fix: show only active clinic
Browse files Browse the repository at this point in the history
  • Loading branch information
Rivinger7 committed Jul 22, 2024
1 parent acb0e11 commit 0404b50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public async Task<IActionResult> Index()
var specialties = await _context.Specialties.ToListAsync();
ViewBag.Specialities = specialties;

var clinics = await _context.Clinics.ToListAsync();
var clinics = await _context.Clinics.Where(c => c.ClinicStatus == "Ho?t ??ng").ToListAsync();
ViewBag.Clinics = clinics;

var news = await _context.News.ToListAsync();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@
</button>
}

<form asp-area="" asp-controller="Account" asp-action="CancelAppointment" method="post" style="margin-left: auto;">
<form asp-area="" asp-controller="Account" asp-action="CancelAppointment" method="post" style="margin-left: auto;" onsubmit="return confirmCancel();">
<input type="hidden" name="appointmentID" value="@appointment?.ID" />
<input type="hidden" name="scheduleID" value="@appointment?.Schedule?.ID" />
<input type="hidden" name="appointmentStatus" value="Đã Hủy" />
Expand Down Expand Up @@ -673,6 +673,12 @@
});
</script>

<script>
function confirmCancel() {
return confirm("Xác nhận hủy khám?");
}
</script>

@* Call API from https://esgoo.net to get data*@
<script src="https://esgoo.net/scripts/jquery.js"></script>
<script>
Expand Down

0 comments on commit 0404b50

Please sign in to comment.