Changeset 13844 for branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFilePartials
- Timestamp:
- 05/11/16 16:50:29 (9 years ago)
- Location:
- branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFilePartials
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.