Add admin sidebar template and refactor admin pages#40
Merged
Conversation
- Created a new sidebar template for the admin dashboard to standardize navigation across admin pages. - Refactored `deactivateCard.html`, `hardware_registry.html`, and `system_settings.html` to utilize the new sidebar template, improving code maintainability and consistency. - Removed redundant sidebar code from the aforementioned pages, enhancing readability and reducing duplication.
…gement - Removed redundant transaction and dashboard user structs from dashboard.go, replaced with database queries for user data. - Updated login.go to use username instead of user ID for login responses and adjusted redirect URLs based on user roles. - Enhanced jsonWrite.go to include username in login responses. - Added terminal struct and updated dashboard user struct in structs.go to accommodate recent transactions. - Modified dashboard handler in user/dashboard.go to fetch user ID from query parameters instead of session cookies. - Updated SQL schema to allow null merchant IDs in the terminals table. - Improved admin merchant and terminal management UI with new JavaScript functionalities for terminal registration and pagination. - Created new admin signup page and associated JavaScript for handling admin registrations. - Removed outdated hardware registry template and replaced it with a new terminal management template.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce a standardized sidebar template for the admin dashboard, enhancing navigation consistency across pages. Refactor existing admin pages to utilize the new template, improving code maintainability and reducing redundancy.