Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 13844 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
RevLine 
[13689]1@model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.FileOpeningViewModel
[13712]2@{System.Random randomizer = new Random();
[13827]3    int randy = randomizer.Next(50000); }
[13733]4
[13827]5<!-- Partial for displaying an experiment file-->
[13733]6<div style="margin-left:20px;margin-right:20px; ">
[13689]7    <div class="row" style="text-align:center">
8        @Model.message
9    </div>
[13733]10    <div class="row" style="text-align:center">
[13735]11        <h1
[13754]12            >
[13733]13            <span class="label label-danger"
[13841]14                  style="text-shadow:2px 2px black;">Experiment:
15                <span id="nameCarrier@(randy)">
16                     @Model.SelectedTask.ItemTask.Name
17                </span>
[13733]18            </span>
[13689]19        </h1>
[13841]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>
[13689]26    </div>
[13733]27    <h4 id="tasks">
[13696]28        Children: @Model.SelectedExperiment.Optimizers.Count
29    </h4>
[13712]30    <p class="text-center">
[13735]31        Distribute child tasks
[13712]32        <input type="checkbox" checked data-toggle="toggle" data-onstyle="danger"
33               onchange="toggleChild([], @randy)" />
[13735]34       
[13712]35    </p>
36    <div id="childs@(randy)">
37        @for (var i = 0; i < Model.SelectedExperiment.Optimizers.Count; i++)
[13696]38        {
[13712]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));
[13689]47
[13712]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)) ;
[13689]57
[13712]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)) ;
[13696]67
[13712]68            }
69
[13689]70        }
[13712]71    </div>
[13689]72</div>
Note: See TracBrowser for help on using the repository browser.