Skip to content

Commit

Permalink
Updated report docx.
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanh00 committed Dec 2, 2024
1 parent f2c6896 commit ebaf8e8
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 2 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .vs/prjRentalManagement/v17/.suo
Binary file not shown.
Binary file modified 2231473_HuynhTuAnhChau_Report.docx
Binary file not shown.
6 changes: 4 additions & 2 deletions prjRentalManagement/Views/Building/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,18 @@ else
@Html.DisplayFor(modelItem => item.owner.name)
</td>
<td>
@if (Session["owner"] != null)
@if (Session["manager"] != null)
{
// Manager: Show all action buttons (Edit, Details, Delete)
@Html.ActionLink("Edit", "Edit", new { id = item.buildingId }, new { @class = "btn btn-warning btn-sm" })
@: |
@Html.ActionLink("Details", "Details", new { id = item.buildingId }, new { @class = "btn btn-info btn-sm" })
@: |
@Html.ActionLink("Delete", "Delete", new { id = item.buildingId }, new { @class = "btn btn-danger btn-sm" })
}
else if (Session["manager"] != null)
else if (Session["owner"] != null)
{
// Owner: Show only the "Details" button
@Html.ActionLink("Details", "Details", new { id = item.buildingId }, new { @class = "btn btn-info btn-sm" })
}
</td>
Expand Down

0 comments on commit ebaf8e8

Please sign in to comment.