Browse Source

list goof fixed

confirmation-email
Milad Karbasizadeh 11 years ago
parent
commit
d3b4ee28b9
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      Sevomin.WebFrontend/Views/Shared/JobParameterViewModel.cshtml

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

@ -1,6 +1,7 @@
@model Sevomin.Models.JobParameterViewModel
@{ string paramId = string.Format("value-{0}", Model.ParameterId.ToString());
string muscowId = string.Format("moscow-{0}", Model.ParameterId.ToString()); }
string muscowId = string.Format("moscow-{0}", Model.ParameterId.ToString());
var MuSCoWList = new List<Tuple<string, string>>() { new Tuple<string, string>("Must", "4"), new Tuple<string, string>("Should", "3"), new Tuple<string, string>("Could", "2"), new Tuple<string, string>("Won't", "1") }; }
@Html.Label(Model.ParameterName)
<div class="form-group">
@switch (Model.DisplayMethod)
@ -24,6 +25,6 @@
}
@if (Model.HasMoscow)
{
@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" })
@Html.DropDownList(muscowId, new SelectList(MuSCoWList, "item2", "item1"), new { @class = "form-control" })
}
</div>

Loading…
Cancel
Save