Rename Discard button to Back in Dataset Template Editor (Admin). #7262

This commit is contained in:
Konstantinos Triantafyllou 2021-12-09 16:18:38 +02:00
parent 7a7f12b83a
commit 7b00d14a70
1 changed files with 9 additions and 9 deletions

View File

@ -21,14 +21,14 @@
<span *ngIf="isNewVersion">{{'DATASET-PROFILE-EDITOR.TITLE.NEW-PROFILE-VERSION' | translate}}</span> <span *ngIf="isNewVersion">{{'DATASET-PROFILE-EDITOR.TITLE.NEW-PROFILE-VERSION' | translate}}</span>
{{form.get('label').value}} {{form.get('label').value}}
</h3> </h3>
<h3 *ngIf="!isNew">{{form.get('label').value}}</h3> <h3 *ngIf="!isNew">{{form.get('label').value}}</h3>
</div> </div>
<!-- <div class="d-flex justify-content-end" style="gap: 1em"> <!-- <div class="d-flex justify-content-end" style="gap: 1em">
<button mat-raised-button *ngIf="form.get('status').value==1" class="template_action_btn" (click)="downloadXML();" type="button" [@action-btn]>{{ <button mat-raised-button *ngIf="form.get('status').value==1" class="template_action_btn" (click)="downloadXML();" type="button" [@action-btn]>{{
'DATASET-WIZARD.ACTIONS.DOWNLOAD-XML' | translate }}</button> 'DATASET-WIZARD.ACTIONS.DOWNLOAD-XML' | translate }}</button>
<ng-container *ngIf="!viewOnly"> <ng-container *ngIf="!viewOnly">
<button mat-raised-button class="template_action_btn" type="button" <button mat-raised-button class="template_action_btn" type="button"
*ngIf="stepper.selectedIndex !=2 && !newVersionId" *ngIf="stepper.selectedIndex !=2 && !newVersionId"
@ -168,7 +168,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="col-12"> <div class="col-12">
<!-- <div class="heading">1.3 {{'DMP-EDITOR.FIELDS.LANGUAGE' | translate}}</div> --> <!-- <div class="heading">1.3 {{'DMP-EDITOR.FIELDS.LANGUAGE' | translate}}</div> -->
<div class="heading">1.3 {{'DATASET-PROFILE-EDITOR.STEPS.GENERAL-INFO.DATASET-TEMPLATE-LANGUAGE'| translate}} *</div> <div class="heading">1.3 {{'DATASET-PROFILE-EDITOR.STEPS.GENERAL-INFO.DATASET-TEMPLATE-LANGUAGE'| translate}} *</div>
@ -212,7 +212,7 @@
</table> </table>
</div> </div>
</div> </div>
<div class="col-12"> <div class="col-12">
<div class="row justify-content-end"> <div class="row justify-content-end">
<div class="col d-flex justify-content-end" style="overflow: hidden;"> <div class="col d-flex justify-content-end" style="overflow: hidden;">
@ -222,7 +222,7 @@
</mat-form-field> </mat-form-field>
</div> </div>
</div> </div>
<div class="col-auto"> <div class="col-auto">
<button mat-mini-fab color="primary" (click)="addUser(email)" (focus)="onUserButtonFocus()" (blur)="onUserButtonBlur()" [matTooltip]="'DATASET-PROFILE-EDITOR.STEPS.GENERAL-INFO.DATASET-TEMPLATE-VALIDATE-AND-ADD-USER'| translate" [disabled]="userFormDisabled"> <button mat-mini-fab color="primary" (click)="addUser(email)" (focus)="onUserButtonFocus()" (blur)="onUserButtonBlur()" [matTooltip]="'DATASET-PROFILE-EDITOR.STEPS.GENERAL-INFO.DATASET-TEMPLATE-VALIDATE-AND-ADD-USER'| translate" [disabled]="userFormDisabled">
<ng-container *ngIf="inputUserState === 'untriggered' else triggericon"> <ng-container *ngIf="inputUserState === 'untriggered' else triggericon">
@ -238,7 +238,7 @@
</div> </div>
<!-- <div class="col-12"> <!-- <div class="col-12">
<button mat-button class="full-width" (click)="addPage()" <button mat-button class="full-width" (click)="addPage()"
[disabled]="viewOnly">{{'DATASET-PROFILE-EDITOR.ACTIONS.NEXT' | translate}}</button> [disabled]="viewOnly">{{'DATASET-PROFILE-EDITOR.ACTIONS.NEXT' | translate}}</button>
@ -377,7 +377,7 @@
</div> </div>
<div class="col"> <div class="col">
<app-final-preview-component [formGroup]="formGroup" [visibilityRules]="visibilityRules"> <app-final-preview-component [formGroup]="formGroup" [visibilityRules]="visibilityRules">
</app-final-preview-component> </app-final-preview-component>
</div> </div>
</div> </div>
@ -394,7 +394,7 @@
</mat-horizontal-stepper> </mat-horizontal-stepper>
<!-- <!--
<ng-container *ngIf="false"> <ng-container *ngIf="false">
<div class="d-flex"> <div class="d-flex">
@ -478,7 +478,7 @@
<ng-template #actions> <ng-template #actions>
<div class="actions-template"> <div class="actions-template">
<button mat-raised-button class="template_action_btn" (click)="discardChanges()">{{'DMP-EDITOR.ACTIONS.DISCARD' | translate}}</button> <button mat-raised-button class="template_action_btn" (click)="discardChanges()">{{'DATASET-WIZARD.ACTIONS.BACK' | translate}}</button>
<button mat-raised-button class="template_action_btn save-btn" (click)="onSubmit()" [disabled]="!form.valid || viewOnly">{{'DATASET-PROFILE-EDITOR.ACTIONS.SAVE' |translate}}</button> <button mat-raised-button class="template_action_btn save-btn" (click)="onSubmit()" [disabled]="!form.valid || viewOnly">{{'DATASET-PROFILE-EDITOR.ACTIONS.SAVE' |translate}}</button>
</div> </div>
</ng-template> </ng-template>