Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OaaS/HeuristicLab.Services.Optimization.Web/Views/Optimization/ProblemParameters.cshtml @ 8384

Last change on this file since 8384 was 8384, checked in by fschoepp, 12 years ago

#1888:

  • Created a project which contains the back-end controller for the Optimization WebSite
  • Added a WCF-back-end-controller which generates all available optimization problems (currently in-memory solution: PlaceholderControllerService.cs)
  • Created a WebRole using ASP.NET MVC 3 for the Optimization Web Site
  • WebSite authenticates users with the HeuristicLab.Authentication membership provider and database
  • WebSite crawls and displays all available optimization scenarios by using the WCF-back-end controller (test with: http://localhost:.../optimization)
File size: 1.3 KB
Line 
1@model HeuristicLab.Services.Optimization.ControllerService.Model.OptimizationScenario
2
3@{
4    ViewBag.Title = "ProblemParameters";
5}
6
7<h2>Adjust problem parameters:</h2>
8
9@using (Html.BeginForm()) {
10    @Html.ValidationSummary(true)
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    }
31    <p>
32        <input type="submit" value="Proceed to algorithm parameters" />
33    </p>
34    </fieldset>
35}
Note: See TracBrowser for help on using the repository browser.