Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @{
- foreach (var item in Model.Criteriums)
- {
- if (item.FieldType == "GETAL")
- {
- <div style="width:20%">
- <div class="form-group" style="float:left;">
- <label for=@item.Description>@item.Description</label>
- <input type="number" name="@item.Description" class="form-control" id=@item.Description onchange="ChangeThisTextBox(@item.Description)">
- </div>
- </div>
- <div style="float:left; margin-left:40px;">
- <p>
- <label>@ViewBag.Tolerance</label> <br />
- <label id="@item.Description+min">@Convert.ToInt32(item.LowerValue)</label>/<label id="@item.Description+max">@Convert.ToInt32(item.UpperValue)</label> <br />
- </p>
- </div>
- <div style="float:left; margin-left:40px;">
- <p>
- <label>@ViewBag.Dimensions</label> <br />
- <label id="@item.Description+1">@item.Dimension</label>
- </p>
- </div>
- <div style="clear:both" ></div>
- }
- else if (item.FieldType == "TEKST")
- {
- <p>
- <div class="form-group">
- <label for=@item.Description>@item.Description</label>
- <input type="text" class="form-control" id=@item.Description>
- </div>
- </p>
- }
- else if (item.FieldType == "BOOLEAN")
- {
- <p> @item.Description</p>
- <div class="form-check">
- <label class="form-check-label">
- <input class="form-check-input" type="checkbox" value="" name="@item.Description" id="@item.Description+y" onchange="ThisTrue(this)">
- <label class="form-check-label">
- @ViewBag.Yes
- </label>
- </label>
- </div>
- <div class="form-check">
- <input class="form-check-input" type="checkbox" value="" id="@item.Description+n" onchange="ThisFalse(this)">
- <label class="form-check-label">
- @ViewBag.No
- </label>
- </div>
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement