diff --git a/src/main/resources/static/js/admin/admin.js b/src/main/resources/static/js/admin/admin.js index 7ad297fdc95cbf9b6ecf43b933259442f50b1199..19d73c0a19f7034fb081e1e09345af925f98a0b1 100644 --- a/src/main/resources/static/js/admin/admin.js +++ b/src/main/resources/static/js/admin/admin.js @@ -28,7 +28,6 @@ function toggleUserEnabled(userId, enable) { function updateUserRole(userId){ const roleSelect = document.getElementById('roleDdl'); - debugger const selectedValue = roleSelect.value; const url = `/admin/edit/${userId}/role`; diff --git a/src/main/resources/templates/admin/adminBoard.html b/src/main/resources/templates/admin/adminBoard.html index 942f644258d9fa2dedac88e7995a9793ea16e5c6..630fee8b0b835c1e1e3a302cfb631922ab9705b3 100644 --- a/src/main/resources/templates/admin/adminBoard.html +++ b/src/main/resources/templates/admin/adminBoard.html @@ -41,31 +41,41 @@ <div class="card"> <h3>Feeds Management</h3> <p>Review and manage community feeds</p> - <button>Manage</button> + <a th:href="@{/feed}"> + <button>Manage</button> + </a> </div> <div class="card"> <h3>Event Management</h3> <p>Create and manage community events</p> - <button>Manage</button> + <a th:href="@{/event}"> + <button>Manage</button> + </a> </div> <div class="card"> <h3>Database Management</h3> <p>Manage community information database</p> - <button>Manage</button> + <a th:href="@{/categories}"> + <button>Manage</button> + </a> </div> <div class="card"> <h3>Comments Moderation</h3> <p>Review and moderate user comments</p> - <button>Manage</button> + <a th:href="@{/feed}"> + <button>Manage</button> + </a> </div> <div class="card"> <h3>News Management</h3> <p>Create and manage community news</p> - <button>Manage</button> + <a th:href="@{/news}"> + <button>Manage</button> + </a> </div> </div>