Ignore:
Timestamp:
08/29/24 20:27:21 (4 weeks ago)
Author:
ElenaMoskova <elena.moskova99@…>
Branches:
main
Children:
99d0ecc
Parents:
a850333
Message:

fix issues

fix bugs with nested tables
fix delete nested fk items

File:
1 edited

Legend:

Unmodified
Added
Removed
  • PostgreSqlDotnetCore/Views/Blog/Index.cshtml

    ra850333 re90ba32  
    1 @model IEnumerable<PostgreSqlDotnetCore.Models.BlogPostConsultation>
     1@model IEnumerable<PostgreSqlDotnetCore.Models.BlogUsers>
    22
    33@{
     
    1414
    1515        <th>
    16             @Html.DisplayNameFor(model => model.date_askes)
     16            @Html.DisplayNameFor(model => model.id)
    1717        </th>
    1818        <th>
    19             @Html.DisplayNameFor(model => model.title)
     19            @Html.DisplayNameFor(model => model.user_name)
    2020        </th>
    2121        <th>
    22             @Html.DisplayNameFor(model => model.description)
     22            @Html.DisplayNameFor(model => model.user_email)
    2323        </th>
    2424        <th>
    25             @Html.DisplayNameFor(model => model.users_id)
     25            @Html.DisplayNameFor(model => model.consultation_title)
     26        </th>
     27        <th>
     28            @Html.DisplayNameFor(model => model.consultation_description)
     29        </th>
     30        <th>
     31            @Html.DisplayNameFor(model => model.consultation_date)
    2632        </th>
    2733        <th></th>
     
    3339        <tr>
    3440            <td>
    35                 @Html.DisplayFor(modelItem => item.date_askes)
     41                @Html.DisplayFor(modelItem => item.id)
    3642            </td>
    3743            <td>
    38                 @Html.DisplayFor(modelItem => item.title)
     44                @Html.DisplayFor(modelItem => item.user_name)
    3945            </td>
    40 
    4146            <td>
    42                 @Html.DisplayFor(modelItem => item.description)
     47                @Html.DisplayFor(model => item.user_email)
    4348            </td>
    44             <th>
    45                 @Html.DisplayFor(model => item.users_id)
    46             </th>
     49            <td>
     50                @Html.DisplayFor(modelItem => item.consultation_title)
     51            </td>
     52            <td>
     53                @Html.DisplayFor(modelItem => item.consultation_description)
     54            </td>
     55            <td>
     56                @Html.DisplayFor(modelItem => item.consultation_date)
     57            </td>
    4758
    4859            @*<td>
Note: See TracChangeset for help on using the changeset viewer.