You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
810 B

  1. @model Sevomin.Models.JobParameterViewModel
  2. @{ string paramId = string.Format("value-", Model.ParameterId.ToString()); }
  3. @Html.Label(Model.ParameterName)
  4. <div class="form-group">
  5. @switch (Model.DisplayMethod)
  6. {
  7. case 1:
  8. @Html.TextBox(paramId, string.Empty, new { @class = "form-control" })
  9. break;
  10. case 2:
  11. @Html.TextArea(paramId)
  12. break;
  13. case 3:
  14. /* validator bezar baraye numeric gereftan */
  15. @Html.TextBox(paramId)
  16. break;
  17. case 4:
  18. @Html.DropDownList(paramId, new SelectList(Model.ParameterValues, "item1", "item2"))
  19. break;
  20. default:
  21. @MvcHtmlString.Empty
  22. break;
  23. }
  24. @if (Model.HasMoscow)
  25. {
  26. <p>this should take moscow</p>
  27. }
  28. </div>