- Timestamp:
- 08/20/12 13:00:30 (12 years ago)
- Location:
- branches/OaaS/HeuristicLab.Services.Optimization.Web/Views/Optimization
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS/HeuristicLab.Services.Optimization.Web/Views/Optimization/Index.cshtml
r8384 r8506 12 12 } 13 13 </ul> 14 15 <p>TSP</p> -
branches/OaaS/HeuristicLab.Services.Optimization.Web/Views/Optimization/ProblemParameters.cshtml
r8384 r8506 1 @model HeuristicLab.Services.Optimization.ControllerService.Model. OptimizationScenario1 @model HeuristicLab.Services.Optimization.ControllerService.Model.InputParameters 2 2 3 3 @{ … … 10 10 @Html.ValidationSummary(true) 11 11 <fieldset> 12 @foreach (var itm in Model.InputParameters) { 13 <div class="editor-label"> 14 @Html.Label(itm.Name, itm.Name) 15 </div> 16 <div class="editor-field"> 17 @switch(itm.Type) { 18 case HeuristicLab.Services.Optimization.ControllerService.Model.ParameterType.Decimal: 19 case HeuristicLab.Services.Optimization.ControllerService.Model.ParameterType.Integer: 20 @Html.Raw(Html.TextBoxFor(model => ((HeuristicLab.Services.Optimization.ControllerService.Model.DecimalValue)itm.Value).Value).ToString().Replace("Value", itm.Name)); 21 break; 22 case HeuristicLab.Services.Optimization.ControllerService.Model.ParameterType.Boolean: 23 //@Html.CheckBoxFor(model => itm.Value); 24 break; 25 default: 26 @Html.EditorFor(model => itm.Value, new { id = itm.Name }); 27 break; 28 } 29 </div> 30 } 12 @Html.EditorFor(model => Model) 31 13 <p> 32 14 <input type="submit" value="Proceed to algorithm parameters" />
Note: See TracChangeset
for help on using the changeset viewer.