Fixes buttons on admin dataset-profiles

This commit is contained in:
apapachristou 2019-06-21 18:06:30 +03:00
parent b2a407d90e
commit 3d2dea572f
2 changed files with 17 additions and 15 deletions

View File

@ -6,9 +6,8 @@
<mat-error *ngIf="form.get('label').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}
</mat-error>
</mat-form-field>
<div class="row" *ngIf="form.get('status').value==1">
<div class="col"></div>
<button mat-raised-button class="col-auto" color="primary" (click)="downloadXML();"
<div class="d-flex justify-content-end pb-3" *ngIf="form.get('status').value==1">
<button mat-raised-button color="primary" (click)="downloadXML();"
type="button">{{ 'DATASET-WIZARD.ACTIONS.DOWNLOAD-XML' | translate }}</button>
</div>
<mat-horizontal-stepper [linear]="true" #stepper>
@ -56,22 +55,25 @@
</div>
</mat-step> -->
</mat-horizontal-stepper>
<div>
<div class="d-flex">
<!-- SAVE BUTTON -->
<div class="col-6" *ngIf="!viewOnly">
<div class="col-6 d-flex" *ngIf="!viewOnly">
<div class="row mt-4">
<button mat-raised-button class="col-auto mr-2" color="primary" type="button col-auto" (click)='onSubmit()'
[disabled]="!form.valid">Save</button>
<button mat-raised-button class="col-auto" color="primary" type="button col-auto" (click)='finalize()'
[disabled]="!form.valid">Finalize</button>
<button mat-raised-button class="col-auto mr-2" color="primary" type="button col-auto"
(click)='onSubmit()' [disabled]="!form.valid">Save</button>
<button mat-raised-button class="col-auto" color="primary" type="button col-auto"
(click)='finalize()' [disabled]="!form.valid">Finalize</button>
</div>
</div>
<!-- DELETE BUTTON -->
<div class="col-6" *ngIf="!isNew">
<div class="col-6" *ngIf="viewOnly"></div>
<div class="col-6 d-flex justify-content-end" *ngIf="!isNew">
<div class="row mt-4">
<button mat-raised-button color="primary" (click)="delete()">
<mat-icon>delete</mat-icon>{{'DATASET-PROFILE-EDITOR.ACTIONS.DELETE' | translate}}
</button>
</div>
</div>
</div>
</div>
</div>

View File

@ -657,7 +657,7 @@
"DATASET-STATUS": {
"DRAFT": "Draft",
"FINALISED": "Finalized",
"ANY": "Any DMP status",
"ANY": "Any Dataset status",
"DRAFT-DESC": "Draft Registrations"
},
"DATASET-ROLE": {