Advertisement
Guest User

Untitled

a guest
Oct 31st, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1. @{
  2. foreach (var item in Model.Criteriums)
  3. {
  4. if (item.FieldType == "GETAL")
  5. {
  6. <div style="width:20%">
  7. <div class="form-group" style="float:left;">
  8. <label for=@item.Description>@item.Description</label>
  9. <input type="number" name="@item.Description" class="form-control" id=@item.Description onchange="ChangeThisTextBox(@item.Description)">
  10. </div>
  11. </div>
  12. <div style="float:left; margin-left:40px;">
  13. <p>
  14. <label>@ViewBag.Tolerance</label> <br />
  15. <label id="@item.Description+min">@Convert.ToInt32(item.LowerValue)</label>/<label id="@item.Description+max">@Convert.ToInt32(item.UpperValue)</label> <br />
  16. </p>
  17. </div>
  18. <div style="float:left; margin-left:40px;">
  19. <p>
  20. <label>@ViewBag.Dimensions</label> <br />
  21. <label id="@item.Description+1">@item.Dimension</label>
  22. </p>
  23. </div>
  24. <div style="clear:both" ></div>
  25.  
  26. }
  27. else if (item.FieldType == "TEKST")
  28. {
  29. <p>
  30. <div class="form-group">
  31. <label for=@item.Description>@item.Description</label>
  32. <input type="text" class="form-control" id=@item.Description>
  33. </div>
  34. </p>
  35. }
  36. else if (item.FieldType == "BOOLEAN")
  37. {
  38. <p> @item.Description</p>
  39. <div class="form-check">
  40. <label class="form-check-label">
  41. <input class="form-check-input" type="checkbox" value="" name="@item.Description" id="@item.Description+y" onchange="ThisTrue(this)">
  42. <label class="form-check-label">
  43. @ViewBag.Yes
  44. </label>
  45. </label>
  46. </div>
  47. <div class="form-check">
  48. <input class="form-check-input" type="checkbox" value="" id="@item.Description+n" onchange="ThisFalse(this)">
  49. <label class="form-check-label">
  50. @ViewBag.No
  51. </label>
  52. </div>
  53. }
  54. }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement