@vendasta/store
Version:
Components and data for Store
43 lines (42 loc) • 2.36 kB
HTML
<div>
<mat-card class="va-order-form-section-header mat-card">
<div class="product-overview">
<div class="product-id">
<va-icon [iconUrl]="data.iconUrl" [name]="data.titleText" [diameter]="45"></va-icon>
<div class="product-id-text">
<h1 class="product-title">{{ data.titleText }}</h1>
<span *ngIf="data.subtitleText" class="tagline">{{ data.subtitleText }}</span>
</div>
</div>
<div class="description" *ngIf="data.descriptionText">
<span>{{ data.descriptionText }}</span>
</div>
</div>
</mat-card>
<va-dropdown-form-section class="va-primary-form-section" *ngIf="data.primarySection"
[]="data.primarySection.titleText"
[]="data.primarySection.editingHint"
[]="data.primarySection.displayAutoDescription"
[]="data.primarySection.descriptionText"
[]="data.primarySection.displayAutoTitle"
[]="data.primarySection.prepopulatedData"
[]="data.parentForm"
[]="data.primarySection.fields"
[]="data.primarySection.startOpen"
[]="data.primarySection.expandable">
</va-dropdown-form-section>
<ng-container *ngIf="data.subsections?.length > 0">
<va-dropdown-form-section class="va-secondary-form-section" *ngFor="let addon of data.subsections"
[]="addon.titleText"
[]="addon.editingHint"
[]="addon.displayAutoDescription"
[]="addon.descriptionText"
[]="addon.displayAutoTitle"
[]="addon.prepopulatedData"
[]="data.parentForm"
[]="addon.fields"
[]="addon.startOpen"
[]="addon.expandable">
</va-dropdown-form-section>
</ng-container>
</div>