From 9ee4a83759eb410d66c7f4ec4e49affd425faf41 Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Wed, 15 Oct 2025 17:04:56 -0700 Subject: [PATCH] Fix the number per page --- .../src/app/pages/jobs/jobs.component.css | 3 + .../src/app/pages/jobs/jobs.component.html | 103 +++++++++--------- .../src/app/pages/jobs/jobs.component.ts | 1 + 3 files changed, 58 insertions(+), 49 deletions(-) diff --git a/src/Client/src/app/pages/jobs/jobs.component.css b/src/Client/src/app/pages/jobs/jobs.component.css index d9f8b07..c574c24 100644 --- a/src/Client/src/app/pages/jobs/jobs.component.css +++ b/src/Client/src/app/pages/jobs/jobs.component.css @@ -124,6 +124,9 @@ button { } .jobs-per-page { + position: absolute; + bottom: 100px; + right: 0; display: flex; justify-content: end; padding: 20px; diff --git a/src/Client/src/app/pages/jobs/jobs.component.html b/src/Client/src/app/pages/jobs/jobs.component.html index 6ef06fa..8549a14 100644 --- a/src/Client/src/app/pages/jobs/jobs.component.html +++ b/src/Client/src/app/pages/jobs/jobs.component.html @@ -1,65 +1,70 @@ - -
-
-
-

Country

-
- -
-
-
-

Postal Code

-
- -
- @if (currentFilter.CountryCode != null && currentFilter.CountryCode !== "" && currentFilter.PostalCode != null && currentFilter.PostalCode !== ""){ +
+ + +
-

Distance

+

Country

- + @for(cur of countryOptions; track cur){ + + } + +
+
+
+

Postal Code

+
+ +
+ @if (currentFilter.CountryCode != null && currentFilter.CountryCode !== "" && currentFilter.PostalCode != null && currentFilter.PostalCode !== ""){ +
+
+

Distance

+
+ +
+ } +
+
+

Job Type

+
+
- } -
-
-

Job Type

+
+
+

Minimum Salary

+
+
- -
-
-
-

Minimum Salary

+
+
+

Maximum Salary

+
+
- -
-
-
-

Maximum Salary

+
+
+

Remote

+
+
- -
-
-
-

Remote

+
+

+
-
-
-

- -
-
- -
+ @for (cur of JobListingPage; track cur.id){
diff --git a/src/Client/src/app/pages/jobs/jobs.component.ts b/src/Client/src/app/pages/jobs/jobs.component.ts index 53e0111..69b14f9 100644 --- a/src/Client/src/app/pages/jobs/jobs.component.ts +++ b/src/Client/src/app/pages/jobs/jobs.component.ts @@ -19,6 +19,7 @@ export class JobsComponent { public distanceOptions = [10, 25, 50, 100]; public itemsPerPageOptions = [10, 25, 50, 100]; public countryOptions: string[] = []; + public jobTypeOptions: string[] = ["", "Full-time", "Part-time", "Contract", "Temporary", "Internship"]; public currentFilter: JobFilter; public JobListingPage: JobListing[] = [];