otp-2236: adapt show department heads and make pi not deselectable
new: otp-2236: only show deputies to select and allow heads only with extra checkbox for project request
Closes otp-2347
Summary by CodeRabbit
-
New Features
- Implemented a new search functionality, allowing users to quickly find and display relevant results.
- Introduced a dynamic event binding for cloned elements, enhancing interactivity and user experience.
- Added a new function to fetch and display principal investigators (PIs) based on department selection.
- Created new endpoints and methods to support department and PI related features.
- Integrated a new user form for PI management in project requests.
-
Enhancements
- Extended event binding to handle additional roles in user forms.
- Improved the user interface by refining styles and adding dynamic elements for a better user experience.
-
Bug Fixes
- Fixed test descriptions in end-to-end testing to accurately reflect the actions being tested.
-
Documentation
- Updated copyright notices and added documentation for new functions and methods.
-
Refactor
- Refactored event handling logic for better maintainability and performance.
- Renamed and modified methods to improve clarity and align with new functionality.
-
Style
- Adjusted styles for a consistent and improved visual representation of the user interface.
-
Tests
- Modified and added test cases to ensure new features work as intended and existing functionality remains stable.
-
Chores
- Updated the database schema to support new project request features.
Edited by CodeRabbit