Free cookie consent management tool by TermsFeed Policy Generator

source: branches/1888_OaaS/HeuristicLab.Services.Optimization.Web/Views/Experiment/Index.cshtml

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

#1888:

  • Added an Update / GetExperiment... methods to the controller for updating and querying experiments.
  • The AlgorithmConverter class now properly converts from/to JSON format.
  • Integrated backbone js as MVC provider for JavaScript + jquery.
  • Added experiment.model.js + experiment.view.js + experiment.controller.js containing the MVC impl. for the Experiment pages.
  • Added new methods to the ExperimentController usable by the backbone js model implementation.
  • Added the experiment dialog from HL 3.3.7 (variate experiment parameters). It's capable of variating the algorithm parameters.
File size: 1.9 KB
Line 
1@model HeuristicLab.Services.Optimization.Web.Models.ExperimentViewModel
2
3@{
4    ViewBag.Title = "Experiments";
5}
6
7<h2>Build your experiment:</h2>
8@using (Html.BeginForm("SaveExperiment", "Experiment"))
9{
10  <fieldset>
11    <legend>Create Template Experiment:</legend>
12   
13    <div class="editor-label">
14      <label for="name">Experiment Template Name:</label>
15    </div>
16
17    <div class="editor-field">
18      <input id="name" name="Name" type="text" value="My Experiment" />
19    </div>
20
21    <div>
22    <p>Experiment Tree:</p>
23    </div>
24
25    <div id="container" class="treeStyle">
26      <ul>
27        <li id="root">Experiment</li>
28      </ul>
29    </div>
30    <input style="margin-top:5px;"  name="RemoveNode" type="button" value="Remove" disabled="disabled" />
31
32    <div id="scenarios">
33    @if (Model.Scenarios.Count > 0) {
34        <p>Choose an algorithm:</p>
35        foreach (var scen in Model.Scenarios) {
36            <div class="dragables" id="@scen"><p>@scen</p></div>
37        }       
38       
39    }
40        <div class="clearer"/>
41    </div>
42   
43    <div id="experiments">
44    @if (Model.Scenarios.Count > 0) {
45        <p>Choose from your stored experiments:</p>
46        foreach (var scen in Model.Experiments) {
47            <div class="dragables" id="@scen"><p>@scen</p></div>
48        }       
49       
50    }   
51        <div class="clearer"/>
52    </div>
53    <input type="submit" value="Save experiment" class="submitter" />
54    <img src="@Url.Content("~/Content/hl/images/ajax-loader.gif")" alt="Loading animation" class="loader unseen" />
55  </fieldset>
56    <div><p id="jsonMessage"></p></div>
57}
58
59
60@section submenu {
61    <ul>
62        <li class="selected">@Html.ActionLink("Build", "New")</li>   
63        <li>@Html.ActionLink("Edit", "NewEdit")</li>
64        <li>@Html.ActionLink("Status", "Index", "Status")</li>
65    </ul>
66}
Note: See TracBrowser for help on using the repository browser.