mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 23:43:01 +00:00
[CST-5270] add info alert for section info message
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
<ds-alert [type]="'alert-info'" *ngIf="hasNoData()" [content]="'submission.sections.sherpa-policy.title-empty'">
|
||||
</ds-alert>
|
||||
|
||||
<div *ngIf="!hasNoData()" class="d-flex justify-content-between align-items-center mt-2 mb-2">
|
||||
<div class="text-information-section mr-2">
|
||||
<span>
|
||||
{{'submission.sections.sherpa.publisher.policy.description' | translate}}
|
||||
</span>
|
||||
</div>
|
||||
<button type="button" class="btn btn-secondary pull-right h-100" (click)="refresh()" data-test="refresh-btn">
|
||||
<span><i class="fas fa-sync"></i> {{'submission.sections.sherpa.publisher.policy.refresh' | translate}} </span>
|
||||
<div *ngIf="!hasNoData()" class="d-flex flex-column flex-nowrap mt-2 mb-4">
|
||||
<ds-alert [type]="'alert-info'" >
|
||||
{{'submission.sections.sherpa.publisher.policy.description' | translate}}
|
||||
</ds-alert>
|
||||
<div>
|
||||
<button type="button" class="btn btn-secondary float-right" (click)="refresh()" data-test="refresh-btn">
|
||||
<span><i class="fas fa-sync"></i> {{'submission.sections.sherpa.publisher.policy.refresh' | translate}} </span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ng-container *ngVar="(sherpaPoliciesData$ | async)?.sherpaResponse as sherpaData">
|
||||
<ng-container *ngIf="!hasNoData() && (!!sherpaData && !sherpaData.error)">
|
||||
<ng-container *ngFor="let journal of sherpaData.journals;let j=index;">
|
||||
<div class="mb-3 border-bottom" data-test="collapse">
|
||||
<div class="w-100 d-flex justify-content-between collapse-toggle" (click)="collapse.toggle()">
|
||||
<div class="w-100 d-flex justify-content-between collapse-toggle mb-3" (click)="collapse.toggle()">
|
||||
<button type="button" class="btn btn-link p-0" (click)="$event.preventDefault()"
|
||||
[attr.aria-expanded]="!collapse.collapsed" aria-controls="collapseExample">
|
||||
{{'submission.sections.sherpa.publication.information' | translate}}
|
||||
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div *ngFor="let policy of journal.policies; let p=index;" class="mb-3 border-bottom" data-test="collapse">
|
||||
<div class="w-100 d-flex justify-content-between collapse-toggle" (click)="collapse.toggle()">
|
||||
<div class="w-100 d-flex justify-content-between collapse-toggle mb-3" (click)="collapse.toggle()">
|
||||
<button type="button" class="btn btn-link p-0" (click)="$event.preventDefault()"
|
||||
[attr.aria-expanded]="!collapse.collapsed" aria-controls="collapseExample">
|
||||
{{'submission.sections.sherpa.publisher.policy' | translate}}
|
||||
@@ -48,7 +48,7 @@
|
||||
</ng-container>
|
||||
|
||||
<div class="mb-3 border-bottom" data-test="collapse">
|
||||
<div class="w-100 d-flex justify-content-between collapse-toggle" (click)="collapse.toggle()">
|
||||
<div class="w-100 d-flex justify-content-between collapse-toggle mb-3" (click)="collapse.toggle()">
|
||||
<button type="button" class="btn btn-link p-0" (click)="$event.preventDefault()"
|
||||
[attr.aria-expanded]="!collapse.collapsed" aria-controls="collapseExample">
|
||||
{{'submission.sections.sherpa.record.information' | translate}}
|
||||
|
@@ -1,3 +0,0 @@
|
||||
.text-information-section {
|
||||
flex: 1;
|
||||
}
|
Reference in New Issue
Block a user