Commits
Giuseppe Digilio authored dd049270a7e
1 1 | <ds-alert [type]="'alert-info'" *ngIf="hasNoData()" [content]="'submission.sections.sherpa-policy.title-empty'"> |
2 2 | </ds-alert> |
3 3 | |
4 - | <div *ngIf="!hasNoData()" class="d-flex justify-content-between align-items-center mt-2 mb-2"> |
5 - | <div class="text-information-section mr-2"> |
6 - | <span> |
7 - | {{'submission.sections.sherpa.publisher.policy.description' | translate}} |
8 - | </span> |
9 - | </div> |
10 - | <button type="button" class="btn btn-secondary pull-right h-100" (click)="refresh()" data-test="refresh-btn"> |
11 - | <span><i class="fas fa-sync"></i> {{'submission.sections.sherpa.publisher.policy.refresh' | translate}} </span> |
4 + | <div *ngIf="!hasNoData()" class="d-flex flex-column flex-nowrap mt-2 mb-4"> |
5 + | <ds-alert [type]="'alert-info'" > |
6 + | {{'submission.sections.sherpa.publisher.policy.description' | translate}} |
7 + | </ds-alert> |
8 + | <div> |
9 + | <button type="button" class="btn btn-secondary float-right" (click)="refresh()" data-test="refresh-btn"> |
10 + | <span><i class="fas fa-sync"></i> {{'submission.sections.sherpa.publisher.policy.refresh' | translate}} </span> |
12 11 | </button> |
12 + | </div> |
13 13 | </div> |
14 14 | |
15 15 | <ng-container *ngVar="(sherpaPoliciesData$ | async)?.sherpaResponse as sherpaData"> |
16 16 | <ng-container *ngIf="!hasNoData() && (!!sherpaData && !sherpaData.error)"> |
17 17 | <ng-container *ngFor="let journal of sherpaData.journals;let j=index;"> |
18 18 | <div class="mb-3 border-bottom" data-test="collapse"> |
19 - | <div class="w-100 d-flex justify-content-between collapse-toggle" (click)="collapse.toggle()"> |
19 + | <div class="w-100 d-flex justify-content-between collapse-toggle mb-3" (click)="collapse.toggle()"> |
20 20 | <button type="button" class="btn btn-link p-0" (click)="$event.preventDefault()" |
21 21 | [attr.aria-expanded]="!collapse.collapsed" aria-controls="collapseExample"> |
22 22 | {{'submission.sections.sherpa.publication.information' | translate}} |
23 23 | </button> |
24 24 | <div class="d-inline-block"> |
25 25 | <span *ngIf="collapse.collapsed" class="fas fa-chevron-down"></span> |
26 26 | <span *ngIf="!collapse.collapsed" class="fas fa-chevron-up"></span> |
27 27 | </div> |
28 28 | </div> |
29 29 | <div #collapse="ngbCollapse" [ngbCollapse]="isCollapsed"> |
30 30 | <ds-publication-information [journal]="journal"></ds-publication-information> |
31 31 | </div> |
32 32 | </div> |
33 33 | <div *ngFor="let policy of journal.policies; let p=index;" class="mb-3 border-bottom" data-test="collapse"> |
34 - | <div class="w-100 d-flex justify-content-between collapse-toggle" (click)="collapse.toggle()"> |
34 + | <div class="w-100 d-flex justify-content-between collapse-toggle mb-3" (click)="collapse.toggle()"> |
35 35 | <button type="button" class="btn btn-link p-0" (click)="$event.preventDefault()" |
36 36 | [attr.aria-expanded]="!collapse.collapsed" aria-controls="collapseExample"> |
37 37 | {{'submission.sections.sherpa.publisher.policy' | translate}} |
38 38 | </button> |
39 39 | <div class="d-inline-block"> |
40 40 | <span *ngIf="collapse.collapsed" class="fas fa-chevron-down"></span> |
41 41 | <span *ngIf="!collapse.collapsed" class="fas fa-chevron-up"></span> |
42 42 | </div> |
43 43 | </div> |
44 44 | <div #collapse="ngbCollapse" [ngbCollapse]="isCollapsed"> |
45 45 | <ds-publisher-policy [policy]="policy"></ds-publisher-policy> |
46 46 | </div> |
47 47 | </div> |
48 48 | </ng-container> |
49 49 | |
50 50 | <div class="mb-3 border-bottom" data-test="collapse"> |
51 - | <div class="w-100 d-flex justify-content-between collapse-toggle" (click)="collapse.toggle()"> |
51 + | <div class="w-100 d-flex justify-content-between collapse-toggle mb-3" (click)="collapse.toggle()"> |
52 52 | <button type="button" class="btn btn-link p-0" (click)="$event.preventDefault()" |
53 53 | [attr.aria-expanded]="!collapse.collapsed" aria-controls="collapseExample"> |
54 54 | {{'submission.sections.sherpa.record.information' | translate}} |
55 55 | </button> |
56 56 | <div class="d-inline-block"> |
57 57 | <span *ngIf="collapse.collapsed" class="fas fa-chevron-down"></span> |
58 58 | <span *ngIf="!collapse.collapsed" class="fas fa-chevron-up"></span> |
59 59 | </div> |
60 60 | </div> |
61 61 | <div #collapse="ngbCollapse" [ngbCollapse]="isCollapsed"> |
62 62 | <ds-metadata-information [metadata]="sherpaData.metadata"></ds-metadata-information> |
63 63 | </div> |
64 64 | </div> |
65 65 | </ng-container> |
66 66 | |
67 67 | <ng-container *ngIf="!!sherpaData && sherpaData.error"> |
68 68 | <ds-alert [type]="AlertTypeEnum.Error" |
69 69 | [content]="!!sherpaData.message ? sherpaData.message : 'submission.sections.sherpa.error.message'| translate"> |
70 70 | </ds-alert> |
71 71 | </ng-container> |
72 - | </ng-container> |
72 + | </ng-container> |