From 6eae2d6f5c8786b665d42bb674f57960ea86110a Mon Sep 17 00:00:00 2001 From: Milad Karbasizadeh Date: Sun, 30 Mar 2014 10:34:42 +0430 Subject: [PATCH] muscow added --- Sevomin.WebFrontend/Views/Job/NewJob.cshtml | 2 +- .../Shared/EditorTemplates/JobParameterViewModel.cshtml | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Sevomin.WebFrontend/Views/Job/NewJob.cshtml b/Sevomin.WebFrontend/Views/Job/NewJob.cshtml index 7852760..12f7b70 100644 --- a/Sevomin.WebFrontend/Views/Job/NewJob.cshtml +++ b/Sevomin.WebFrontend/Views/Job/NewJob.cshtml @@ -7,7 +7,7 @@

انتشار آگهی استخدام لورم ایپسوم

-@using (Html.BeginForm("", "", FormMethod.Post, new { role = "form" })) +@using (Html.BeginForm("NewJob", "Job", FormMethod.Post, new { role = "form" })) { @Html.Partial("JobEditor") } \ No newline at end of file diff --git a/Sevomin.WebFrontend/Views/Shared/EditorTemplates/JobParameterViewModel.cshtml b/Sevomin.WebFrontend/Views/Shared/EditorTemplates/JobParameterViewModel.cshtml index 32c6ced..f2c7979 100644 --- a/Sevomin.WebFrontend/Views/Shared/EditorTemplates/JobParameterViewModel.cshtml +++ b/Sevomin.WebFrontend/Views/Shared/EditorTemplates/JobParameterViewModel.cshtml @@ -1,5 +1,6 @@ @model Sevomin.Models.JobParameterViewModel -@{ string paramId = string.Format("value-", Model.ParameterId.ToString()); } +@{ string paramId = string.Format("value-", Model.ParameterId.ToString()); + string muscowId = string.Format("muscow-", Model.ParameterId.ToString()); } @Html.Label(Model.ParameterName)
@switch (Model.DisplayMethod) @@ -15,7 +16,7 @@ @Html.TextBox(paramId) break; case 4: - @Html.DropDownList(paramId, new SelectList(Model.ParameterValues, "item1", "item2")) + @Html.DropDownList(paramId, new SelectList(Model.ParameterValues, "item1", "item2"), new { @class = "form-control" }) break; default: @MvcHtmlString.Empty @@ -23,6 +24,6 @@ } @if (Model.HasMoscow) { -

this should take moscow

+ @Html.DropDownList(muscowId, new SelectList(new List() { new SelectListItem{ Value = "4", Text = "Must"}, new SelectListItem{ Value = "3", Text = "Should"}, new SelectListItem{ Value = "2", Text = "Could"}, new SelectListItem{ Value = "1", Text = "Wont"}}), new { @class = "form-control" }) }