admin: use hexadecimal certificate ID
This commit is contained in:
parent
6921431a77
commit
99e53ccfe6
5 changed files with 22 additions and 17 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Reference in a new issue