1c15f66b0SDixsie Wolmers<!-- TODO: Replace table with resusable table component -->
2c15f66b0SDixsie Wolmers<div class="table__row-value row">
3309b5da3Sbeccabroek  <div class="certificate__type-cell bold">
4dbafdc5fSYoshie Muranaka    {{getCertificateName(cert.Description)}}
5309b5da3Sbeccabroek  </div>
6309b5da3Sbeccabroek  <div class="certificate__title-inline">
7c81cdd4aSZbigniew Kurzynski    Issued by:
8c81cdd4aSZbigniew Kurzynski  </div>
9c81cdd4aSZbigniew Kurzynski  <div class="certificate__issue-cell">
10c81cdd4aSZbigniew Kurzynski    {{cert.Issuer.CommonName}}
11c81cdd4aSZbigniew Kurzynski  </div>
12c81cdd4aSZbigniew Kurzynski  <div class="certificate__title-inline">
13c81cdd4aSZbigniew Kurzynski    Issued to:
14c81cdd4aSZbigniew Kurzynski  </div>
15c81cdd4aSZbigniew Kurzynski  <div class="certificate__issue-cell">
16c81cdd4aSZbigniew Kurzynski    {{cert.Subject.CommonName}}
17c81cdd4aSZbigniew Kurzynski  </div>
18c81cdd4aSZbigniew Kurzynski  <div class="certificate__title-inline">
19309b5da3Sbeccabroek    Valid from:
20309b5da3Sbeccabroek  </div>
21309b5da3Sbeccabroek  <div class="certificate__date-cell">
22c81cdd4aSZbigniew Kurzynski    {{cert.ValidNotBefore | date:medium}}
23309b5da3Sbeccabroek  </div>
24309b5da3Sbeccabroek  <div class="certificate__title-inline">
25309b5da3Sbeccabroek    Valid until:
26309b5da3Sbeccabroek  </div>
27309b5da3Sbeccabroek  <div class="certificate__status-cell">
281a2bd74dSDixsie Wolmers    <icon file="icon-critical.svg"
291a2bd74dSDixsie Wolmers      aria-label="certificate has expired"
301a2bd74dSDixsie Wolmers      class="certificate__status-icon"
311a2bd74dSDixsie Wolmers      ng-if="cert.isExpired">
321a2bd74dSDixsie Wolmers    </icon>
331a2bd74dSDixsie Wolmers    <icon file="icon-warning.svg"
341a2bd74dSDixsie Wolmers      aria-label="certificate will expire soon"
351a2bd74dSDixsie Wolmers      class="certificate__status-icon"
361a2bd74dSDixsie Wolmers      ng-if="cert.isExpiring">
371a2bd74dSDixsie Wolmers    </icon>
38309b5da3Sbeccabroek  </div>
39309b5da3Sbeccabroek  <div class="certificate__date-cell">
40c81cdd4aSZbigniew Kurzynski    {{cert.ValidNotAfter | date:medium}}
41309b5da3Sbeccabroek  </div>
42*f70f4255SZbigniew Kurzynski  <div class="certificate__title-inline">
43*f70f4255SZbigniew Kurzynski    Actions:
44*f70f4255SZbigniew Kurzynski  </div>
45*f70f4255SZbigniew Kurzynski  <div class="certificate__buttons-cell row">
46c15f66b0SDixsie Wolmers    <button
47c15f66b0SDixsie Wolmers      type="button"
48c15f66b0SDixsie Wolmers      ng-click="cert.upload = true"
49c15f66b0SDixsie Wolmers      aria-label="Replace certificate"
50c15f66b0SDixsie Wolmers      class="btn  btn-tertiary certificate__button">
510c1e09e6SDixsie Wolmers      <icon file="icon-replace.svg" aria-hidden="true"></icon>
52309b5da3Sbeccabroek    </button>
53*f70f4255SZbigniew Kurzynski    <button type="button"
54*f70f4255SZbigniew Kurzynski      ng-click="confirmDeleteCert(cert)"
55*f70f4255SZbigniew Kurzynski      aria-label="Delete certificate"
56*f70f4255SZbigniew Kurzynski      class="btn  btn-tertiary certificate__button"
57*f70f4255SZbigniew Kurzynski      ng-disabled="!isDeletable(cert)">
58*f70f4255SZbigniew Kurzynski      <icon file="icon-trashcan.svg" aria-hidden="true"></icon>
59*f70f4255SZbigniew Kurzynski    </button>
60309b5da3Sbeccabroek  </div>
61309b5da3Sbeccabroek  <div ng-show="cert.upload === true" class="upload__certificate">
62c15f66b0SDixsie Wolmers    <div class="close-btn">
63c15f66b0SDixsie Wolmers      <button
64c15f66b0SDixsie Wolmers        type="button"
65c15f66b0SDixsie Wolmers        ng-click="cert.upload=false"
66c15f66b0SDixsie Wolmers        aria-label="close replace certificate upload form">
670c1e09e6SDixsie Wolmers        <icon file="icon-close.svg" aria-hidden="true"></icon>
68309b5da3Sbeccabroek      </button>
69309b5da3Sbeccabroek    </div>
70c15f66b0SDixsie Wolmers    <div class="file-upload">
71c15f66b0SDixsie Wolmers      <label
72c15f66b0SDixsie Wolmers        for="upload_{{ cert.Description + cert.Id }}"
73c15f66b0SDixsie Wolmers        class="file-upload-btn btn btn-secondary"
74c15f66b0SDixsie Wolmers        tabindex="0">Choose file</label>
75c15f66b0SDixsie Wolmers      <input
76c15f66b0SDixsie Wolmers        name="upload_{{ cert.Description + cert.Id }}"
77c15f66b0SDixsie Wolmers        id="upload_{{ cert.Description + cert.Id }}"
78c15f66b0SDixsie Wolmers        type="file"
79c15f66b0SDixsie Wolmers        file="cert.file"
80c15f66b0SDixsie Wolmers        class="file-upload-input"/>
81309b5da3Sbeccabroek    </div>
82c15f66b0SDixsie Wolmers    <div class="file-upload-container file-upload-field">
83309b5da3Sbeccabroek      <span ng-if="!cert.file">No file selected</span>
84309b5da3Sbeccabroek      <span>{{ cert.file.name }}</span>
85c15f66b0SDixsie Wolmers      <button
86c15f66b0SDixsie Wolmers        type="reset"
87c15f66b0SDixsie Wolmers        class="btn file-upload-reset"
88c15f66b0SDixsie Wolmers        ng-if="cert.file.name"
89c15f66b0SDixsie Wolmers        ng-click="cert.file = '';"
90c15f66b0SDixsie Wolmers        aria-label="remove selected file">
910c1e09e6SDixsie Wolmers        <icon file="icon-close.svg" aria-hidden="true"></icon>
92309b5da3Sbeccabroek      </button>
93309b5da3Sbeccabroek    </div>
94c15f66b0SDixsie Wolmers    <div class="replace-btn">
95c15f66b0SDixsie Wolmers      <button
96c15f66b0SDixsie Wolmers        type="submit"
97c15f66b0SDixsie Wolmers        ng-disabled="!cert.file"
98c15f66b0SDixsie Wolmers        class="btn btn-primary"
99c15f66b0SDixsie Wolmers        ng-click="replaceCertificate(cert)">
1000c1e09e6SDixsie Wolmers        Replace
1010c1e09e6SDixsie Wolmers      </button>
102309b5da3Sbeccabroek    </div>
103309b5da3Sbeccabroek  </div>
104309b5da3Sbeccabroek</div>
105