Changeset 13712 for branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/Index.cshtml
- Timestamp:
- 03/16/16 16:57:46 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/Index.cshtml
r13689 r13712 18 18 </a> 19 19 </div> 20 <div class="row" style="padding:10px ">20 <div class="row" style="padding:10px; margin-right:0px!important"> 21 21 @if (Model.userJobs.Count == 0) 22 22 { … … 34 34 asp-controller="Job" 35 35 asp-action="Selected" 36 asp-route-id="@job.Id"> 37 @job.Name - @job.DateCreated 38 <span class="badge">@job.JobCount</span> 36 asp-route-id="@job.Id" 37 onclick="showLoader()"> 38 @job.Job.Name - @job.Job.DateCreated 39 <span class="badge">@job.Job.JobCount</span> 39 40 </a> 40 41 } … … 42 43 </div> 43 44 </div> 45 <p style="display:none" id="loader" class="text-center"> 46 <br /><br /><br /><br /><br /><br /><br /> 47 <i class="fa fa-cog fa-spin fa-5x" id="spinner"> 48 </i> 49 </p> 44 50 @if (Model.selectedJob != null) 45 51 { 46 <div class="col-sm-8" style="padding:5px; padding-left:10px;">52 <div class="col-sm-8" id="content" style="padding:5px; padding-left:10px;"> 47 53 <div class="row"> 48 54 <h2 style="padding-left:20px"> 49 @Model.selectedJob. Name55 @Model.selectedJob.Job.Name 50 56 <a onclick="popUpDelete()" 51 style="margin-bottom:10px;" 52 57 style="margin-bottom:10px;" 53 58 class='btn btn-danger'> 54 59 <span class="glyphicon glyphicon-trash" aria-hidden="true"></span> 55 60 </a> 56 <a style="display:none" 57 asp-action="Delete" 58 asp-route-id="@Model.selectedJob.Id" 59 asp-controller="Job" id="del" ></a> 61 <a style="display:none" 62 asp-action="Delete" 63 asp-route-id="@Model.selectedJob.Id" 64 asp-controller="Job" id="del" 65 onclick="showDeleter()"></a> 60 66 61 67 <script type="text/javascript"> … … 67 73 } 68 74 </script> 69 75 70 76 </h2> 71 77 <div class="col-sm-6" style="padding-left:30px"> 72 <p>Description: @Model.selectedJob. Description</p>73 <p>Resources: @Model.selectedJob. ResourceNames</p>74 <p>Created: @Model.selectedJob. DateCreated</p>75 <p>Owned by: @Model.selectedJob. OwnerUsername</p>78 <p>Description: @Model.selectedJob.Job.Description</p> 79 <p>Resources: @Model.selectedJob.Job.ResourceNames</p> 80 <p>Created: @Model.selectedJob.Job.DateCreated</p> 81 <p>Owned by: @Model.selectedJob.Job.OwnerUsername</p> 76 82 77 83 </div> 78 84 <div class="col-sm-6" style="padding-left:30px"> 79 <p>Calculating: @Model.selectedJob. CalculatingCount</p>80 <p>Finished: @Model.selectedJob. FinishedCount</p>85 <p>Calculating: @Model.selectedJob.Job.CalculatingCount</p> 86 <p>Finished: @Model.selectedJob.Job.FinishedCount</p> 81 87 </div> 82 88 83 89 </div> 84 90 <div class="row"> 85 <h3 style="padding-left:20px">@Model.lightJobTasks.Count Task@(Model.lightJobTasks != null && Model.lightJobTasks.Count != 1 ? "s" : "" )</h3> 86 @foreach (var task in Model.lightJobTasks) 91 <h3 style="padding-left:20px">Tasks</h3> 92 <script type="text/javascript"> 93 //TODO Globale variabele waar data per categorie in gestoken kan worden 94 </script> 95 @foreach (var task in Model.selectedJob.HiveTasks) 87 96 { 88 <table class="table " 89 style="margin-left:20px;"> 90 <thead> 91 <tr> 92 <th>@task</th> 93 </tr> 94 </thead> 95 <tbody> 96 <tr> 97 <td>Last update @task.LastTaskDataUpdate</td> 98 <td>State: @task.State</td> 99 100 </tr> 101 <tr> 102 <td>@task.ExecutionTime executed</td> 103 <td>Created: @task.DateCreated</td> 104 </tr> 105 </tbody> 106 </table> 97 @Html.Partial("SelectedJobPartials/_TaskPartial", 98 new HeuristicLab.Clients.Hive.WebJobManager.Models.HiveTaskContainer(task)) 107 99 108 100 } … … 111 103 } 112 104 } 105 <script type="text/javascript"> 106 function showLoader() { 107 document.getElementById("loader").style.display = ""; 108 document.getElementById("content").style.display = "none"; 109 } 110 function showDeleter() { 111 document.getElementById("loader").style.display = ""; 112 document.getElementById("content").style.display = "none"; 113 document.getElementById("spinner").className = "fa fa-trash-o fa-spin fa-5x"; 114 } 115 </script> 113 116 </div> 114 117 </div>
Note: See TracChangeset
for help on using the changeset viewer.