Changeset 118e414 for PostgreSqlDotnetCore/Views
- Timestamp:
- 08/23/24 15:40:14 (3 months ago)
- Branches:
- main
- Children:
- e9bb9d1
- Parents:
- 72b1da2
- Location:
- PostgreSqlDotnetCore/Views
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
PostgreSqlDotnetCore/Views/Blog/Details.cshtml
r72b1da2 r118e414 80 80 @Html.ActionLink("Details", "Details", "BlogPostAnswers", new { id = item.id }) | 81 81 @Html.ActionLink("Delete", "Delete", "BlogPostAnswers", new { id = item.id }) 82 83 @Html.ActionLink("Create an Answer", "Create", "BlogPostAnswers", new { id = item.BlogPostConsultationid, parentId = item.id }) 82 84 </td> 83 85 </tr> … … 87 89 </div> 88 90 <p> 91 @Html.ActionLink("Create an Answer", "Create", "BlogPostAnswers", new { id = Model.id, parentId = Model.id }) 89 92 @Html.ActionLink("Edit", "Edit", new { id = Model.id }) | 90 93 @Html.ActionLink("Back to List", "Index") -
PostgreSqlDotnetCore/Views/Blog/Index.cshtml
r72b1da2 r118e414 29 29 </tr> 30 30 31 @foreach (var item in Model) { 32 <tr> 33 <td> 34 @Html.DisplayFor(modelItem => item.date_askes) 35 </td> 36 <td> 37 @Html.DisplayFor(modelItem => item.title) 38 </td> 31 @foreach (var item in Model) 32 { 33 <tr> 34 <td> 35 @Html.DisplayFor(modelItem => item.date_askes) 36 </td> 37 <td> 38 @Html.DisplayFor(modelItem => item.title) 39 </td> 39 40 40 <td>41 @Html.DisplayFor(modelItem => item.description)42 </td>43 <th>44 @Html.DisplayFor(model => item.users_id)45 </th>41 <td> 42 @Html.DisplayFor(modelItem => item.description) 43 </td> 44 <th> 45 @Html.DisplayFor(model => item.users_id) 46 </th> 46 47 47 @*<td>48 49 50 48 @*<td> 49 @Html.ActionLink("Edit", "Edit", new { id = item.id }) | 50 @Html.ActionLink("Answers", "Details", new { id = item.id }) | 51 @Html.ActionLink("Delete", "Delete", new { id = item.id }) 51 52 </td> 52 53 *@ 53 54 54 55 55 56 56 57 @if (item.users_id == ViewBag.CurrentUserId) 58 { 59 <td> 60 @Html.ActionLink("Edit", "Edit", new { id = item.id }) 61 @Html.ActionLink("Delete", "Delete", new { id = item.id }) 62 63 </td> 57 58 @if (item.users_id == ViewBag.CurrentUserId) 59 { 60 <td> 61 @Html.ActionLink("Edit", "Edit", new { id = item.id }) 62 @Html.ActionLink("Delete", "Delete", new { id = item.id }) 63 64 </td> 64 65 } 65 66 66 67 67 68 68 @if (item.users_id == ViewBag.CurrentUserId || item.users_id != ViewBag.CurrentUserId) 69 69 { 70 70 <td> 71 72 @Html.ActionLink("Answers", "Details", new { id = item.id }) 73 71 72 @Html.ActionLink("Answers", "Details", new { id = item.id }) 73 74 74 75 75 </td> 76 76 } 77 78 77 79 78 80 81 82 83 </tr> 84 } 79 80 81 82 83 </tr> 84 } 85 85 86 86 </table> -
PostgreSqlDotnetCore/Views/BlogPostAnswers/Create.cshtml
r72b1da2 r118e414 17 17 @Html.ValidationSummary(true, "", new { @class = "text-danger" }) 18 18 19 <div class="form-group">19 @* <div class="form-group"> 20 20 @Html.LabelFor(model => model.parent_id, htmlAttributes: new { @class = "control-label col-md-2" }) 21 21 <div class="col-md-10"> … … 24 24 </div> 25 25 </div> 26 26 *@ 27 27 <div class="form-group"> 28 28 @Html.LabelFor(model => model.reply, htmlAttributes: new { @class = "control-label col-md-2" }) -
PostgreSqlDotnetCore/Views/BlogPostAnswers/Details.cshtml
r72b1da2 r118e414 31 31 <p> 32 32 @Html.ActionLink("Edit", "Edit", new { id = Model.id }) | 33 @Html.ActionLink("Back to List", "Index") 33 @* @Html.ActionLink("Back to List", "Index") *@ 34 <a href="javascript:void(0);" onclick="history.go(-1);">Back to List</a> 34 35 </p> -
PostgreSqlDotnetCore/Views/Customer/Index.cshtml
r72b1da2 r118e414 17 17 { 18 18 19 <p>19 /* <p> 20 20 @Html.ActionLink("Create New", "Create") 21 21 </p> 22 */ 23 24 @if (ViewBag.CanCreate) 25 { 26 <p> 27 @Html.ActionLink("Create New", "Create") 28 </p> 29 } 22 30 <table class="table"> 23 31 <tr> -
PostgreSqlDotnetCore/Views/Shared/_Layout.cshtml
r72b1da2 r118e414 13 13 </head> 14 14 <body> 15 <h1>@(ViewBag.isAuthenticated == null ? "krij" : "prikazi")</h1>15 @* <h1>@(ViewBag.isAuthenticated == null ? "krij" : "prikazi")</h1> *@ 16 16 <header> 17 17 <nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3"> … … 47 47 <a class="nav-link text-dark" asp-area="" asp-controller="Customer" asp-action="Index">Manage Customers</a> 48 48 </li> 49 <li class="nav-item">49 @* <li class="nav-item"> 50 50 <a class="nav-link text-dark" asp-area="" asp-controller="City" asp-action="Index">Manage Cities</a> 51 51 </li> 52 52 *@ 53 53 <li class="nav-item"> 54 54 <a class="nav-link text-dark" asp-area="" asp-controller="Blog" asp-action="Index">BlogPost</a> … … 56 56 } 57 57 58 59 58 60 59 61 } 62 @if (ViewBag.OnlyAdminManager != null) 63 { 64 <li class="nav-item"> 65 <a class="nav-link text-dark" asp-area="" asp-controller="City" asp-action="Index">Manage Cities</a> 66 </li> 67 } 68 60 69 61 70
Note:
See TracChangeset
for help on using the changeset viewer.