Admin: disable "Intern details" fields when role is not Intern #1

Open
opened 2026-08-15 21:14:01 +07:00 by dochim · 0 comments
Collaborator

On admin/accounts/new (src/main/resources/templates/accounts/new.html), when the selected Role is Admin or Mentor, the "Intern details" inputs (Student code, Internship start, Internship end) remain editable, inviting misinput. They should be visually grayed out and non-interactive unless the Role is Intern. This is a UI-only guard; keep existing server-side validation.

On admin/accounts/new (src/main/resources/templates/accounts/new.html), when the selected Role is Admin or Mentor, the "Intern details" inputs (Student code, Internship start, Internship end) remain editable, inviting misinput. They should be visually grayed out and non-interactive unless the Role is Intern. This is a UI-only guard; keep existing server-side validation.
dochim changed title from Admin: disable Intern to Admin: disable "Intern details" fields when role is not Intern 2026-08-15 21:22:57 +07:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sechmachine/labtimesheet#1