Поправил отображение болезней в списках для курсов и симптомов

This commit is contained in:
Никита Потапов 2024-05-29 14:16:10 +04:00
parent d1fc181b08
commit 7b94e137ad
2 changed files with 24 additions and 0 deletions

View File

@ -17,6 +17,18 @@
<ol> <ol>
@foreach (var item in Model.Diagnoses) @foreach (var item in Model.Diagnoses)
{ {
@if (LoginManager.LogginedUser.Id != item.Diagnose.UserId)
{
@if (item.IsChecked)
{
<input type="checkbox" hidden id="diagnose-@item.Diagnose.Id" name="selectedDiagnoses" value="@item.Diagnose.Id" checked />
}
else
{
<input type="checkbox" hidden id="diagnose-@item.Diagnose.Id" name="selectedDiagnoses" value="@item.Diagnose.Id" />
}
continue;
}
<li class="mb-2 ps-1 ms-1"> <li class="mb-2 ps-1 ms-1">
@if (item.IsChecked) @if (item.IsChecked)
{ {

View File

@ -14,6 +14,18 @@
<ol> <ol>
@foreach (var item in Model.Diagnoses) @foreach (var item in Model.Diagnoses)
{ {
@if (LoginManager.LogginedUser.Id != item.Diagnose.UserId)
{
@if (item.IsChecked)
{
<input type="checkbox" hidden id="diagnose-@item.Diagnose.Id" name="selectedDiagnoses" value="@item.Diagnose.Id" checked />
}
else
{
<input type="checkbox" hidden id="diagnose-@item.Diagnose.Id" name="selectedDiagnoses" value="@item.Diagnose.Id" />
}
continue;
}
<li class="mb-2 ps-1 ms-1"> <li class="mb-2 ps-1 ms-1">
@if (item.IsChecked) @if (item.IsChecked)
{ {