diff --git a/templates/modal.html b/templates/modal.html
index 25195c1..77e6e99 100644
--- a/templates/modal.html
+++ b/templates/modal.html
@@ -1,7 +1,7 @@
@@ -129,7 +131,40 @@ document.addEventListener("DOMContentLoaded", () => {
.then(response => response.json())
.then(data => {
console.log("Ответ от сервера:", data);
-
+
+
+ const getYesNo = val => val === "autorization-yes" ? "yes" : "no";
+
+ const lines = [
+ `Are you authorized to work in the US? ${getYesNo(data.autorization)}`,
+ `Will you now or in the future require sponsorship for employment visa status? ${getYesNo(data.sponsorship)}`,
+ `Are you authorized to work in Canada? ${getYesNo(data.autorization_canada)}`,
+ ];
+
+ if (data.autorization_canada === "autorization-yes") {
+ lines.push(`(If Yes) What is your status in Canada? ${data["status-Canada"]}`);
+ }
+
+ lines.push(`Are you authorized to work in the United Kingdom? ${getYesNo(data.autorization_uk)}`);
+
+ document.getElementById("output").innerHTML = lines.join("
");
+
+ const equalLines = [];
+
+ if (data["ethnicity-no-answer"] !== "on") {
+ equalLines.push(`What's your ethnicity? ${data.ethnicity}`);
+ }
+
+ if (data["gender-no-answer"] !== "on") {
+ equalLines.push(`What's your gender? ${data.gender}`);
+ }
+
+ equalLines.push(`Do you have a disability? ${data.disability}`);
+ equalLines.push(`Are you a veteran? ${data.veteran}`);
+
+ document.getElementById("equal").innerHTML = equalLines.join("
");
+
+
const education = data.education_list?.map(item => {
return `