-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3472 from ita-social-projects/feat/#7118-add-popu…
…p-change-name-change-adjustment-form [Feat] #7118, #7778: add popup, change manager name, provide optional responsible persons
- Loading branch information
Showing
19 changed files
with
277 additions
and
86 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...-admin-confirm-status-change-pop-up/ubs-admin-confirm-status-change-pop-up.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<div class="container"> | ||
<div class="close-container"> | ||
<button class="close-btn" mat-dialog-close (click)="closeDialog(false)"> | ||
<img src="{{ closeButton }}" alt="close" /> | ||
</button> | ||
</div> | ||
<div class="content-container"> | ||
<h4>{{ 'order-status-confirm.confirm-message' | translate }} {{ data.newOption }}?</h4> | ||
</div> | ||
<div> | ||
<div class="btn-container"> | ||
<button type="reset" class="disagree btn" (click)="closeDialog(false)">{{ 'order-status-confirm.no' | translate }}</button> | ||
<button type="submit" class="agree btn" (click)="closeDialog(true)"> | ||
{{ 'order-status-confirm.yes' | translate }} | ||
</button> | ||
</div> | ||
</div> | ||
</div> |
28 changes: 28 additions & 0 deletions
28
...-admin-confirm-status-change-pop-up/ubs-admin-confirm-status-change-pop-up.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.content-container { | ||
padding: 40px 0 20px; | ||
} | ||
|
||
.btn-container { | ||
text-align: right; | ||
} | ||
|
||
.container { | ||
position: relative; | ||
max-width: 500px; | ||
|
||
.close-container { | ||
position: absolute; | ||
top: -5px; | ||
right: 5px; | ||
} | ||
|
||
.close-btn { | ||
border: none; | ||
background-color: transparent; | ||
outline: none; | ||
|
||
img { | ||
width: 20px; | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...min-confirm-status-change-pop-up/ubs-admin-confirm-status-change-pop-up.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef } from '@angular/material/dialog'; | ||
import { TranslateModule } from '@ngx-translate/core'; | ||
|
||
import { UbsAdminConfirmStatusChangePopUpComponent } from './ubs-admin-confirm-status-change-pop-up.component'; | ||
|
||
describe('UbsAdminConfirmStatusChangePopUpComponent', () => { | ||
let component: UbsAdminConfirmStatusChangePopUpComponent; | ||
let fixture: ComponentFixture<UbsAdminConfirmStatusChangePopUpComponent>; | ||
const matDialogRefStub = jasmine.createSpyObj('matDialogRefStub', ['close']); | ||
matDialogRefStub.close = () => 'Close window'; | ||
|
||
beforeEach(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [UbsAdminConfirmStatusChangePopUpComponent], | ||
imports: [MatDialogModule, TranslateModule.forRoot()], | ||
providers: [ | ||
{ provide: MatDialogRef, useValue: matDialogRefStub }, | ||
{ provide: MAT_DIALOG_DATA, useValue: {} } | ||
] | ||
}); | ||
fixture = TestBed.createComponent(UbsAdminConfirmStatusChangePopUpComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
18 changes: 18 additions & 0 deletions
18
...bs-admin-confirm-status-change-pop-up/ubs-admin-confirm-status-change-pop-up.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Component, Inject } from '@angular/core'; | ||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; | ||
|
||
@Component({ | ||
selector: 'app-ubs-admin-confirm-status-change-pop-up', | ||
templateUrl: './ubs-admin-confirm-status-change-pop-up.component.html', | ||
styleUrls: ['./ubs-admin-confirm-status-change-pop-up.component.scss'] | ||
}) | ||
export class UbsAdminConfirmStatusChangePopUpComponent { | ||
closeButton = './assets/img/profile/icons/cancel.svg'; | ||
constructor( | ||
public dialogRef: MatDialogRef<UbsAdminConfirmStatusChangePopUpComponent>, | ||
@Inject(MAT_DIALOG_DATA) public data: { newOption: string } | ||
) {} | ||
closeDialog(result: boolean): void { | ||
this.dialogRef.close(result); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.