Skip to content

fix(ui): resolve malformed DOM duplication and exposed CSS in teacher…#466

Open
Shashank-8p wants to merge 1 commit into
Eswaramuthu:mainfrom
Shashank-8p:main
Open

fix(ui): resolve malformed DOM duplication and exposed CSS in teacher…#466
Shashank-8p wants to merge 1 commit into
Eswaramuthu:mainfrom
Shashank-8p:main

Conversation

@Shashank-8p
Copy link
Copy Markdown

Which issue does this PR close?

Rationale for this change

The Teacher Registration page (teacher_new_2.html) suffered from severe structural DOM corruption. A previous commit mistakenly duplicated the HTML body and form elements, which caused two conflicting layouts to render simultaneously. Furthermore, a CSS block was left unescaped inside an HTML <div>, causing the layout engine to render raw CSS text (/* Style for dropdown options */ ...) directly to the end-user. This change is necessary to restore the structural integrity and intended design of the registration view.

What changes are included in this PR?

  • DOM Cleanup: Removed the duplicated <body> and nested <form> elements in templates/teacher_new_2.html.
  • CSS Scoping: Properly relocated and scoped the dropdown CSS rules into the <style> block within the document <head>.
  • Jinja Integration: Ensured {{ csrf_token() }} and backend error handling logic ({% if error %}) are correctly structured within the unified form to maintain secure backend integration with app.py.

Are these changes tested?

Yes.

  • Locally verified: Spun up the Flask server and verified the /teacher-new route.
  • UI verification: The CSS text leak is resolved, and the registration fields render successfully inside a single, unified grid card without layout duplication.
  • Logic verification: Client-side password validation logic remains fully functional.

Are there any user-facing changes?

Yes. This resolves a severe visual bug for end-users on the Teacher Registration page. There are no new features added, but the UI has been restored to its intended design specifications.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 23, 2026

@Shashank-8p is attempting to deploy a commit to the 007's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@entelligence-ai-pr-reviews
Copy link
Copy Markdown
Contributor


Confidence Score: 5/5 - Safe to Merge

Safe to merge — this PR addresses malformed DOM duplication and exposed CSS in teacher-related UI components, and the automated review found no issues across the changed files. The fix appears clean with no logic bugs, security concerns, or runtime regressions introduced. All changed files were reviewed with zero substantive comments generated.

Key Findings:

  • Automated review produced zero comments across all 1 changed file, indicating no detectable logic, correctness, or security issues in the diff.
  • The PR's stated purpose — resolving malformed DOM duplication and exposed CSS — is a UI correctness fix with well-understood, bounded scope and low regression risk.
  • No pre-existing unresolved review comments were flagged, meaning this PR does not carry forward any known open concerns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Stray CSS text rendered in DOM and duplicate form components on Teacher Registration page

1 participant