Changeset 13827 for branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/Index.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/Index.cshtml
r13754 r13827 1 1 @using HeuristicLab.Clients.Hive.WebJobManager.ViewModels 2 2 @model JobViewModel 3 4 <!-- Displays the job manager overview --> 5 3 6 <div id="userId" style="display:none">@ViewBag.SessionId</div> 4 7 <div> 8 <!-- Main nav menu--> 5 9 @Html.Partial("Navbar", new NavbarViewModel("Job")) 6 10 11 <!-- Job menu--> 7 12 <ul class="nav nav-pills nav-justified"> 8 13 <li role="presentation" … … 38 43 39 44 } 40 else { 45 else 46 {<!-- Display side menu containing jobs. --> 41 47 <div class="col-sm-4"> 42 48 <div class="btn-group-vertical btn-block"> … … 78 84 style="padding:5px; padding-left:10px;"> 79 85 @if (Model.selectedJob != null) 80 { 86 { <!-- A job has been selected by the user, load info into view --> 81 87 <div class="panel panel-default" 82 88 style="border-width:2px!important;padding:17px; … … 84 90 <div class="row"> 85 91 <h2 style="padding-left:20px"> 92 <!-- Header of the job (title and delete button) --> 86 93 @Model.selectedJob.Job.Name 87 94 <a onclick="popUpDelete()" … … 93 100 Delete job 94 101 </a> 95 <a style="display:none; " 102 <!-- HIDDEN BUTTON FOR ASP ACTION --> 103 <a style="display:none; " 96 104 asp-action="Delete" 97 105 asp-route-id="@Model.selectedJob.Id" … … 100 108 101 109 <script type="text/javascript"> 102 function popUpDelete() { 110 function popUpDelete() {//Quick inline popup with hidden asp button 103 111 if (confirm("Are you sure you want to delete this job?") == true) { 104 112 document.getElementById("del").click(); … … 110 118 </h2> 111 119 <div class="col-sm-6" style="padding-left:30px"> 120 <!-- Information of the job --> 112 121 <p>Description: @Model.selectedJob.Job.Description</p> 113 122 <p>Resources: @Model.selectedJob.Job.ResourceNames</p> … … 138 147 <div class="row" style="text-align:center"> 139 148 @Html.Partial("_Graphlegend") 149 <!-- Main graph giving overview of all the jobs--> 140 150 <div id="graphMain" style="width:100%;height:0px"> 141 151 … … 151 161 </h3> 152 162 @foreach (var task in Model.selectedJob.HiveTasks) 153 { 163 {<!--Display all child jobs recursively --> 154 164 @Html.Partial("SelectedJobPartials/_TaskPartial", 155 165 new HeuristicLab.Clients.Hive.WebJobManager.Models.HiveTaskContainer(task)) … … 164 174 } 165 175 <script type="text/javascript"> 166 function showLoader() { 176 function showLoader() {//Shows load spinner 167 177 document.getElementById("content").style.display = "none"; 168 178 document.getElementById("loader").style.display = ""; 169 179 170 180 } 171 function showDeleter() { 181 function showDeleter() {//Shows delete spinner 172 182 document.getElementById("content").style.display = "none"; 173 183 document.getElementById("loader").style.display = "";
Note: See TracChangeset
for help on using the changeset viewer.