Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFilePartials/_Experiment.cshtml @ 17578

Last change on this file since 17578 was 13841, checked in by jlodewyc, 9 years ago

#2582 More parameter datatypes, splitting fileopening service, approving users, reopen last file, change name tasks and repetitions

File size: 2.9 KB
Line 
1@model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.FileOpeningViewModel
2@{System.Random randomizer = new Random();
3    int randy = randomizer.Next(50000); }
4
5<!-- Partial for displaying an experiment file-->
6<div style="margin-left:20px;margin-right:20px; ">
7    <div class="row" style="text-align:center">
8        @Model.message
9    </div>
10    <div class="row" style="text-align:center">
11        <h1
12            >
13            <span class="label label-danger"
14                  style="text-shadow:2px 2px black;">Experiment:
15                <span id="nameCarrier@(randy)">
16                     @Model.SelectedTask.ItemTask.Name
17                </span>
18            </span>
19        </h1>
20        <p>
21            <input type="text"
22                   style="width:50%;display:initial; background-color:transparent;text-align:center"
23                   onchange="changeName([],this.value,@randy)"
24                   value="@Model.SelectedTask.ItemTask.Name" />
25        </p>
26    </div>
27    <h4 id="tasks">
28        Children: @Model.SelectedExperiment.Optimizers.Count
29    </h4>
30    <p class="text-center">
31        Distribute child tasks
32        <input type="checkbox" checked data-toggle="toggle" data-onstyle="danger"
33               onchange="toggleChild([], @randy)" />
34       
35    </p>
36    <div id="childs@(randy)">
37        @for (var i = 0; i < Model.SelectedExperiment.Optimizers.Count; i++)
38        {
39            @if (Model.SelectedExperiment.Optimizers[i] is HeuristicLab.Optimization.IAlgorithm)
40            {
41                @Html.Partial("OpenFilePartials/_AlgorithmSmall",
42                    new HeuristicLab.Clients.Hive.WebJobManager.Models.AlgorithmContainer(
43                    ((HeuristicLab.Optimization.IAlgorithm)Model.SelectedExperiment.Optimizers[i]),
44                    new List<int[]>(),
45                    new int[] { i, 0 },
46                    randomizer));
47
48            }
49            else if (Model.SelectedExperiment.Optimizers[i] is HeuristicLab.Optimization.BatchRun)
50            {
51                @Html.Partial("OpenFilePartials/_BatchRunSmall",
52                    new HeuristicLab.Clients.Hive.WebJobManager.Models.BatchRunContainer(
53                    ((HeuristicLab.Optimization.BatchRun)Model.SelectedExperiment.Optimizers[i]),
54                    new List<int[]>(),
55                    new int[] { i, 0 },
56                    randomizer)) ;
57
58            }
59            else if (Model.SelectedExperiment.Optimizers[i] is HeuristicLab.Optimization.Experiment)
60            {
61                @Html.Partial("OpenFilePartials/_ExperimentSmall",
62                    new HeuristicLab.Clients.Hive.WebJobManager.Models.ExperimentContainer(
63                    ((HeuristicLab.Optimization.Experiment)Model.SelectedExperiment.Optimizers[i]),
64                    new List<int[]>(),
65                    new int[] { i, 0 },
66                    randomizer)) ;
67
68            }
69
70        }
71    </div>
72</div>
Note: See TracBrowser for help on using the repository browser.