Assignment list: Used number of candidates, removed number of needed candidates (Fixes #2142)

This commit is contained in:
Emanuel Schütze 2017-01-14 12:51:01 +01:00
parent 458a7cf7c4
commit 527f949968

View File

@ -214,13 +214,15 @@
<i class="fa text-danger pointer" ng-click="assignment.selected=!assignment.selected" <i class="fa text-danger pointer" ng-click="assignment.selected=!assignment.selected"
ng-class="assignment.selected ? 'fa-check-square-o' : 'fa-square-o'"></i> ng-class="assignment.selected ? 'fa-check-square-o' : 'fa-square-o'"></i>
</div> </div>
<!-- projector column --> <!-- projector column -->
<div class="col-xs-1 centered projector" os-perms="core.can_manage_projector"> <div class="col-xs-1 centered projector" os-perms="core.can_manage_projector">
<projector-button model="assignment", default-projector-id="defaultProjectorId"> <projector-button model="assignment", default-projector-id="defaultProjectorId">
</projector-button> </projector-button>
</div> </div>
<div class="no-projector-spacer" os-perms="!core.can_manage_projector"></div> <div class="no-projector-spacer" os-perms="!core.can_manage_projector"></div>
<!-- main contant column -->
<!-- main content column -->
<div class="col-xs-6 content"> <div class="col-xs-6 content">
<div class="title-col"> <div class="title-col">
<!-- title and phase --> <!-- title and phase -->
@ -307,8 +309,7 @@
<div style="width: 20%;" class="pull-right nobr optional centered"> <div style="width: 20%;" class="pull-right nobr optional centered">
<span class="badge" <span class="badge"
uib-tooltip="{{ assignment.assignment_related_users.length }} {{ 'Candidates' | translate }} uib-tooltip="{{ assignment.assignment_related_users.length }} {{ 'Candidates' | translate }}"
{{ (assignment.open_posts - assignment.assignment_related_users.length) > 0 ? '(' + (assignment.open_posts - assignment.assignment_related_users.length) + ' ' + ('needed' | translate) + ')' : '' }}"
tooltip-class="nobr" tooltip-class="nobr"
ng-class="{'badge-info': assignment.assignment_related_users.length < assignment.open_posts}"> ng-class="{'badge-info': assignment.assignment_related_users.length < assignment.open_posts}">
{{ assignment.assignment_related_users.length }} {{ assignment.assignment_related_users.length }}