- Timestamp:
- 05/11/16 16:50:29 (9 years ago)
- Location:
- branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFile.cshtml
r13841 r13844 153 153 154 154 <!-- Progress--> 155 155 156 156 <h4 id="result" style="display:none">Start uploading experiment...</h4> 157 157 <div class="progress" id="progdiv" style="display:none"> … … 168 168 <p style="text-align:center;font-style:italic">Changed parameters get saved but child distribution and task priority get lost in the process.</p> 169 169 <form asp-controller="Job" 170 asp-action="saveToFile"170 asp-action="saveToFile" 171 171 method="post"> 172 172 <div class="col-sm-6" … … 191 191 <h5>Directory: /HiveChanged</h5> 192 192 </div> 193 <button class="btn btn-success btn-block" type="submit" 193 <button class="btn btn-success btn-block" type="submit" 194 194 style="margin:10px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 195 195 text-shadow:2px 2px black;"> 196 Save to file</button> 196 Save to file 197 </button> 197 198 </form> 198 199 </div> … … 202 203 </div> 203 204 <!-- Side scrolling menu--> 204 <nav 205 class="col-md-2" id="scrolly"> 205 <nav class="col-md-2" id="scrolly"> 206 206 <ul class="nav nav-pills nav-stacked" 207 207 data-spy="affix" … … 219 219 <li><a onclick="shower()" href="#tasks"><i class="fa fa-eye"></i> Show all tasks</a></li> 220 220 <li><a onclick="collapser()" href="#tasks"><i class="fa fa-eye-slash"></i> Hide all tasks</a></li> 221 221 222 222 } 223 223 <li><a href="#finish"><i class="fa fa-flag-checkered"></i> Add to Hive or save to file</a></li> 224 <li> 225 <div class="alert alert-success" id="success-alert"> 226 <span id="succText"></span> 227 </div> 228 <p id="logs"> 229 230 </p> 231 </li> 224 232 </ul> 233 225 234 </nav> 226 235 227 236 <script src="~/js/hubs/progresshubber.js"></script> 228 237 229 238 <script> 230 239 showScrolly = function () { … … 246 255 }); 247 256 $('body').click(function () { 248 if ($("#ctasks").length > 0) 257 if ($("#ctasks").length > 0) 249 258 $("#ctasks").html("<i class='fa fa-sitemap'></i> Tasks (" + $('a[href^="#collapseExample"]').length + ")"); 250 259 }); 251 260 $('body').click(); 252 261 253 262 }); 254 263 collapser = function () { -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFilePartials/_BatchRun.cshtml
r13841 r13844 26 26 <h4 id="tasks"> 27 27 Repeats: 28 <input type="number" 28 <input type="number" 29 29 class="form-control" 30 30 style="width:80px;display:initial" 31 min="1" 31 min="1" 32 32 value="@Model.SelectedBatchRun.Repetitions" 33 33 onchange="changeRepit([],this.value,@randy)" /> 34 34 x 35 35 36 36 </h4> … … 45 45 </p> 46 46 <div id="childs@(randy)"> 47 @for (var k = 0; k < Model.SelectedBatchRun.Repetitions; k++) 48 { 49 @if (Model.SelectedBatchRun.Optimizer is HeuristicLab.Optimization.IAlgorithm) 47 48 @if (Model.SelectedBatchRun.Optimizer is HeuristicLab.Optimization.IAlgorithm) 50 49 { 51 50 @Html.Partial("OpenFilePartials/_AlgorithmSmall", 52 51 new HeuristicLab.Clients.Hive.WebJobManager.Models.AlgorithmContainer( 53 52 ((HeuristicLab.Optimization.IAlgorithm)Model.SelectedBatchRun.Optimizer), 54 53 new List<int[]>(), 55 new int[] { 0, k},54 new int[] { 0, 0 }, 56 55 randomizer)); 57 56 … … 59 58 else if (Model.SelectedBatchRun.Optimizer is HeuristicLab.Optimization.BatchRun) 60 59 { 61 60 @Html.Partial("OpenFilePartials/_BatchRunSmall", 62 61 new HeuristicLab.Clients.Hive.WebJobManager.Models.BatchRunContainer( 63 62 ((HeuristicLab.Optimization.BatchRun)Model.SelectedBatchRun.Optimizer), 64 63 new List<int[]>(), 65 new int[] { 0, k},64 new int[] { 0, 0 }, 66 65 randomizer)); 67 66 … … 69 68 else if (Model.SelectedBatchRun.Optimizer is HeuristicLab.Optimization.Experiment) 70 69 { 71 70 @Html.Partial("OpenFilePartials/_ExperimentSmall", 72 71 new HeuristicLab.Clients.Hive.WebJobManager.Models.ExperimentContainer( 73 72 ((HeuristicLab.Optimization.Experiment)Model.SelectedBatchRun.Optimizer), 74 73 new List<int[]>(), 75 new int[] { 0, k},74 new int[] { 0, 0 }, 76 75 randomizer)); 77 76 78 77 } 79 } 78 80 79 </div> 81 80 </div> -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFilePartials/_BatchRunSmall.cshtml
r13841 r13844 18 18 aria-expanded="false" 19 19 aria-controls="collapseExample@(randombr)" 20 20 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); 21 21 text-shadow:2px 2px black;"> 22 22 @Model.batch.Name … … 24 24 25 25 </p> 26 <div class="collapse" 27 id="collapseExample@(randombr)" 28 style="margin-left:10px;margin-right:10px;margin-top:-10px " 29 30 > 31 <img src="~/img/accoladebatch.png" 26 <div class="collapse" 27 id="collapseExample@(randombr)" 28 style="margin-left:10px;margin-right:10px;margin-top:-10px "> 29 <img src="~/img/accoladebatch.png" 32 30 style="width:100%" /> 33 31 34 <div class="panel panel-warning" 32 <div class="panel panel-warning" 35 33 style="border-color:#f6cd94!important; border-width:2px!important; 36 34 box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); … … 57 55 58 56 Distribute child tasks 59 <input type="checkbox" 60 checked 61 data-toggle="toggle" 57 <input type="checkbox" 58 checked 59 data-toggle="toggle" 62 60 data-onstyle="warning" 63 61 onchange="toggleChild(@builder, @randombr)" /> 64 62 65 63 66 64 </p> 67 <div class="btn-group" 65 <div class="btn-group" 68 66 style="text-shadow:none"> 69 67 … … 72 70 class="btn btn-info dropdown-toggle" 73 71 data-toggle="dropdown" 74 aria-haspopup="true" 72 aria-haspopup="true" 75 73 aria-expanded="false"> 76 74 Normal <span class="caret"></span> … … 85 83 </div> 86 84 <div id="childs@(randombr)"> 87 @ for (var k = 0; k < Model.batch.Repetitions; k++)85 @if (Model.batch.Optimizer is HeuristicLab.Optimization.IAlgorithm) 88 86 { 89 @if (Model.batch.Optimizer is HeuristicLab.Optimization.IAlgorithm) 90 { 91 @Html.Partial("OpenFilePartials/_AlgorithmSmall", 87 @Html.Partial("OpenFilePartials/_AlgorithmSmall", 92 88 new HeuristicLab.Clients.Hive.WebJobManager.Models.AlgorithmContainer( 93 89 ((HeuristicLab.Optimization.IAlgorithm)Model.batch.Optimizer), 94 90 Model.depth.ToList(), 95 new int[] { 0, k},91 new int[] { 0, 0 }, 96 92 Model.randy)) 97 93 98 99 100 101 94 } 95 else if (Model.batch.Optimizer is HeuristicLab.Optimization.BatchRun) 96 { 97 @Html.Partial("OpenFilePartials/_BatchRunSmall", 102 98 new HeuristicLab.Clients.Hive.WebJobManager.Models.BatchRunContainer( 103 99 ((HeuristicLab.Optimization.BatchRun)Model.batch.Optimizer), 104 100 Model.depth.ToList(), 105 new int[] { 0, k},101 new int[] { 0, 0 }, 106 102 Model.randy)) ; 107 103 108 109 110 111 104 } 105 else if (Model.batch.Optimizer is HeuristicLab.Optimization.Experiment) 106 { 107 @Html.Partial("OpenFilePartials/_ExperimentSmall", 112 108 new HeuristicLab.Clients.Hive.WebJobManager.Models.ExperimentContainer( 113 109 ((HeuristicLab.Optimization.Experiment)Model.batch.Optimizer), 114 110 Model.depth.ToList(), 115 new int[] { 0, k},111 new int[] { 0, 0 }, 116 112 Model.randy)) ; 117 113 118 }119 114 } 115 120 116 </div> 121 117 </div>
Note: See TracChangeset
for help on using the changeset viewer.