Skip to content

Enhancement/38 use dropdowns for major course type in student add form#73

Open
DjesikaV wants to merge 7 commits into
mainfrom
enhancement/38-use-dropdowns-for-Major-Course-Type-in-student-add-form
Open

Enhancement/38 use dropdowns for major course type in student add form#73
DjesikaV wants to merge 7 commits into
mainfrom
enhancement/38-use-dropdowns-for-Major-Course-Type-in-student-add-form

Conversation

@DjesikaV

Copy link
Copy Markdown
Contributor

Added dropdown fields to the student add form.
Changes:

  • Replaced manual text inputs for major, course, and type with dropdown selectors.
  • Added a separate MajorOptionElm interface for the /api/majors backend response.
  • Loaded major options through MajorService.
  • Added fixed course and type options for selection.
  • Added selection handlers for major, course, and type.

@DjesikaV
DjesikaV requested a review from a team as a code owner June 22, 2026 08:04
@DjesikaV

Copy link
Copy Markdown
Contributor Author

Commits for access modifiers and student editing are also shown here because I created this branch on top of another feature branch instead of creating it directly from main.

@PIPetkova19 PIPetkova19 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

})
export class AddForm {
@Input() title: string = '';
@Input() public title: string = '';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use newer syntax->input signal

@Input() public title: string = '';

@Output() saveClicked = new EventEmitter<void>();
@Output() public readonly saveClicked :EventEmitter<void> = new EventEmitter<void>();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use newer syntax

private viewService: ViewService,
private majorService: MajorService,
private facultyService: FacultyService
) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Main panel doesn't exist anymore

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.

2 participants