1 | @model HeuristicLab.Clients.Hive.WebJobManager.Models.AlgorithmContainer
|
---|
2 | @{int randomal = Model.randy.Next(50000);
|
---|
3 | var builder = "[";
|
---|
4 | foreach (var arr in Model.depth)
|
---|
5 | {
|
---|
6 | builder += "[" + String.Join(",", arr) + "],";
|
---|
7 | }
|
---|
8 | builder += "]";
|
---|
9 | }
|
---|
10 | <!-- Partial for displaying a small version of an algorithm -->
|
---|
11 |
|
---|
12 | <p class="text-center">
|
---|
13 | <a class="btn btn-primary"
|
---|
14 | id="nameCarrier@(randomal)"
|
---|
15 | data-toggle="collapse"
|
---|
16 | href="#collapseExample@(randomal)"
|
---|
17 | aria-expanded="false"
|
---|
18 | aria-controls="collapseExample@(randomal)"
|
---|
19 | style="margin:10px;margin-bottom:0; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
---|
20 | text-shadow:2px 2px black;">
|
---|
21 | @Model.algo.Name
|
---|
22 | </a>
|
---|
23 |
|
---|
24 | </p>
|
---|
25 | <div class="collapse"
|
---|
26 | id="collapseExample@(randomal)"
|
---|
27 | style="margin-left:10px;margin-right:10px;margin-top:-10px">
|
---|
28 |
|
---|
29 | <img src="~/img/accoladealg.png" style="width:100%;" />
|
---|
30 |
|
---|
31 | <div class="panel panel-primary"
|
---|
32 | style="border-width:2px!important;
|
---|
33 | box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
---|
34 | text-shadow:none">
|
---|
35 | <div class="panel-heading panel-primary text-center">
|
---|
36 | <p>
|
---|
37 | <input type="text"
|
---|
38 | class="form-control"
|
---|
39 | style="width:50%;display:initial; background-color:transparent; color:white;text-align:center"
|
---|
40 | onchange="changeName(@builder,this.value,@randomal)"
|
---|
41 | value="@Model.algo.Name" />
|
---|
42 | </p>
|
---|
43 | <p>@Model.algo.Description</p>
|
---|
44 |
|
---|
45 | <div class="btn-group"
|
---|
46 | style="text-shadow:none">
|
---|
47 | <button type="button"
|
---|
48 | id="prior@(randomal)"
|
---|
49 | class="btn btn-info dropdown-toggle"
|
---|
50 | data-toggle="dropdown"
|
---|
51 | aria-haspopup="true" aria-expanded="false">
|
---|
52 | Normal <span class="caret"></span>
|
---|
53 | </button>
|
---|
54 | <ul class="dropdown-menu">
|
---|
55 | <li><a onclick="changePriority(@builder,0,@randomal)">Low</a></li>
|
---|
56 | <li><a onclick="changePriority(@builder,1,@randomal)">Normal</a></li>
|
---|
57 | <li><a onclick="changePriority(@builder,2,@randomal)">Urgent</a></li>
|
---|
58 | <li><a onclick="changePriority(@builder,3,@randomal)">Critical</a></li>
|
---|
59 | </ul>
|
---|
60 | </div>
|
---|
61 | </div>
|
---|
62 | <h4>Algorithm parameters</h4>
|
---|
63 | <table class="table table-condensed"
|
---|
64 | style="table-layout:fixed;overflow-wrap:break-word">
|
---|
65 | <thead>
|
---|
66 | <tr>
|
---|
67 | <th>Parameter</th>
|
---|
68 | <th>Value</th>
|
---|
69 | </tr>
|
---|
70 | </thead>
|
---|
71 | <tbody>
|
---|
72 | @foreach (var par in Model.algo.Parameters.OrderBy(x => x.Name))
|
---|
73 | {
|
---|
74 | @Html.Partial("OpenFilePartials/DataPartials/DataMaster",
|
---|
75 | new HeuristicLab.Clients.Hive.WebJobManager.ViewModels.Jobs.DataPackageVM(par, builder, randomal, false))
|
---|
76 |
|
---|
77 | }
|
---|
78 | </tbody>
|
---|
79 | </table>
|
---|
80 | <hr style="border-color:gray" />
|
---|
81 | <h4>Problem parameters</h4>
|
---|
82 | <table class="table table-responsive card-block"
|
---|
83 | style="table-layout:fixed;overflow-wrap:break-word">
|
---|
84 | <thead>
|
---|
85 | <tr>
|
---|
86 | <th>Parameter</th>
|
---|
87 | <th>Value</th>
|
---|
88 | </tr>
|
---|
89 | </thead>
|
---|
90 | <tbody>
|
---|
91 | @foreach (var prob in Model.algo.Problem.Parameters.OrderBy(x => x.Name))
|
---|
92 | {
|
---|
93 | @Html.Partial("OpenFilePartials/DataPartials/DataMaster",
|
---|
94 | new HeuristicLab.Clients.Hive.WebJobManager.ViewModels.Jobs.DataPackageVM(prob, builder, randomal, true))
|
---|
95 |
|
---|
96 | }
|
---|
97 | </tbody>
|
---|
98 | </table>
|
---|
99 |
|
---|
100 |
|
---|
101 | </div>
|
---|
102 | </div> |
---|