diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml
index 2199dc1..a758bb6 100644
--- a/Pages/Index.cshtml
+++ b/Pages/Index.cshtml
@@ -23,8 +23,7 @@
@for (int i = 0; i < Model.userData.skillOptions.Count(); i++)
{
-
-
+ @Model.userData.skillOptions[i]
}
diff --git a/Pages/Index.cshtml.cs b/Pages/Index.cshtml.cs
index e27e8de..b066583 100644
--- a/Pages/Index.cshtml.cs
+++ b/Pages/Index.cshtml.cs
@@ -58,7 +58,9 @@ namespace StateJobsNYSubmit.Pages
if (vacancyID != null && !vacancyID.Trim().Equals(""))
{
posting = new Posting(vacancyID);
- this.CoverLetter = posting.GenerateLetter(coverLetterFormat);
+ this.CoverLetter = posting.GenerateLetter(coverLetterFormat, userData, Request.Form["SkillCheckboxes"]);
+
+ Console.WriteLine();
this.Posting_ID = vacancyID;
}
else
diff --git a/Pages/Settings.cshtml.cs b/Pages/Settings.cshtml.cs
index 4f61f2d..32c51f8 100644
--- a/Pages/Settings.cshtml.cs
+++ b/Pages/Settings.cshtml.cs
@@ -41,7 +41,6 @@ namespace StateJobsNYSubmit.Pages
userData.name = Request.Form["userData.name"];
userData.email = Request.Form["userData.email"];
userData.smtpHost = Request.Form["userData.smtpHost"];
-
Response.Cookies.Append("Skills", Request.Form["skills"]);
Response.Cookies.Append("CoverLetter", Request.Form["userData.coverLetter"]);
userData.coverLetter = "";
diff --git a/Posting.cs b/Posting.cs
index 4ac172c..781f291 100644
--- a/Posting.cs
+++ b/Posting.cs
@@ -89,12 +89,15 @@ public class Posting
this.VacancyID = id;
}
- public string GenerateLetter(string s) {
+ public string GenerateLetter(string s, UserData data, string skills) {
string ret = "" + s;
ret = ret.Replace("$name", this.ContactName);
ret = ret.Replace("$vacancy", this.VacancyID);
ret = ret.Replace("$title", this.Title);
ret = ret.Replace("$box", this.BoxNumber);
+ ret = ret.Replace("$email", data.email);
+ string skillRet = skills.Replace(",", "");
+ ret = ret.Replace("$skills", skillRet);
return ret;
}