1<div class="table__row-value row column"> 2 <div class="certificate__type-cell bold"> 3 {{getCertificateName(cert.Description)}} 4 </div> 5 <div class="certificate__title-inline"> 6 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"> 18 Valid from: 19 </div> 20 <div class="certificate__date-cell"> 21 {{cert.ValidNotBefore | date:medium}} 22 </div> 23 <div class="certificate__title-inline"> 24 Valid until: 25 </div> 26 <div class="certificate__status-cell"> 27 <span class="inline" 28 ng-class="{'icon__warning' : cert.isExpiring , 'icon__critical' : cert.isExpired}" 29 ng-if="cert.isExpired || cert.isExpiring"></span> 30 </div> 31 <div class="certificate__date-cell"> 32 {{cert.ValidNotAfter | date:medium}} 33 </div> 34 <div class="certificate__buttons-cell"> 35 <button type="button" ng-click="cert.upload = true" aria-label="Replace certificate" 36 class="btn btn-tertiary certificate__button"> 37 <icon file="icon-replace.svg" aria-hidden="true"></icon> 38 </button> 39 </div> 40 <div ng-show="cert.upload === true" class="upload__certificate"> 41 <div class="certificate__upload-chooser row"> 42 <div class="small-1 column"> 43 <button 44 type="button" 45 ng-click="cert.upload=false" 46 aria-label="close replace certificate upload form"> 47 <icon file="icon-close.svg" aria-hidden="true"></icon> 48 </button> 49 </div> 50 <div class="small-2 column"> 51 <label> 52 <input 53 id="upload_{{cert.Description + cert.Id}}" 54 type="file" 55 file="cert.file" 56 class="input-file" /> 57 <span class="btn btn-secondary">Choose file</span> 58 </label> 59 </div> 60 <div class="small-6 column"> 61 <span ng-if="!cert.file">No file selected</span> 62 <span>{{cert.file.name}}</span> 63 <button 64 type="reset" 65 ng-if="cert.file.name" 66 ng-click="cert.file = '';" 67 aria-label="remove selected file"> 68 <icon file="icon-close.svg" aria-hidden="true"></icon> 69 </button> 70 </div> 71 <div class="small-3 column"> 72 <button type="submit" ng-class="{disabled:!cert.file}" class="btn btn-primary" 73 ng-click="replaceCertificate(cert)"> 74 Replace 75 </button> 76 </div> 77 </div> 78 </div> 79</div>