Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/04/17 13:54:40 (7 years ago)
Author:
jkarder
Message:

#2743: worked on web app

  • added sorting functionality to some tables
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/jobs/jobs.cshtml

    r12778 r14820  
    3333                </div>
    3434                <div class="panel-body">
    35                     <table class="table table-hover table-condensed">
     35                    <table class="table table-hover table-condensed" ts-wrapper>
    3636                        <thead>
    3737                        <tr>
    3838                            <th>#</th>
    39                             <th>Job Name</th>
     39                            <th ts-criteria="Name">Job Name</th>
    4040                            @if (Request.IsAuthenticated && User.IsInRole(HiveRoles.Administrator)) {
    41                                 <th>Username</th>
     41                                <th ts-criteria="UserName">Username</th>
    4242                            }
    43                             <th>Date Created</th>
     43                            <th ts-criteria="DateCreated">Date Created</th>
    4444                            <th>Progress</th>
    4545                            <th></th>
     
    4747                        </thead>
    4848                        @if (Request.IsAuthenticated && User.IsInRole(HiveRoles.Administrator)) {
    49                             <tr ng-repeat="job in allUsersJobs">
     49                            <tr ng-repeat="job in allUsersJobs" ts-repeat>
    5050                                <td>{{$index + 1}}</td>
    5151                                <td>{{job.Name}}</td>
     
    9393                </div>
    9494                <div class="panel-body">
    95                     <table class="table table-hover table-condensed">
     95                    <table class="table table-hover table-condensed" ts-wrapper>
    9696                        <thead>
    9797                        <tr>
    9898                            <th>#</th>
    99                             <th>Job Name</th>
    100                             <th>Date Created</th>
    101                             <th>Date Completed</th>
    102                             <th>Tasks</th>
     99                            <th ts-criteria="Name">Job Name</th>
     100                            <th ts-criteria="DateCreated">Date Created</th>
     101                            <th ts-criteria="DateCompleted">Date Completed</th>
     102                            <th ts-criteria="TotalTasks|parseInt">Tasks</th>
    103103                            <th></th>
    104104                        </tr>
    105105                        </thead>
    106                         <tr ng-repeat="job in completedJobPage.Jobs">
     106                        <tr ng-repeat="job in completedJobPage.Jobs" ts-repeat>
    107107                            <td>{{($index + 1)+((completedJobCurPage-1)*(completedJobPageSize))}}</td>
    108108                            <td>{{job.Name}}</td>
Note: See TracChangeset for help on using the changeset viewer.