2016-03-23 18:39:41 +01:00
|
|
|
<div class="modal-header">
|
2019-12-16 16:54:40 +01:00
|
|
|
<h1 translate>{{ 'app.admin.trainings.training_validation' }}</h1>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2019-12-16 16:54:40 +01:00
|
|
|
<p>
|
|
|
|
<span translate translate-values="{DATE:(availability.start_at | amDateFormat:'LLL'), TIME:(availability.end_at | amDateFormat:'LT')}">{{ 'app.admin.trainings.training_of_the_DATE_TIME_html' }}</span>
|
|
|
|
<br>
|
|
|
|
<span translate>{{ 'app.admin.trainings.you_can_validate_the_training_of_the_following_members' }}</span></p>
|
2016-03-23 18:39:41 +01:00
|
|
|
<ul class="list-unstyled" ng-if="availability.reservation_users.length > 0">
|
|
|
|
<li ng-repeat="user in availability.reservation_users">
|
2019-06-12 12:22:38 +02:00
|
|
|
<label for="{{user.id}}" ng-show="user.id">{{user.full_name}}</label>
|
2019-12-16 16:54:40 +01:00
|
|
|
<span class="text-gray text-italic" ng-hide="user.id" translate>{{ 'app.admin.trainings.deleted_user' }}</span>
|
2019-06-12 12:22:38 +02:00
|
|
|
<input type="checkbox" ng-checked="user.is_valid" ng-disabled="user.is_valid || !user.id" ng-click="toggleSelection(user)" id="{{user.id}}" />
|
2016-03-23 18:39:41 +01:00
|
|
|
</li>
|
|
|
|
</ul>
|
2019-12-16 16:54:40 +01:00
|
|
|
<p ng-if="availability.reservation_users.length == 0" translate>{{ 'app.admin.trainings.no_reservation' }}</p>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2019-12-16 16:54:40 +01:00
|
|
|
<button class="btn btn-warning" ng-click="ok()" ng-disabled="usersToValid.length == 0" translate>{{ 'app.admin.trainings.validate_the_trainings' }}</button>
|
|
|
|
<button class="btn btn-default" ng-click="cancel()" translate>{{ 'app.shared.buttons.cancel' }}</button>
|
2019-06-12 12:22:38 +02:00
|
|
|
</div>
|