Edit task detail page and add integration methods

This commit is contained in:
Tiago Kayaya
2020-11-06 14:39:09 +01:00
parent bfa4f2ec91
commit d3dd83c8a8
13 changed files with 196 additions and 20 deletions
@@ -0,0 +1,17 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { EventActionsPopoverPage } from './event-actions-popover.page';
const routes: Routes = [
{
path: '',
component: EventActionsPopoverPage
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class EventActionsPopoverPageRoutingModule {}
@@ -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 { EventActionsPopoverPageRoutingModule } from './event-actions-popover-routing.module';
import { EventActionsPopoverPage } from './event-actions-popover.page';
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
EventActionsPopoverPageRoutingModule
],
declarations: [EventActionsPopoverPage]
})
export class EventActionsPopoverPageModule {}
@@ -0,0 +1,15 @@
<ion-list>
<ion-item>
<p>
<ion-button class="button-edit-event" shape="round" (click)="editTask()">Emendar</ion-button>
</p>
<p>
<ion-button class="button-approve" shape="round" (click)="approveTask()">Aprovar</ion-button>
</p>
</ion-item>
<ion-item lines="none">
<p>
<ion-button class="button-discart-event" shape="round" (click)="deleteTask()">Rejeitar</ion-button>
</p>
</ion-item>
</ion-list>
@@ -0,0 +1,24 @@
.button-edit-event {
/* width: 140px; */
height: 44px;
border-radius: 22.5px;
--background: #e0e9ee;
--color:#061b52;
}
.button-options {
height: 44px;
--color: #42b9fe;
}
.button-approve {
/* width: 140px; */
height: 44px;
border-radius: 22.5px;
--background: #42b9fe;
}
.button-discart-event {
/* width: 140px; */
height: 44px;
border-radius: 22.5px;
--background: #d30a0a;
--color:#fff;
}
@@ -0,0 +1,24 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { EventActionsPopoverPage } from './event-actions-popover.page';
describe('EventActionsPopoverPage', () => {
let component: EventActionsPopoverPage;
let fixture: ComponentFixture<EventActionsPopoverPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ EventActionsPopoverPage ],
imports: [IonicModule.forRoot()]
}).compileComponents();
fixture = TestBed.createComponent(EventActionsPopoverPage);
component = fixture.componentInstance;
fixture.detectChanges();
}));
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -0,0 +1,29 @@
import { Component, OnInit } from '@angular/core';
import { NavParams, PopoverController } from '@ionic/angular';
@Component({
selector: 'app-event-actions-popover',
templateUrl: './event-actions-popover.page.html',
styleUrls: ['./event-actions-popover.page.scss'],
})
export class EventActionsPopoverPage implements OnInit {
constructor(private navParams: NavParams,
private popoverController: PopoverController,) { }
ngOnInit() {
}
closePopover(){
this.popoverController.dismiss();
}
approveTask(){
}
editTask(){
}
deleteTask(){
}
}