Changeset e90ba32 for PostgreSqlDotnetCore/Views
- Timestamp:
- 08/29/24 20:27:21 (3 months ago)
- Branches:
- main
- Children:
- 99d0ecc
- Parents:
- a850333
- Location:
- PostgreSqlDotnetCore/Views
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
PostgreSqlDotnetCore/Views/Blog/Details.cshtml
ra850333 re90ba32 77 77 78 78 <td> 79 @Html.ActionLink("Edit", "Edit", "BlogPostAnswers", new { id = item.id }) | 80 @Html.ActionLink("Details", "Details", "BlogPostAnswers", new { id = item.id }) | 81 @Html.ActionLink("Delete", "Delete", "BlogPostAnswers", new { id = item.id }) 82 79 80 @Html.ActionLink("Details", "Details", "BlogPostAnswers", new { id = item.id }) 83 81 @Html.ActionLink("Create an Answer", "Create", "BlogPostAnswers", new { id = item.BlogPostConsultationid, parentId = item.id }) 84 82 </td> 83 84 @if (item.usersid == ViewBag.CurrentUserId) 85 86 { 87 <td> 88 89 @Html.ActionLink("Edit", "Edit", "BlogPostAnswers", new { id = item.id }) 90 @Html.ActionLink("Delete", "Delete", "BlogPostAnswers", new { id = item.id }) 91 92 93 </td> 94 } 95 96 85 97 </tr> 86 98 } … … 90 102 <p> 91 103 @Html.ActionLink("Create an Answer", "Create", "BlogPostAnswers", new { id = Model.id, parentId = Model.id }) 92 @Html.ActionLink("Edit", "Edit", new { id = Model.id }) |93 104 @Html.ActionLink("Back to List", "Index") 94 105 </p> 106 107 108 @if (Model.users_id == ViewBag.CurrentUserId) 109 110 { 111 <p> 112 @Html.ActionLink("Edit", "Edit", new { id = Model.id }) 113 114 115 </p> 116 } -
PostgreSqlDotnetCore/Views/Blog/Index.cshtml
ra850333 re90ba32 1 @model IEnumerable<PostgreSqlDotnetCore.Models.Blog PostConsultation>1 @model IEnumerable<PostgreSqlDotnetCore.Models.BlogUsers> 2 2 3 3 @{ … … 14 14 15 15 <th> 16 @Html.DisplayNameFor(model => model. date_askes)16 @Html.DisplayNameFor(model => model.id) 17 17 </th> 18 18 <th> 19 @Html.DisplayNameFor(model => model. title)19 @Html.DisplayNameFor(model => model.user_name) 20 20 </th> 21 21 <th> 22 @Html.DisplayNameFor(model => model. description)22 @Html.DisplayNameFor(model => model.user_email) 23 23 </th> 24 24 <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) 26 32 </th> 27 33 <th></th> … … 33 39 <tr> 34 40 <td> 35 @Html.DisplayFor(modelItem => item. date_askes)41 @Html.DisplayFor(modelItem => item.id) 36 42 </td> 37 43 <td> 38 @Html.DisplayFor(modelItem => item. title)44 @Html.DisplayFor(modelItem => item.user_name) 39 45 </td> 40 41 46 <td> 42 @Html.DisplayFor(model Item => item.description)47 @Html.DisplayFor(model => item.user_email) 43 48 </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> 47 58 48 59 @*<td> -
PostgreSqlDotnetCore/Views/PetCares/Index.cshtml
ra850333 re90ba32 31 31 @Html.DisplayNameFor(model => model.vetcentersid) 32 32 </th> 33 <th> 34 @Html.DisplayNameFor(model => model.PetsClass.name) 35 </th> 33 36 34 37 <th></th> … … 36 39 </tr> 37 40 38 @foreach (var item in Model) { 39 <tr> 40 <td> 41 @Html.DisplayFor(modelItem => item.title) 42 </td> 43 <td> 44 @Html.DisplayFor(modelItem => item.description) 45 </td> 46 <td> 47 @Html.DisplayFor(modelItem => item.dateending) 48 </td> 41 @foreach (var item in Model) 42 { 43 <tr> 44 <td> 45 @Html.DisplayFor(modelItem => item.title) 46 </td> 47 <td> 48 @Html.DisplayFor(modelItem => item.description) 49 </td> 50 <td> 51 @Html.DisplayFor(modelItem => item.dateending) 52 </td> 49 53 <td> 50 54 @Html.DisplayFor(modelItem => item.start_date) 51 55 </td> 52 <td> 53 @Html.DisplayFor(modelItem => item.usersid) 54 </td> 55 <td> 56 @Html.DisplayFor(modelItem => item.vetcentersid) 57 </td> 56 <td> 57 @Html.DisplayFor(modelItem => item.usersid) 58 </td> 59 <td> 60 @Html.DisplayFor(modelItem => item.vetcentersid) 61 </td> 62 <td> 63 @Html.DisplayFor(modelItem => item.PetsClass.name) 64 </td> 58 65 59 66 60 67 61 <td>62 @Html.ActionLink("Edit", "Edit", new { id = item.id }) |63 @Html.ActionLink("Details", "Details", new { id = item.id }) |64 @Html.ActionLink("Delete", "Delete", new { id = item.id })65 </td>66 </tr>67 }68 <td> 69 @Html.ActionLink("Edit", "Edit", new { id = item.id }) | 70 @Html.ActionLink("Details", "Details", new { id = item.id }) | 71 @Html.ActionLink("Delete", "Delete", new { id = item.id }) 72 </td> 73 </tr> 74 } 68 75 69 76 </table>
Note:
See TracChangeset
for help on using the changeset viewer.