20 lines
939 B
HTML
20 lines
939 B
HTML
|
|
<section class="editor-section-card">
|
||
|
|
<h2>{{ 'builder.preview' | translate }}</h2>
|
||
|
|
<div class="editor-actions">
|
||
|
|
<button type="button" (click)="preview()">{{ 'builder.livePreview' | translate }}</button>
|
||
|
|
<button type="button" class="secondary" (click)="refreshExport()">{{ 'builder.exportBootstrap' | translate }}</button>
|
||
|
|
<button type="button" class="secondary" (click)="importDraft()">{{ 'builder.importBootstrap' | translate }}</button>
|
||
|
|
</div>
|
||
|
|
@if (importError()) {
|
||
|
|
<p class="editor-error">{{ importError()! | translate }}</p>
|
||
|
|
}
|
||
|
|
<label>
|
||
|
|
<span>{{ 'builder.exportedBootstrap' | translate }}</span>
|
||
|
|
<textarea rows="10" [ngModel]="exportValue()" (ngModelChange)="exportValue.set($event)"></textarea>
|
||
|
|
</label>
|
||
|
|
<label>
|
||
|
|
<span>{{ 'builder.importSource' | translate }}</span>
|
||
|
|
<textarea rows="10" [ngModel]="importValue()" (ngModelChange)="importValue.set($event)"></textarea>
|
||
|
|
</label>
|
||
|
|
</section>
|