blob: 2b7d9b7f99528c464b226befe191836373fc2b99 [file] [log] [blame]
beccabroek309b5da2018-11-07 12:22:31 -06001<div class="table__row-value row column">
2 <div class="certificate__type-cell bold">
Yoshie Muranakadbafdc52019-06-28 09:41:19 -05003 {{getCertificateName(cert.Description)}}
beccabroek309b5da2018-11-07 12:22:31 -06004 </div>
5 <div class="certificate__title-inline">
Zbigniew Kurzynskic81cdd42019-07-25 11:52:15 +02006 Issued by:
7 </div>
8 <div class="certificate__issue-cell">
9 {{cert.Issuer.CommonName}}
10 </div>
11 <div class="certificate__title-inline">
12 Issued to:
13 </div>
14 <div class="certificate__issue-cell">
15 {{cert.Subject.CommonName}}
16 </div>
17 <div class="certificate__title-inline">
beccabroek309b5da2018-11-07 12:22:31 -060018 Valid from:
19 </div>
20 <div class="certificate__date-cell">
Zbigniew Kurzynskic81cdd42019-07-25 11:52:15 +020021 {{cert.ValidNotBefore | date:medium}}
beccabroek309b5da2018-11-07 12:22:31 -060022 </div>
23 <div class="certificate__title-inline">
24 Valid until:
25 </div>
26 <div class="certificate__status-cell">
miramurali23219738d2019-08-15 16:22:06 -040027 <span class="inline" ng-class="{'icon__warning certificate__table__icon' : cert.isExpiring , 'icon__critical certificate__table__icon' : cert.isExpired}"
beccabroek309b5da2018-11-07 12:22:31 -060028 ng-if="cert.isExpired || cert.isExpiring"></span>
29 </div>
30 <div class="certificate__date-cell">
Zbigniew Kurzynskic81cdd42019-07-25 11:52:15 +020031 {{cert.ValidNotAfter | date:medium}}
beccabroek309b5da2018-11-07 12:22:31 -060032 </div>
33 <div class="certificate__buttons-cell">
miramurali23219738d2019-08-15 16:22:06 -040034 <button type="button" ng-click="cert.upload = true" aria-label="Replace certificate" class="btn btn-tertiary certificate__button">
Dixsie Wolmers0c1e09e2019-08-26 11:16:10 -050035 <icon file="icon-replace.svg" aria-hidden="true"></icon>
beccabroek309b5da2018-11-07 12:22:31 -060036 </button>
37 </div>
38 <div ng-show="cert.upload === true" class="upload__certificate">
39 <div class="certificate__upload-chooser row">
40 <div class="small-1 column">
miramurali23219738d2019-08-15 16:22:06 -040041 <button type="button" ng-click="cert.upload=false" aria-label="close replace certificate upload form">
Dixsie Wolmers0c1e09e2019-08-26 11:16:10 -050042 <icon file="icon-close.svg" aria-hidden="true"></icon>
beccabroek309b5da2018-11-07 12:22:31 -060043 </button>
44 </div>
45 <div class="small-2 column">
miramurali23219738d2019-08-15 16:22:06 -040046 <label>
47 <input id="upload_{{cert.Description + cert.Id}}" type="file" file="cert.file" class="input-file" />
48 <span class="btn btn-secondary">Choose file</span>
49 </label>
50 </div>
beccabroek309b5da2018-11-07 12:22:31 -060051 <div class="small-6 column">
52 <span ng-if="!cert.file">No file selected</span>
53 <span>{{cert.file.name}}</span>
miramurali23219738d2019-08-15 16:22:06 -040054 <button type="reset" ng-if="cert.file.name" ng-click="cert.file = '';" aria-label="remove selected file">
Dixsie Wolmers0c1e09e2019-08-26 11:16:10 -050055 <icon file="icon-close.svg" aria-hidden="true"></icon>
beccabroek309b5da2018-11-07 12:22:31 -060056 </button>
57 </div>
58 <div class="small-3 column">
miramurali23219738d2019-08-15 16:22:06 -040059 <button type="submit" ng-class="{disabled:!cert.file}" class="btn btn-primary" ng-click="replaceCertificate(cert)">
Dixsie Wolmers0c1e09e2019-08-26 11:16:10 -050060 Replace
61 </button>
beccabroek309b5da2018-11-07 12:22:31 -060062 </div>
63 </div>
64 </div>
65</div>