1<div class="table__row-value row column"> 2 <div class="certificate__type-cell bold"> 3 {{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" class="btn btn-tertiary certificate__button"> 36 <icon file="icon-replace.svg" ng-click="cert.upload = true" 37 aria-label="Replace certificate"></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 type="button"> 44 <icon file="icon-close.svg" ng-click="cert.upload=false"></icon> 45 </button> 46 </div> 47 <div class="small-2 column"> 48 <label for='upload_{{cert.Description + cert.Id}}'> 49 <input name="upload_{{cert.Description + cert.Id}}" 50 id="upload_{{cert.Description + cert.Id}}" 51 type="file" file="cert.file" class="hide"/> 52 <span class="btn btn-secondary">Choose file</span> 53 </label> 54 </div> 55 <div class="small-6 column"> 56 <span ng-if="!cert.file">No file selected</span> 57 <span>{{cert.file.name}}</span> 58 <button type="button" ng-if="cert.file.name" ng-click="cert.file = '';"> 59 <icon file="icon-close.svg"></icon> 60 </button> 61 </div> 62 <div class="small-3 column"> 63 <button type="button" ng-class="{disabled:!cert.file}" 64 class="btn btn-primary" 65 ng-click="replaceCertificate(cert)">Replace</button> 66 </div> 67 </div> 68 </div> 69</div>