From 4ab69d3519ef53bdbeb88650f9dbaa6928201ec7 Mon Sep 17 00:00:00 2001 From: VARUN Date: Fri, 5 Apr 2024 15:09:20 +0530 Subject: [PATCH] initial commit --- requirements.txt | 7 +++++++ .../templates/skyonnadmin/admin_dashboard.html | 17 ++++++++++++++++- skyonnweb/templates/user/new_job_posting.html | 8 ++++---- 3 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..6a87348 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,7 @@ +asgiref==3.7.2 +Django==4.2.11 +mysqlclient==2.2.4 +pillow==10.2.0 +sqlparse==0.4.4 +typing_extensions==4.10.0 +tzdata==2024.1 diff --git a/skyonnweb/templates/skyonnadmin/admin_dashboard.html b/skyonnweb/templates/skyonnadmin/admin_dashboard.html index fa83e17..1a6a3c5 100644 --- a/skyonnweb/templates/skyonnadmin/admin_dashboard.html +++ b/skyonnweb/templates/skyonnadmin/admin_dashboard.html @@ -560,7 +560,22 @@ function hideClientDetails() { clientDetailsContainer.style.display = 'none'; } } - +function validateBudget() { + var budgetMin = parseFloat(document.getElementById("BudgetMin").value); + var budgetMax = parseFloat(document.getElementById("BudgetMax").value); + var budgetError = document.getElementById("budgetError"); + if (budgetMin > budgetMax) { + budgetError.style.display = "inline"; // Show error message + } else { + budgetError.style.display = "none"; // Hide error message + } +} + function limitNumberOfPostings(input) { + var maxPostings = 100; + if (input.value > maxPostings) { + input.value = maxPostings; // Set the value to the maximum allowed + } +} diff --git a/skyonnweb/templates/user/new_job_posting.html b/skyonnweb/templates/user/new_job_posting.html index 49c9f4b..a31a921 100644 --- a/skyonnweb/templates/user/new_job_posting.html +++ b/skyonnweb/templates/user/new_job_posting.html @@ -130,7 +130,7 @@
- +
@@ -161,7 +161,7 @@
- +
@@ -176,7 +176,7 @@
- +
@@ -197,7 +197,7 @@
- +