CaffGeek/MBACNationals

View on GitHub
Web.Admin/AdminApp/Views/Reports/Averages.html

Summary

Maintainability
Test Coverage
<div class="row">
    <div class="col-md-12">
        <h4>Averages</h4>
        <input data-ng-model="filter.Name" type="text" placeholder="Filter by Name" autofocus>
        <table data-exportable="Averages" class=" table table-striped table-condensed table-hover">
            <thead>
                <tr>
                    <th>Participant</th>
                    <th>Province</th>
                    <th>Tournament<br/>Pinfall</th>
                    <th>Tournament<br/>Games</th>
                    <th>League<br/>Pinfall</th>
                    <th>League<br/>Games</th>
                    <th>Average</th>
                    <th>Type</th>
                </tr>
            </thead>
            <tbody data-ng-repeat="participant in model.Participants | orderBy:'Name' | filter:{ Name: filter.Name } | filter: bowlerFilter" data-ng-if="participant.Name">
                <tr>
                    <td>{{participant.Name}}</td>
                    <td>{{participant.Province}}</td>
                    <td>{{participant.TournamentPinfall}}</td>
                    <td>{{participant.TournamentGames}}</td>
                    <td>{{participant.LeaguePinfall}}</td>
                    <td>{{participant.LeagueGames}}</td>
                    <td>{{participant.Average}}</td>
                    <td>{{participant.IsAlternate ? 'Alternate' : participant.TeamName}}</td>
                </tr>
            </tbody>
        </table>
    </div>
</div>