1 | @using HeuristicLab.Core;
|
---|
2 |
|
---|
3 |
|
---|
4 | @model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.FileOpeningViewModel
|
---|
5 | @{System.Random randomizer = new Random();
|
---|
6 | int randy = randomizer.Next(50000); }
|
---|
7 |
|
---|
8 | <!-- Partial for opening an algorithm only file-->
|
---|
9 | <div style="margin-left:20px;margin-right:20px">
|
---|
10 | <div class="row" style="text-align:center">
|
---|
11 | @Model.message
|
---|
12 | </div>
|
---|
13 | <div class="row" style="text-align:center">
|
---|
14 | <h1>
|
---|
15 | <span class="label label-primary">Algorithm:<span id="nameCarrier@(randy)">@Model.SelectedTask.ItemTask.Name</span></span>
|
---|
16 | </h1>
|
---|
17 | <p>
|
---|
18 | <input type="text"
|
---|
19 | style="width:50%;display:initial; background-color:transparent;text-align:center"
|
---|
20 | onchange="changeName([],this.value,@randy)"
|
---|
21 | value="@Model.SelectedTask.ItemTask.Name" />
|
---|
22 | </p>
|
---|
23 | </div>
|
---|
24 |
|
---|
25 | <div class="row" id="algorithm">
|
---|
26 |
|
---|
27 | <div class="col">
|
---|
28 | <h4>Algorithm parameters</h4>
|
---|
29 | <table class="table table-condensed"
|
---|
30 | style="table-layout:fixed;overflow-wrap:break-word">
|
---|
31 | <thead>
|
---|
32 | <tr>
|
---|
33 | <th>Parameter</th>
|
---|
34 | <th>Value</th>
|
---|
35 | </tr>
|
---|
36 | </thead>
|
---|
37 | <tbody>
|
---|
38 | @foreach (var par in Model.SelectedAlgorithm.Parameters.OrderBy(x => x.Name))
|
---|
39 | {
|
---|
40 |
|
---|
41 | @Html.Partial("OpenFilePartials/DataPartials/DataMaster",
|
---|
42 | new HeuristicLab.Clients.Hive.WebJobManager.ViewModels.Jobs.DataPackageVM( par,"[]",0, false))
|
---|
43 | }
|
---|
44 | </tbody>
|
---|
45 | </table>
|
---|
46 | </div>
|
---|
47 |
|
---|
48 | </div>
|
---|
49 | <hr style="border-color:gray" />
|
---|
50 |
|
---|
51 | <div class="row" id="problem">
|
---|
52 | <div class="col">
|
---|
53 | <h4>Problem parameters</h4>
|
---|
54 | <table class="table table-condensed"
|
---|
55 | style="table-layout:fixed;overflow-wrap:break-word">
|
---|
56 | <thead>
|
---|
57 | <tr>
|
---|
58 | <th>Parameter</th>
|
---|
59 | <th>Value</th>
|
---|
60 | </tr>
|
---|
61 | </thead>
|
---|
62 | <tbody>
|
---|
63 | @foreach (var prob in Model.SelectedAlgorithm.Problem.Parameters.OrderBy(x => x.Name))
|
---|
64 | {
|
---|
65 | @Html.Partial("OpenFilePartials/DataPartials/DataMaster",
|
---|
66 | new HeuristicLab.Clients.Hive.WebJobManager.ViewModels.Jobs.DataPackageVM(prob, "[]", 0,true))
|
---|
67 |
|
---|
68 | }
|
---|
69 | </tbody>
|
---|
70 | </table>
|
---|
71 | </div>
|
---|
72 | </div>
|
---|
73 |
|
---|
74 |
|
---|
75 | </div> |
---|