admin: use hexadecimal certificate ID

This commit is contained in:
nemunaire 2020-01-21 13:14:19 +01:00
commit 99e53ccfe6
5 changed files with 22 additions and 17 deletions

View file

@ -601,11 +601,6 @@ angular.module("FICApp")
$scope.teams = Team.query();
$scope.certificates = Certificate.query();
$scope.certificates.$promise.then(function(certificates) {
certificates.forEach(function(certificate, cid) {
certificate.serial = parseInt(certificate.id).toString(16);
});
});
$scope.ca = CACertificate.get();
$scope.revoke = function() {

View file

@ -16,7 +16,7 @@
</thead>
<tbody>
<tr ng-repeat="certificate in certificates | filter: query" ng-click="show(certificate.id)" ng-class="{'bg-danger': certificate.revoked}">
<td>{{ certificate.serial | uppercase }}</td>
<td>{{ certificate.id }}</td>
<td>{{ certificate.creation }}</td>
<td ng-if="certificate.id_team">
<span ng-repeat="team in teams" ng-if="team.id == certificate.id_team">

View file

@ -84,7 +84,7 @@
<button type="button" class="btn btn-sm btn-primary float-right" ng-click="dissociateCertificate(cert)">Dissocier</button>
</dt>
<dd>
{{ cert.serial | uppercase }}
{{ cert.id }}
<span class="badge badge-danger" ng-if="cert.revoked">Révoqué</span>
</dd>
<dt>