Add locked classroom reservations with admin-only booking#90
Merged
Conversation
Co-authored-by: marpisco <162377105+marpisco@users.noreply.github.com>
Co-authored-by: marpisco <162377105+marpisco@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add feature to lock classroom reservations for admins
Add locked classroom reservations with admin-only booking
Dec 2, 2025
Owner
|
@copilot Everything seems great except the reservation tactic. Change the way that you are putting up users, since that might become hogged up over time. Add some sort of modal for looking up. |
Co-authored-by: marpisco <162377105+marpisco@users.noreply.github.com>
Contributor
Author
Replaced the dropdown with a modal-based user lookup in commit 537c72d. The new UI includes:
This change applies to both bulk reservations (reservar/index.php) and single reservations (reservar/manage.php). |
Owner
|
Aproveitei esta PR para poder adicionar outras funções e QOL. |
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.
Adds ability to lock classrooms so only admins can create reservations. Locked rooms remain visible with existing reservations, but non-admins see a blocked notice instead of booking controls. Admins gain the ability to create reservations on behalf of any user.
Database Schema
bloqueadocolumn tosalastable (0=unlocked, 1=locked)Admin Panel (
admin/salas.php)Reservation UI (
reservar/index.php)Reservation Logic (
reservar/manage.php)requisitor_idexists in database before useUser Selection Modal
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.