+ @org.Name @(org.Enabled ? "" : "(disabled)")
+
+ @if (org.ExchangePurposes.Count == 0)
+ {
+ No exchange purposes authorized.
+ }
+ else
+ {
+
+ | Code | Approved by | Approved (UTC) | |
+
+ @foreach (var xp in org.ExchangePurposes.OrderBy(x => x.Code))
+ {
+
+ @xp.Code |
+ @xp.ApprovedBy |
+ @xp.ApprovedAt.ToString("u") |
+
+ Withdraw
+ |
+
+ }
+
+
+ }
+
+
+
+ Authorize
+
+
+
+
+ Find certificates
+
+
+ @if (_found.TryGetValue(org.Id, out var found))
+ {
+ @if (found.Requests.Count == 0)
+ {
+ No issued certificates of @org.Name carry @found.Code.
+ }
+ else
+ {
+
+ @foreach (var r in found.Requests)
+ {
+ - #@r.Id @r.SubjectDn, serial
@r.SerialNumber
+ }
+
+ @if (AuthorizedCodes(org).Contains(found.Code))
+ {
+ @org.Name is still authorized for @found.Code; withdraw it first unless these certificates must go regardless.
+ }
+ Revoke @found.Requests.Count certificate(s)
+ }
+ }
+
+ }
+}
+
+@code {
+ private List