Changeset 13827 for branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFile.cshtml
- Timestamp:
- 05/03/16 17:13:50 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFile.cshtml
r13754 r13827 3 3 @model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.FileOpeningViewModel 4 4 5 5 <!-- Displays the contents of a file --> 6 <!-- Another body used for the side scroller menu--> 6 7 <body id="top" 7 8 class="row" … … 12 13 style="margin-bottom:500px;margin-left:1px;margin-right:1px;"> 13 14 <div id="userId" style="display:none">@ViewBag.SessionId</div> 15 <!-- Main nav menu --> 14 16 @Html.Partial("Navbar", new HeuristicLab.Clients.Hive.WebJobManager.ViewModels.NavbarViewModel("Job")) 15 17 18 <!-- Job menu--> 16 19 <ul class="nav nav-pills nav-justified"> 17 20 <li role="presentation" … … 30 33 </li> 31 34 </ul> 35 <!-- Back button --> 32 36 <div class="row" 33 37 style="margin-left:20px"> … … 38 42 </a> 39 43 </div> 40 44 <!-- Check model to select right partial, partial handles all subloading --> 41 45 <div class="col-md-9"> 42 46 @if (Model.SelectedAlgorithm != null) … … 55 59 56 60 } 57 61 <!-- Main menu for job creation --> 58 62 <hr style="border-color:gray; margin-top:50px" /> 59 <div id="finish" 60 style="text-align:center"> 61 <h2> 62 Hive job information 63 </h2> 64 <div class="row" 65 style="margin-bottom:20px"> 66 67 <div class="col-sm-6" 68 style="text-align:right"> 69 <h5>Job name</h5> 70 </div> 71 <div class="col-sm-6" 72 style="text-align:left"> 73 <div class="form-group"> 74 <div class="input-group"> 75 <input type="text" 76 class="form-control" 77 name="jname" 78 id="jname" 79 placeholder="Job name"> 80 </div> 63 <div class="row"> 64 <div id="finish" class="col-sm-8" 65 style="text-align:center; border-right:1px solid"> 66 <h2> 67 Hive job information 68 </h2> 69 <div class="row" 70 style="margin-bottom:20px"> 71 72 <div class="col-sm-6" 73 style="text-align:right"> 74 <h5>Job name</h5> 75 </div> 76 <div class="col-sm-6" 77 style="text-align:left"> 78 <div class="form-group"> 79 <div class="input-group"> 80 <input type="text" 81 class="form-control" 82 name="jname" 83 id="jname" 84 placeholder="Job name"> 85 </div> 86 </div> 87 </div> 88 </div> 89 <div class="row" 90 style="margin-bottom:20px"> 91 <div class="col-sm-6" 92 style="text-align:right"> 93 <h5> 94 Resources (optional) 95 </h5> 96 </div> 97 <div class="col-sm-6" 98 style="text-align:left"> 99 <div class="form-group"> 100 <div class="input-group"> 101 <input type="text" 102 class="form-control" 103 name="jresource" 104 id="jresource" 105 placeholder="(seperate with ;)"> 106 </div> 107 </div> 108 </div> 109 </div> 110 111 <div class="row"> 112 <h5 class="col-sm-6" 113 style="text-align:right;margin-top:20px"> 114 Set global job priority 115 </h5> 116 <div class="col-sm-6"> 117 <div class="btn-group pull-left" 118 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); 119 text-shadow:2px 2px black;"> 120 <button type="button" 121 id="prior" 122 class="btn btn-info dropdown-toggle" 123 data-toggle="dropdown" 124 aria-haspopup="true" aria-expanded="false"> 125 Normal <span class="caret"></span> 126 </button> 127 <ul class="dropdown-menu" 128 style="text-shadow:none"> 129 <li><a onclick="changePriority([],0,'')">Low</a></li> 130 <li><a onclick="changePriority([],1,'')">Normal</a></li> 131 <li><a onclick="changePriority([],2,'')">Urgent</a></li> 132 <li><a onclick="changePriority([],3,'')">Critical</a></li> 133 </ul> 134 </div> 135 </div> 136 </div> 137 138 <!-- adding the job to hive and show progress bar --> 139 <a class="btn btn-lg btn-success" 140 id="fakehiveadd" 141 onclick="addtoHive()" 142 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); 143 text-shadow:2px 2px black;"> 144 Add this job to Hive 145 </a> 146 <!-- HIDDEN BUTTON FOR ASP ACTION --> 147 <a class="btn btn-success " 148 id="realhiveadd" 149 asp-controller="Job" 150 asp-action="AddToHive" 151 style="display:none"></a> 152 153 <!-- Progress--> 154 155 <h4 id="result" style="display:none">Start uploading experiment...</h4> 156 <div class="progress" id="progdiv" style="display:none"> 157 158 <div class="progress-bar progress-bar-success progress-bar-striped active" role="progressbar" 159 id="progress" 160 aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width:10%"> 161 81 162 </div> 82 163 </div> 83 164 </div> 84 <div class="row" 85 style="margin-bottom:20px"> 86 <div class="col-sm-6" 87 style="text-align:right"> 88 <h5> 89 Resources (optional) 90 </h5> 91 </div> 92 <div class="col-sm-6" 93 style="text-align:left"> 94 <div class="form-group"> 95 <div class="input-group"> 96 <input type="text" 97 class="form-control" 98 name="jresource" 99 id="jresource" 100 placeholder="(seperate with ;)"> 101 </div> 102 </div> 103 </div> 104 </div> 105 106 <div class="row"> 107 <h5 class="col-sm-6" 108 style="text-align:right;margin-top:20px"> 109 Set global job priority 110 </h5> 111 <div class="col-sm-6"> 112 <div class="btn-group pull-left" 113 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); 165 <div class="col-sm-4"> 166 <h4>Save to file</h4> 167 <form asp-controller="Job" 168 asp-action="saveToFile" 169 method="post"> 170 <div class="col-sm-6" 171 style="text-align:right"> 172 <h5>File name</h5> 173 </div> 174 <div class="col-sm-6" 175 style="text-align:left"> 176 <div class="form-group"> 177 <div class="input-group"> 178 <input type="text" 179 class="form-control" 180 name="fname" 181 id="fname" 182 required 183 placeholder="File name"> 184 </div> 185 </div> 186 </div> 187 <div class="row" 188 style="text-align:center"> 189 <h5>Directory: /HiveChanged</h5> 190 </div> 191 <button class="btn btn-success btn-block" type="submit" 192 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); 114 193 text-shadow:2px 2px black;"> 115 <button type="button" 116 id="prior" 117 class="btn btn-info dropdown-toggle" 118 data-toggle="dropdown" 119 aria-haspopup="true" aria-expanded="false"> 120 Normal <span class="caret"></span> 121 </button> 122 <ul class="dropdown-menu" 123 style="text-shadow:none"> 124 <li><a onclick="changePriority([],0,'')">Low</a></li> 125 <li><a onclick="changePriority([],1,'')">Normal</a></li> 126 <li><a onclick="changePriority([],2,'')">Urgent</a></li> 127 <li><a onclick="changePriority([],3,'')">Critical</a></li> 128 </ul> 129 </div> 130 </div> 131 </div> 132 133 134 <a class="btn btn-lg btn-success" 135 id="fakehiveadd" 136 onclick="addtoHive()" 137 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); 138 text-shadow:2px 2px black;"> 139 Add this job to Hive 140 </a> 141 142 143 144 <a class="btn btn-success " id="realhiveadd" asp-controller="Job" asp-action="AddToHive" style="display:none"></a> 145 <h4 id="result" style="display:none">Start uploading experiment...</h4> 146 <div class="progress" id="progdiv" style="display:none"> 147 148 <div class="progress-bar progress-bar-success progress-bar-striped active" role="progressbar" 149 id="progress" 150 aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width:10%"> 151 152 </div> 194 Save to file</button> 195 </form> 153 196 </div> 154 197 </div> 155 198 156 199 157 158 159 200 </div> 201 <!-- Side scrolling menu--> 160 202 <nav style="margin-top:50px; " 161 203 class="col-md-2" id="scrolly"> … … 166 208 <li><a href="#top"><i class="fa fa-angle-up"></i> Top</a></li> 167 209 @if (Model.SelectedAlgorithm != null) 168 { 210 {//Algortihm loaded 169 211 <li><a href="#algorithm">Algorithm parameters</a></li> 170 212 <li><a href="#problem">Problem parameters</a></li> 171 213 } 172 214 else 173 { 215 {//batch run or experiment 174 216 <li><a id="ctasks" href="#tasks">Child tasks </a></li> 175 217 <li><a onclick="shower()" href="#tasks"><i class="fa fa-eye"></i> Show all tasks</a></li> … … 210 252 collapser = function () { 211 253 $('.collapse').collapse('hide'); 212 254 //closes every collapse 213 255 } 214 256 shower = function () { 215 257 $('.collapse').collapse('show'); 216 258 //opens every collapse 217 259 } 218 260 </script>
Note: See TracChangeset
for help on using the changeset viewer.