mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[CST-4506] fix test
This commit is contained in:
@@ -1,33 +1,49 @@
|
|||||||
<div dsSection #sectionRef="sectionRef" [attr.id]="'section_' + sectionData.id" [ngClass]="{ 'section-focus' : sectionRef.isSectionActive() }"
|
<div dsSection #sectionRef="sectionRef"
|
||||||
[mandatory]="sectionData.mandatory" [submissionId]="submissionId" [sectionType]="sectionData.sectionType" [sectionId]="sectionData.id">
|
[attr.id]="'section_' + sectionData.id"
|
||||||
<!-- *ngIf="(sectionRef.isEnabled() | async)" -->
|
[ngClass]="{ 'section-focus' : sectionRef.isSectionActive() }"
|
||||||
<ngb-accordion #acc="ngbAccordion" (panelChange)="sectionRef.sectionChange($event)" activeIds="{{ sectionData.id }}" [destroyOnHide]="false">
|
[mandatory]="sectionData.mandatory"
|
||||||
|
[submissionId]="submissionId"
|
||||||
|
[sectionType]="sectionData.sectionType"
|
||||||
|
[sectionId]="sectionData.id">
|
||||||
|
<ngb-accordion #acc="ngbAccordion"
|
||||||
|
*ngIf="(sectionRef.isEnabled() | async)"
|
||||||
|
(panelChange)="sectionRef.sectionChange($event)"
|
||||||
|
activeIds="{{ sectionData.id }}"
|
||||||
|
[destroyOnHide]="false">
|
||||||
<ngb-panel id="{{ sectionData.id }}">
|
<ngb-panel id="{{ sectionData.id }}">
|
||||||
<ng-template ngbPanelTitle>
|
<ng-template ngbPanelTitle>
|
||||||
<span class="float-left section-title" tabindex="0">{{ 'submission.sections.'+sectionData.header | translate }}</span>
|
<span class="float-left section-title" tabindex="0">{{ 'submission.sections.'+sectionData.header | translate }}</span>
|
||||||
<div class="d-inline-block float-right">
|
<div class="d-inline-block float-right">
|
||||||
<i *ngIf="!(sectionRef.isValid() | async) && !(sectionRef.hasErrors())" class="fas fa-exclamation-circle text-warning mr-3"
|
<i *ngIf="!(sectionRef.isValid() | async) && !(sectionRef.hasErrors())" class="fas fa-exclamation-circle text-warning mr-3"
|
||||||
title="{{'submission.sections.status.warnings.title' | translate}}" role="img" [attr.aria-label]="'submission.sections.status.warnings.aria' | translate"></i>
|
title="{{'submission.sections.status.warnings.title' | translate}}" role="img" [attr.aria-label]="'submission.sections.status.warnings.aria' | translate"></i>
|
||||||
<i *ngIf="(sectionRef.hasErrors())" class="fas fa-exclamation-circle text-danger mr-3" title="{{'submission.sections.status.errors.title' | translate}}"
|
<i *ngIf="(sectionRef.hasErrors())" class="fas fa-exclamation-circle text-danger mr-3"
|
||||||
role="img" [attr.aria-label]="'submission.sections.status.errors.aria' | translate"></i>
|
title="{{'submission.sections.status.errors.title' | translate}}" role="img" [attr.aria-label]="'submission.sections.status.errors.aria' | translate"></i>
|
||||||
<i *ngIf="(sectionRef.isValid() | async) && !(sectionRef.hasErrors())" class="fas fa-check-circle text-success mr-3" title="{{'submission.sections.status.valid.title' | translate}}"
|
<i *ngIf="(sectionRef.isValid() | async) && !(sectionRef.hasErrors())" class="fas fa-check-circle text-success mr-3"
|
||||||
role="img" [attr.aria-label]="'submission.sections.status.valid.aria' | translate"></i>
|
title="{{'submission.sections.status.valid.title' | translate}}" role="img" [attr.aria-label]="'submission.sections.status.valid.aria' | translate"></i>
|
||||||
<a class="close" tabindex="0" role="button" [attr.aria-label]="(sectionRef.isOpen() ? 'submission.sections.toggle.aria.close' : 'submission.sections.toggle.aria.open') | translate: {sectionHeader: ('submission.sections.'+sectionData.header | translate)}"
|
<a class="close"
|
||||||
[title]="(sectionRef.isOpen() ? 'submission.sections.toggle.close' : 'submission.sections.toggle.open') | translate">
|
tabindex="0"
|
||||||
|
role="button"
|
||||||
|
[attr.aria-label]="(sectionRef.isOpen() ? 'submission.sections.toggle.aria.close' : 'submission.sections.toggle.aria.open') | translate: {sectionHeader: ('submission.sections.'+sectionData.header | translate)}"
|
||||||
|
[title]="(sectionRef.isOpen() ? 'submission.sections.toggle.close' : 'submission.sections.toggle.open') | translate">
|
||||||
<span *ngIf="sectionRef.isOpen()" class="fas fa-chevron-up fa-fw"></span>
|
<span *ngIf="sectionRef.isOpen()" class="fas fa-chevron-up fa-fw"></span>
|
||||||
<span *ngIf="!sectionRef.isOpen()" class="fas fa-chevron-down fa-fw"></span>
|
<span *ngIf="!sectionRef.isOpen()" class="fas fa-chevron-down fa-fw"></span>
|
||||||
</a>
|
</a>
|
||||||
<a href="#" class="close mr-3" *ngIf="!sectionRef.isMandatory()" (click)="removeSection($event)">
|
<a href="#" class="close mr-3" *ngIf="!sectionRef.isMandatory()"
|
||||||
|
(click)="removeSection($event)">
|
||||||
<i class="fas fa-trash-o" aria-hidden="true" tabindex="0"></i>
|
<i class="fas fa-trash-o" aria-hidden="true" tabindex="0"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template ngbPanelContent>
|
<ng-template ngbPanelContent>
|
||||||
<div id="sectionGenericError_{{sectionData.id}}" *ngIf="sectionRef.hasGenericErrors()">
|
<div id="sectionGenericError_{{sectionData.id}}" *ngIf="sectionRef.hasGenericErrors()">
|
||||||
<ds-alert *ngFor="let error of sectionRef.getErrors(); let i = index" [content]="error" [dismissible]="true" [type]="AlertTypeEnum.Error"
|
<ds-alert *ngFor="let error of sectionRef.getErrors(); let i = index"
|
||||||
(close)="sectionRef.removeError(i)"></ds-alert>
|
[content]="error"
|
||||||
|
[dismissible]="true"
|
||||||
|
[type]="AlertTypeEnum.Error"
|
||||||
|
(close)="sectionRef.removeError(i)"></ds-alert>
|
||||||
</div>
|
</div>
|
||||||
<div id="sectionContent_{{sectionData.id}}" (click)="sectionRef.setFocus($event)">
|
<div id="sectionContent_{{sectionData.id}}"
|
||||||
|
(click)="sectionRef.setFocus($event)">
|
||||||
<ng-container *ngComponentOutlet="getSectionContent(); injector: objectInjector;"></ng-container>
|
<ng-container *ngComponentOutlet="getSectionContent(); injector: objectInjector;"></ng-container>
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
Reference in New Issue
Block a user