1<div class="uib-modal__content"> 2 <div class="modal-header"> 3 <h2 class="modal-title" id="modal_label"> 4 Certificate Signing Request (CSR) 5 </h2> 6 <button 7 type="button" 8 class="btn btn--close" 9 ng-click="$dismiss()" 10 aria-label="close"> 11 <icon file="icon-close.svg" aria-hidden="true"></icon> 12 </button> 13 </div> 14 <div class="modal-body"> 15 <span id="csrCode" class="add-csr__container-csr-code">{{ csrCode }}</span> 16 </div> 17 <div class="modal-footer"> 18 <button 19 type="button" 20 class="btn btn-secondary" 21 clipboard 22 text="csrCode" 23 on-copied="copySuccess(event)" 24 on-error="copyfailed(err)"> 25 <span ng-if="!copied">Copy</span> 26 <span ng-if="copied"> 27 <icon aria-hidden="true" file="icon-check.svg"></icon> 28 <span>Copied</span> 29 </span> 30 </button> 31 <button 32 type="button" 33 class="btn btn-primary"> 34 <a ng-href="data:text/json;charset=utf-8,{{ csrCode }}" 35 download="csrCode.txt" 36 class="add-csr__text-download"> 37 Download 38 </a> 39 </button> 40 </div> 41 </div>