Browse Source

muscow added

confirmation-email
Milad Karbasizadeh 11 years ago
parent
commit
6eae2d6f5c
2 changed files with 5 additions and 4 deletions
  1. +1
    -1
      Sevomin.WebFrontend/Views/Job/NewJob.cshtml
  2. +4
    -3
      Sevomin.WebFrontend/Views/Shared/EditorTemplates/JobParameterViewModel.cshtml

+ 1
- 1
Sevomin.WebFrontend/Views/Job/NewJob.cshtml View File

@ -7,7 +7,7 @@
<h1>انتشار آگهی استخدام <small>لورم ایپسوم</small></h1>
</div>
@using (Html.BeginForm("", "", FormMethod.Post, new { role = "form" }))
@using (Html.BeginForm("NewJob", "Job", FormMethod.Post, new { role = "form" }))
{
@Html.Partial("JobEditor")
}

+ 4
- 3
Sevomin.WebFrontend/Views/Shared/EditorTemplates/JobParameterViewModel.cshtml View File

@ -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)
<div class="form-group">
@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)
{
<p>this should take moscow</p>
@Html.DropDownList(muscowId, new SelectList(new List<SelectListItem>() { 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" })
}
</div>

Loading…
Cancel
Save