This commit is contained in:
Peter Maquiran
2021-07-20 19:22:11 +01:00
parent f80394d830
commit a3b753dad9
13 changed files with 204 additions and 17 deletions
@@ -0,0 +1,17 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { EliminateEventPage } from './eliminate-event.page';
const routes: Routes = [
{
path: '',
component: EliminateEventPage
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class EliminateEventPageRoutingModule {}
@@ -0,0 +1,20 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { EliminateEventPageRoutingModule } from './eliminate-event-routing.module';
import { EliminateEventPage } from './eliminate-event.page';
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
EliminateEventPageRoutingModule
],
declarations: [EliminateEventPage]
})
export class EliminateEventPageModule {}
@@ -0,0 +1,19 @@
<ion-header class="ion-no-border">
</ion-header>
<ion-content>
<div class="header-content width-100">
<div class="header-title d-flex width-100">
<h3>Deseja retirar este expediente da sua caixa de correspondência?</h3>
</div>
</div>
<div class="header-body width-100">
<p>Nota: Ao efectuar esta operação, o tratamento deste expediente não poderá ser realizado a partir da caixa de correspondência</p>
</div>
</ion-content>
<ion-footer>
<div class="buttons width-100">
<button class="btn-ok-medium" shape="round" (click)="close()">Não</button>
<button class="btn-delete-medium" shape="round" (click)="save()">Sim</button>
</div>
</ion-footer>
@@ -0,0 +1,27 @@
ion-content{
--padding-top:15px;
--padding-start: 15px;
--padding-end: 15px;
}
.header-content{
overflow: hidden;
margin: 0 auto;
align-items: center;
justify-content: center;
}
.header-title{
font-family: Roboto;
font-size: 20px;
color:#000;
margin: 0 5px 0 5px;
}
.header-body{
margin: 0 5px 0 5px;
}
.buttons{
display: flex;
justify-content: space-between;
padding: 15px 0 15px 0;
}
@@ -0,0 +1,24 @@
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { EliminateEventPage } from './eliminate-event.page';
describe('EliminateEventPage', () => {
let component: EliminateEventPage;
let fixture: ComponentFixture<EliminateEventPage>;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ EliminateEventPage ],
imports: [IonicModule.forRoot()]
}).compileComponents();
fixture = TestBed.createComponent(EliminateEventPage);
component = fixture.componentInstance;
fixture.detectChanges();
}));
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -0,0 +1,24 @@
import { Component, OnInit } from '@angular/core';
import { ModalController } from '@ionic/angular';
@Component({
selector: 'app-eliminate-event',
templateUrl: './eliminate-event.page.html',
styleUrls: ['./eliminate-event.page.scss'],
})
export class EliminateEventPage implements OnInit {
constructor(private modalController: ModalController,) { }
ngOnInit() {
}
close(){
this.modalController.dismiss('No');
}
save(){
this.modalController.dismiss('Yes');
}
}