mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
New Services, New Login, Better things
This commit is contained in:
@@ -13,21 +13,21 @@
|
||||
<div class="div-ion-content">
|
||||
<ion-item>
|
||||
<ion-label position="stacked">Assunto</ion-label>
|
||||
<ion-input tpye="text" [(ngModel)]="postEvent.Subject"></ion-input>
|
||||
<ion-input type="text" [(ngModel)]="postEvent.Subject"></ion-input>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
<ion-label position="stacked">Descrição</ion-label>
|
||||
<ion-input tpye="text" [(ngModel)]="postEvent.Body.Text"></ion-input>
|
||||
<ion-input type="text" [(ngModel)]="postEvent.Body.Text"></ion-input>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
<ion-label position="stacked">Localização</ion-label>
|
||||
<ion-input tpye="text" [(ngModel)]="postEvent.Location"></ion-input>
|
||||
<ion-input type="text" [(ngModel)]="postEvent.Location"></ion-input>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
<!-- <ion-item>
|
||||
<ion-label position="stacked">Intervenientes</ion-label>
|
||||
<ion-input tpye="text" [(ngModel)]="postEvent.RequiredAttendees.Name"></ion-input>
|
||||
</ion-item>
|
||||
<ion-list>
|
||||
<ion-input type="text" [(ngModel)]="postEvent.RequiredAttendees.Name"></ion-input>
|
||||
</ion-item> -->
|
||||
<!-- <ion-list>
|
||||
<ion-radio-group value="biff">
|
||||
<ion-item class="radio-button" lines="none">
|
||||
<ion-label>Oficial</ion-label>
|
||||
@@ -39,7 +39,14 @@
|
||||
<ion-radio [(ngModel)]="postEvent.CalendarName" slot="start" value="griff"></ion-radio>
|
||||
</ion-item>
|
||||
</ion-radio-group>
|
||||
</ion-list>
|
||||
</ion-list> -->
|
||||
<ion-item>
|
||||
<ion-label>Selecione o calendário</ion-label>
|
||||
<ion-select [(ngModel)]="postEvent.CalendarName" interface="action-sheet" class="custom-options" Cancel-text="Cancelar">
|
||||
<ion-select-option Pessoal="Reunião">Pessoal</ion-select-option>
|
||||
<ion-select-option Oficial="Viagem">Oficial</ion-select-option>
|
||||
</ion-select>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
<ion-label>Selecione o tipo de evento</ion-label>
|
||||
<ion-select [(ngModel)]="postEvent.EventType" interface="action-sheet" class="custom-options" Cancel-text="Cancelar">
|
||||
@@ -61,7 +68,7 @@
|
||||
displayFormat="D MMM YYYY H:mm"
|
||||
monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez"></ion-datetime>
|
||||
</ion-item>
|
||||
<div class="div-attach">
|
||||
<!-- <div class="div-attach">
|
||||
<ion-item>
|
||||
<ion-icon name="add" slot="end"></ion-icon>
|
||||
<ion-label class="attach-label">Anexos</ion-label>
|
||||
@@ -74,7 +81,7 @@
|
||||
<ion-icon name="trash" slot="end"></ion-icon>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
</div>
|
||||
</div>-->
|
||||
</div>
|
||||
</ion-content>
|
||||
<ion-footer class="ion-no-border">
|
||||
|
||||
@@ -3,6 +3,7 @@ import { ModalController } from '@ionic/angular';
|
||||
|
||||
import { Event } from '../../models/event.model';
|
||||
import { EventsService } from 'src/app/services/events.service';
|
||||
import { EventBody } from 'src/app/models/eventbody.model';
|
||||
|
||||
@Component({
|
||||
selector: 'app-cal-modal',
|
||||
@@ -17,32 +18,13 @@ export class CalModalPage implements AfterViewInit {
|
||||
};
|
||||
|
||||
viewTitle: string;
|
||||
|
||||
public postEvent: Event = {
|
||||
EventId: '',
|
||||
Subject: '',
|
||||
Body: null,
|
||||
Location: '',
|
||||
CalendarId: '',
|
||||
CalendarName: '',
|
||||
StartDate: '',
|
||||
EndDate: '',
|
||||
EventType: '',
|
||||
RequiredAttendees: null,
|
||||
OptionalAttendees: null,
|
||||
HasAttachments: false,
|
||||
IsMeeting: false,
|
||||
IsRecurring: false,
|
||||
AppointmentState: 0,
|
||||
TimeZone: '',
|
||||
Organizer: '',
|
||||
Categories: null,
|
||||
Attachments: null,
|
||||
};
|
||||
|
||||
postEvent: Event;
|
||||
modalReady = false;
|
||||
|
||||
constructor(private modalCtrl: ModalController, private eventService: EventsService) { }
|
||||
constructor(private modalCtrl: ModalController, private eventService: EventsService) {
|
||||
this.postEvent = new Event();
|
||||
this.postEvent.Body = { BodyType : "1", Text : ""};
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
@@ -54,11 +36,8 @@ export class CalModalPage implements AfterViewInit {
|
||||
}
|
||||
|
||||
save(){
|
||||
this.modalCtrl.dismiss({postEvent: this.eventService.AddEvent(this.postEvent)});
|
||||
/* this.eventService.AddEvent(); */
|
||||
console.log("created");
|
||||
|
||||
|
||||
this.eventService.postEvent(this.postEvent, this.postEvent.CalendarName).subscribe();
|
||||
this.modalCtrl.dismiss();
|
||||
}
|
||||
|
||||
onViewTitleChanged(title){
|
||||
|
||||
Reference in New Issue
Block a user