-
Notifications
You must be signed in to change notification settings - Fork 825
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
work for #6655 add into other platforms
- Loading branch information
OlgaLarina
committed
Sep 4, 2023
1 parent
926604c
commit 93becbd
Showing
7 changed files
with
160 additions
and
148 deletions.
There are no files selected for viewing
64 changes: 33 additions & 31 deletions
64
packages/survey-angular-ui/src/survey-content.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,40 @@ | ||
<ng-template #template> | ||
<div #surveyContainer *ngIf="!!model" [class]="model.getRootCss()" [style]="model.themeVariables"> | ||
<div *ngIf="!!model.renderBackgroundImage" [class]="model.css.rootBackgroundImage" [style]="model.backgroundImageStyle"></div> | ||
<form onsubmit="return false;"> | ||
<div class="sv_custom_header" [hidden]="model.hasLogo"></div> | ||
<div [class]="model.css.container"> | ||
<div *ngIf="model.renderedHasHeader" [class]="model.css.header" [survey]="model" sv-ng-survey-header></div> | ||
<ng-template [component]="{ name: 'sv-components-container', data: { survey: model, container: 'header', needRenderWrapper: false } }"></ng-template> | ||
<div *ngIf="model.isShowingPage" [class]="model.bodyContainerCss"> | ||
<ng-template [component]="{ name: 'sv-components-container', data: { survey: model, container: 'left' } }"></ng-template> | ||
<div [class]="model.bodyCss" [style.maxWidth]="model.renderedWidth" [id]="model.activePage ? model.activePage.id : ''"> | ||
<ng-template [component]="{ name: 'sv-components-container', data: { survey: model, container: 'contentTop' } }"></ng-template> | ||
<!-- ko if: activePage --> | ||
<ng-container *ngIf="model.activePage"> | ||
<sv-ng-page [model]="model.activePage" [survey]="model"></sv-ng-page> | ||
</ng-container> | ||
<!-- ko if: activePage.rows.length == 0 && $data.emptyPageTemplate --> | ||
<!-- ko template: { name: emptyPageTemplate, data: $data.emptyPageTemplateData || $data } --> | ||
<div [class]="model.wrapperFormCss"> | ||
<div *ngIf="!!model.renderBackgroundImage" [class]="model.css.rootBackgroundImage" [style]="model.backgroundImageStyle"></div> | ||
<form onsubmit="return false;"> | ||
<div class="sv_custom_header" [hidden]="model.hasLogo"></div> | ||
<div [class]="model.css.container"> | ||
<div *ngIf="model.renderedHasHeader" [class]="model.css.header" [survey]="model" sv-ng-survey-header></div> | ||
<ng-template [component]="{ name: 'sv-components-container', data: { survey: model, container: 'header', needRenderWrapper: false } }"></ng-template> | ||
<div *ngIf="model.isShowingPage" [class]="model.bodyContainerCss"> | ||
<ng-template [component]="{ name: 'sv-components-container', data: { survey: model, container: 'left' } }"></ng-template> | ||
<div [class]="model.bodyCss" [style.maxWidth]="model.renderedWidth" [id]="model.activePage ? model.activePage.id : ''"> | ||
<ng-template [component]="{ name: 'sv-components-container', data: { survey: model, container: 'contentTop' } }"></ng-template> | ||
<!-- ko if: activePage --> | ||
<ng-container *ngIf="model.activePage"> | ||
<sv-ng-page [model]="model.activePage" [survey]="model"></sv-ng-page> | ||
</ng-container> | ||
<!-- ko if: activePage.rows.length == 0 && $data.emptyPageTemplate --> | ||
<!-- ko template: { name: emptyPageTemplate, data: $data.emptyPageTemplateData || $data } --> | ||
<!-- /ko --> | ||
<!-- /ko --> | ||
<!-- /ko --> | ||
<!-- /ko --> | ||
<!-- /ko --> | ||
<ng-template [component]="{ name: 'sv-components-container', data: { survey: model, container: 'contentBottom' } }"></ng-template> | ||
<ng-template [component]="{ name: 'sv-components-container', data: { survey: model, container: 'contentBottom' } }"></ng-template> | ||
</div> | ||
<ng-template [component]="{ name: 'sv-components-container', data: { survey: model, container: 'right' } }"></ng-template> | ||
</div> | ||
<ng-template [component]="{ name: 'sv-components-container', data: { survey: model, container: 'right' } }"></ng-template> | ||
<ng-template [component]="{ name: 'sv-components-container', data: { survey: model, container: 'footer', needRenderWrapper: false } }"></ng-template> | ||
<div *ngIf="model.state === 'completed' && model.showCompletedPage" [class]="model.completedCss" | ||
[innerHtml]="model.processedCompletedHtml"></div> | ||
<div *ngIf="model.state === 'completedbefore'" [class]="model.completedBeforeCss" | ||
[innerHtml]="model.processedCompletedBeforeHtml"></div> | ||
<div *ngIf="model.state === 'loading'" [class]="model.loadingBodyCss" [innerHtml]="model.processedLoadingHtml"></div> | ||
<div *ngIf="model.state === 'empty'" [class]="model.css.bodyEmpty">{{model.emptySurveyText}}</div> | ||
</div> | ||
<ng-template [component]="{ name: 'sv-components-container', data: { survey: model, container: 'footer', needRenderWrapper: false } }"></ng-template> | ||
<div *ngIf="model.state === 'completed' && model.showCompletedPage" [class]="model.completedCss" | ||
[innerHtml]="model.processedCompletedHtml"></div> | ||
<div *ngIf="model.state === 'completedbefore'" [class]="model.completedBeforeCss" | ||
[innerHtml]="model.processedCompletedBeforeHtml"></div> | ||
<div *ngIf="model.state === 'loading'" [class]="model.loadingBodyCss" [innerHtml]="model.processedLoadingHtml"></div> | ||
<div *ngIf="model.state === 'empty'" [class]="model.css.bodyEmpty">{{model.emptySurveyText}}</div> | ||
</div> | ||
</form> | ||
<sv-brand-info *ngIf="model.showBrandInfo"></sv-brand-info> | ||
<sv-notifier [notifier]="model.notifier"></sv-notifier> | ||
</form> | ||
<sv-brand-info *ngIf="model.showBrandInfo"></sv-brand-info> | ||
<sv-notifier [notifier]="model.notifier"></sv-notifier> | ||
</div> | ||
</div> | ||
</ng-template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters