Поправил отображение болезней в списках для курсов и симптомов
This commit is contained in:
parent
d1fc181b08
commit
7b94e137ad
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user