хотфикс
This commit is contained in:
parent
d93f31f42c
commit
411f8d61fb
@ -31,7 +31,6 @@
|
|||||||
<th>Id</th>
|
<th>Id</th>
|
||||||
<th>Teacher name</th>
|
<th>Teacher name</th>
|
||||||
<th>Student</th>
|
<th>Student</th>
|
||||||
<th>Student</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -39,28 +38,18 @@
|
|||||||
{
|
{
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
@Html.DisplayFor(modelItem => item.TeacherId)
|
@item.TeacherId
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@Html.DisplayFor(modelItem => item.TeacherName)
|
@item.TeacherName
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@foreach (var st in item.Students)
|
@foreach (var (Name, PhoneNumber) in item.Students)
|
||||||
{
|
{
|
||||||
<div>
|
<div>@Name</div>
|
||||||
@Html.DisplayFor(modelItem => st)
|
<div>@PhoneNumber</div>
|
||||||
</div>
|
|
||||||
}
|
}
|
||||||
</td>
|
</td>
|
||||||
@foreach (var student in item.Students)
|
|
||||||
{
|
|
||||||
<td>
|
|
||||||
@student.Name
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@student.PhoneNumber
|
|
||||||
</td>
|
|
||||||
}
|
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Loading…
Reference in New Issue
Block a user