crypto-pro-js/examples/angular/src/app/crypto-pro/crypto-pro.component.html
2020-03-28 21:11:00 +03:00

35 lines
808 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<select name="certificate"
[(ngModel)]="thumbprint">
<option value="null" disabled>Не выбран</option>
<option *ngFor="let cert of certificateList"
[value]="cert.thumbprint">
{{cert.name}}
</option>
</select>
<button type="button"
[disabled]="!thumbprint"
(click)="createSignature(thumbprint)">
Создать подпись
</button>
<button type="button"
[disabled]="!thumbprint"
(click)="showCertInfo(thumbprint)">
Информация о сертификате
</button>
<pre *ngIf="certInfo">{{certInfo | json}}</pre>
<br>
<textarea name="signature"
[(ngModel)]="signature"
cols="100"
rows="30"></textarea>
<pre *ngIf="error">{{error}}</pre>
<pre *ngIf="systemInfo">{{systemInfo | json}}</pre>