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

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

@ -1,5 +1,6 @@
@model Sevomin.Models.JobParameterViewModel @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) @Html.Label(Model.ParameterName)
<div class="form-group"> <div class="form-group">
@switch (Model.DisplayMethod) @switch (Model.DisplayMethod)
@ -15,7 +16,7 @@
@Html.TextBox(paramId) @Html.TextBox(paramId)
break; break;
case 4: 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; break;
default: default:
@MvcHtmlString.Empty @MvcHtmlString.Empty
@ -23,6 +24,6 @@
} }
@if (Model.HasMoscow) @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> </div>

Loading…
Cancel
Save