From e9f9d3d0d147a1ec1bf5139435d2392ed8d4c4e2 Mon Sep 17 00:00:00 2001 From: Ajay Gandecha Date: Mon, 11 Nov 2024 16:05:23 -0500 Subject: [PATCH] Add Application Date Start / End Editor for Terms (#644) * Prepare TA Applications for Spring 2025 * Fix Another Date Field * Add Application Start / End Editing --- backend/services/academics/term.py | 2 ++ .../term-editor/term-editor.component.html | 24 +++++++++++++++++++ .../term/term-editor/term-editor.component.ts | 16 +++++++++++-- .../src/app/academics/academics.models.ts | 2 ++ .../src/app/academics/academics.resolver.ts | 2 ++ 5 files changed, 44 insertions(+), 2 deletions(-) diff --git a/backend/services/academics/term.py b/backend/services/academics/term.py index 4330c85d3..43bcfed99 100644 --- a/backend/services/academics/term.py +++ b/backend/services/academics/term.py @@ -142,6 +142,8 @@ def update(self, subject: User, term: Term) -> TermDetails: term_entity.name = term.name term_entity.start = term.start term_entity.end = term.end + term_entity.applications_open = term.applications_open + term_entity.applications_close = term.applications_close # Commit changes self._session.commit() diff --git a/frontend/src/app/academics/academics-admin/term/term-editor/term-editor.component.html b/frontend/src/app/academics/academics-admin/term/term-editor/term-editor.component.html index 7d4a55a82..02fc48f0d 100644 --- a/frontend/src/app/academics/academics-admin/term/term-editor/term-editor.component.html +++ b/frontend/src/app/academics/academics-admin/term/term-editor/term-editor.component.html @@ -36,6 +36,7 @@ + Term Start Date + Term End Date + + + Term Applications Open Date + + + + + Term Applications Close Date + +