Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/11/16 12:56:12 (9 years ago)
Author:
jlodewyc
Message:

#2582 Implemented uploading

Location:
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager

    • Property svn:ignore set to
      project.lock.json
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/Index.cshtml

    r13656 r13689  
    1212    </div>
    1313    <div class="row" style="margin:10px">
    14         <a class="btn btn-success btn-lg btn-block"
     14        <a class="btn btn-info btn-lg btn-block"
    1515           asp-controller="Job"
    16            asp-action="Upload">
    17             Add job
     16           asp-action="Uploads">
     17            Uploads
    1818        </a>
    1919    </div>
     
    4646                <div class="col-sm-8" style="padding:5px; padding-left:10px;">
    4747                    <div class="row">
    48                         <h2 style="padding-left:20px"> @Model.selectedJob.Name
    49                             <a asp-action="Delete" asp-route-id="@Model.selectedJob.Id" asp-controller="Job" style="margin-bottom:10px;" id="del" class='btn btn-danger'>
     48                        <h2 style="padding-left:20px">
     49                            @Model.selectedJob.Name
     50                            <a onclick="popUpDelete()"
     51                               style="margin-bottom:10px;"
     52                               
     53                               class='btn btn-danger'>
    5054                                <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
    5155                            </a>
    52 </h2>
     56                            <a style="display:none"
     57                               asp-action="Delete"
     58                               asp-route-id="@Model.selectedJob.Id"
     59                               asp-controller="Job" id="del"  ></a>
     60
     61                            <script type="text/javascript">
     62                                function popUpDelete() {
     63                                    if (confirm("Are you sure you want to delete this job?") == true) {
     64                                        document.getElementById("del").click();
     65                                    }
     66
     67                                }
     68                            </script>
     69           
     70                        </h2>
    5371                        <div class="col-sm-6" style="padding-left:30px">
    5472                            <p>Description: @Model.selectedJob.Description</p>
     
    5977                        </div>
    6078                        <div class="col-sm-6" style="padding-left:30px">
    61                             <p>Jobs: @Model.selectedJob.JobCount</p>
    6279                            <p>Calculating: @Model.selectedJob.CalculatingCount</p>
    6380                            <p>Finished: @Model.selectedJob.FinishedCount</p>
     
    6683                    </div>
    6784                    <div class="row">
    68                         <h3 style="padding-left:20px">@Model.jobTasks.Count Task@(Model.jobTasks != null && Model.jobTasks.Count != 1 ? "s" : "" )</h3>
    69                         @foreach (var task in Model.jobTasks)
     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)
    7087                        {
    71                             <p style="padding-left:30px" >
    72                                 Last update @task.LastTaskDataUpdate - @task.State - @task.ExecutionTime executed - created @task.DateCreated
    73                             </p>
     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>
     107
    74108                        }
    75109                    </div>
Note: See TracChangeset for help on using the changeset viewer.