mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Changes on Home view
This commit is contained in:
@@ -25,6 +25,10 @@ const routes: Routes = [
|
||||
{
|
||||
path: 'attachments',
|
||||
children: [
|
||||
{
|
||||
path:'',
|
||||
loadChildren: ()=> import('../pages/events/attachments/attachments.module').then(m => m.AttachmentsPageModule)
|
||||
},
|
||||
{
|
||||
path:':eventId',
|
||||
loadChildren: ()=> import('../pages/events/attachments/attachments.module').then(m => m.AttachmentsPageModule)
|
||||
|
||||
@@ -22,6 +22,11 @@
|
||||
/* .item{
|
||||
background: red !important;
|
||||
} */
|
||||
.input-wrapper{
|
||||
border-left: red !important;
|
||||
/* background: red; */
|
||||
margin-left: 1px solid red;
|
||||
}
|
||||
}
|
||||
|
||||
.with-event {
|
||||
|
||||
@@ -56,7 +56,7 @@ export class AgendaPage implements OnInit {
|
||||
|
||||
this.router.events.forEach((event) => {
|
||||
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||
this.loading();
|
||||
/* this.loading(); */
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -12,15 +12,19 @@
|
||||
<ion-content>
|
||||
<div class="div-ion-content">
|
||||
<ion-item>
|
||||
<ion-label position="stacked">Assunto</ion-label>
|
||||
<ion-label>Assunto</ion-label>
|
||||
<ion-input type="text" [(ngModel)]="postEvent.Subject"></ion-input>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
<ion-label position="stacked">Descrição</ion-label>
|
||||
<!-- <ion-item>
|
||||
<ion-label>Descrição</ion-label>
|
||||
<ion-input type="text" [(ngModel)]="postEvent.Body.Text"></ion-input>
|
||||
</ion-item> -->
|
||||
<ion-item>
|
||||
<ion-label>Descrição</ion-label>
|
||||
<ion-textarea [(ngModel)]="postEvent.Body.Text" placeholder=""></ion-textarea>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
<ion-label position="stacked">Localização</ion-label>
|
||||
<ion-label>Localização</ion-label>
|
||||
<ion-input type="text" [(ngModel)]="postEvent.Location"></ion-input>
|
||||
</ion-item>
|
||||
<!-- <ion-item>
|
||||
@@ -69,21 +73,23 @@
|
||||
monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez"></ion-datetime>
|
||||
</ion-item>
|
||||
<!-- <div class="div-attach">
|
||||
<ion-item>
|
||||
<ion-icon name="add" slot="end"></ion-icon>
|
||||
<ion-item lines="none">
|
||||
<ion-icon name="add" slot="end" (click)="addAttendees()"></ion-icon>
|
||||
<ion-label class="attach-label">Intervenientes</ion-label>
|
||||
</ion-item>
|
||||
<div id="AttachFiles"></div>
|
||||
</div>
|
||||
<div class="div-attach">
|
||||
<ion-item lines="none">
|
||||
<ion-icon name="add" slot="end" (click)="showAlert()"></ion-icon>
|
||||
<ion-label class="attach-label">Anexos</ion-label>
|
||||
</ion-item>
|
||||
<div id="AttachFiles"></div>
|
||||
<ion-list [(ngModel)]="postEvent.Attachments">
|
||||
<ion-item lines="none">
|
||||
<ion-icon name="attach"></ion-icon>
|
||||
<ion-label color="secondary">Lei do orçamento geral do Estado</ion-label>
|
||||
<ion-icon name="trash" slot="end"></ion-icon>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
</div>-->
|
||||
</div>
|
||||
</div>
|
||||
</ion-content>
|
||||
|
||||
|
||||
<ion-footer class="ion-no-border">
|
||||
<ion-toolbar color="primary">
|
||||
<ion-buttons slot="start">
|
||||
|
||||
@@ -13,4 +13,11 @@
|
||||
border: 1px solid #ccc;
|
||||
margin: 15px 0 0 0;
|
||||
padding: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ion-item{
|
||||
display: block;
|
||||
border: 1px solid red;
|
||||
width: 100%;
|
||||
float: left;
|
||||
} */
|
||||
@@ -5,6 +5,10 @@ import { Event } from '../../models/event.model';
|
||||
import { EventsService } from 'src/app/services/events.service';
|
||||
import { EventBody } from 'src/app/models/eventbody.model';
|
||||
|
||||
import { AttendeeModalPage } from '../events/attendee-modal/attendee-modal.page';
|
||||
import { EventPerson } from 'src/app/models/eventperson.model';
|
||||
import { AlertService } from 'src/app/services/alert.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-cal-modal',
|
||||
templateUrl: './cal-modal.page.html',
|
||||
@@ -21,9 +25,13 @@ export class CalModalPage implements AfterViewInit {
|
||||
postEvent: Event;
|
||||
modalReady = false;
|
||||
|
||||
constructor(private modalCtrl: ModalController, private eventService: EventsService) {
|
||||
eventAttendees: EventPerson[];
|
||||
segment:string = "true";
|
||||
|
||||
constructor(private modalCtrl: ModalController, private eventService: EventsService, private alertController:AlertService) {
|
||||
this.postEvent = new Event();
|
||||
this.postEvent.Body = { BodyType : "1", Text : ""};
|
||||
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -52,4 +60,46 @@ export class CalModalPage implements AfterViewInit {
|
||||
close(){
|
||||
this.modalCtrl.dismiss();
|
||||
}
|
||||
|
||||
|
||||
|
||||
async addAttendees()
|
||||
{
|
||||
const modal = await this.modalCtrl.create({
|
||||
component: AttendeeModalPage,
|
||||
componentProps: {
|
||||
eventPersons: this.eventAttendees
|
||||
},
|
||||
cssClass: 'attendee-modal',
|
||||
backdropDismiss: false
|
||||
});
|
||||
|
||||
await modal.present();
|
||||
|
||||
modal.onDidDismiss().then((data) => {
|
||||
let newattendees: EventPerson[] = data['data'];
|
||||
console.log(this.eventAttendees);
|
||||
|
||||
if (newattendees != null)
|
||||
{
|
||||
newattendees.forEach(newattendee => {
|
||||
let att = {
|
||||
"EmailAddress": newattendee.EmailAddress,
|
||||
"Name": newattendee.Name,
|
||||
"IsRequired": (this.segment == "true")
|
||||
};
|
||||
if (this.eventAttendees == null)
|
||||
{
|
||||
this.eventAttendees = new Array();
|
||||
}
|
||||
this.postEvent.Attendees = this.eventAttendees;
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
showAlert(){
|
||||
this.alertController.presentAlert("Funcionalidade em desenvolvimento");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
</ion-list>
|
||||
</ion-item-group>
|
||||
</ion-content>
|
||||
|
||||
|
||||
<ion-footer class="ion-no-border">
|
||||
<ion-toolbar color="primary">
|
||||
<ion-buttons slot="start">
|
||||
@@ -44,6 +46,7 @@
|
||||
<ion-icon name="close" slot="start"></ion-icon>
|
||||
</ion-button>
|
||||
</ion-buttons>
|
||||
<ion-title></ion-title>
|
||||
<ion-buttons slot="end">
|
||||
<ion-button (click)="save()">
|
||||
<ion-label>Gravar</ion-label>
|
||||
|
||||
@@ -4,8 +4,3 @@ ion-item-group{
|
||||
ion-item{
|
||||
border-bottom:1px solid #ccc;
|
||||
}
|
||||
ion-button{
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
@@ -15,6 +15,7 @@
|
||||
<ion-content padding>
|
||||
<div *ngIf="loadedEvent">
|
||||
<ion-item-group>
|
||||
<ion-item-sliding>
|
||||
<ion-item>
|
||||
<ion-label position="stacked">Assunto</ion-label>
|
||||
<ion-input [(ngModel)]="loadedEvent.Subject"></ion-input>
|
||||
@@ -85,6 +86,35 @@
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
</div>
|
||||
<!-- <div class="div-attach">
|
||||
<ion-item>
|
||||
<ion-icon name="add" slot="end"></ion-icon>
|
||||
<ion-label class="attach-label">Intervenientes</ion-label>
|
||||
</ion-item>
|
||||
<div id="AttachFiles"></div>
|
||||
<ion-list [(ngModel)]="loadedEvent.EventType">
|
||||
<ion-item lines="none">
|
||||
<ion-icon name="attach"></ion-icon>
|
||||
<ion-label color="secondary">Lei do orçamento geral do Estado</ion-label>
|
||||
<ion-icon name="trash" slot="end"></ion-icon>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
</div>
|
||||
<div class="div-attach">
|
||||
<ion-item>
|
||||
<ion-icon name="add" slot="end"></ion-icon>
|
||||
<ion-label class="attach-label">Anexos</ion-label>
|
||||
</ion-item>
|
||||
<div id="AttachFiles"></div>
|
||||
<ion-list [(ngModel)]="loadedEvent.EventType">
|
||||
<ion-item lines="none">
|
||||
<ion-icon name="attach"></ion-icon>
|
||||
<ion-label color="secondary">Lei do orçamento geral do Estado</ion-label>
|
||||
<ion-icon name="trash" slot="end"></ion-icon>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
</div> -->
|
||||
</ion-item-sliding>
|
||||
</ion-item-group>
|
||||
</div>
|
||||
<!-- Skeleton screen -->
|
||||
@@ -150,7 +180,11 @@
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</ion-content>
|
||||
<ion-footer class="ion-no-border">
|
||||
<div class="event-detail-buttons">
|
||||
|
||||
@@ -1,10 +1,20 @@
|
||||
<ion-header translucent="true">
|
||||
<ion-toolbar>
|
||||
<ion-buttons slot="start" class="logout-button" (click)="logout()">
|
||||
<ion-item class="ion-text-header-top" lines="none">
|
||||
<div class="div-logo">
|
||||
<img src='assets/images/logo.png' alt='logo'>
|
||||
</div>
|
||||
<ion-label>
|
||||
<h6 class="header-xsmall">Presidente da República</h6>
|
||||
<h2 class="header-large">GABINETE DIGITAL</h2>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
<!-- <ion-buttons slot="start" class="logout-button" (click)="logout()">
|
||||
<ion-icon slot="start" name="log-out-outline"></ion-icon>
|
||||
<ion-label>Sair</ion-label>
|
||||
</ion-buttons>
|
||||
</ion-buttons> -->
|
||||
<!-- customized TOGGLE button -->
|
||||
<ion-buttons slot="end">
|
||||
<label class="switch">
|
||||
<input type="checkbox" id="togBtn">
|
||||
<div (click)="showAlert()">
|
||||
@@ -12,10 +22,11 @@
|
||||
<!--ADDED HTML --><span class="mdgpr">MDGPR</span></div><span class="pr">PR</span><!--END-->
|
||||
</div>
|
||||
</label>
|
||||
</ion-buttons>
|
||||
</ion-toolbar>
|
||||
<ion-toolbar>
|
||||
<ion-label>
|
||||
<ion-item class="ion-text-header-top" lines="none">
|
||||
<!-- <ion-item class="ion-text-header-top" lines="none">
|
||||
<div class="div-logo">
|
||||
<img src='assets/images/logo.png' alt='logo'>
|
||||
</div>
|
||||
@@ -23,21 +34,18 @@
|
||||
<h6 class="header-xsmall">Presidente da República</h6>
|
||||
<h2 class="header-large">GABINETE DIGITAL</h2>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
</ion-item> -->
|
||||
<ion-item class="ion-text-right" lines="none">
|
||||
<ion-label class="ion-text-wrap">
|
||||
<h3 class="header-medium"> {{greetting}} Sua Excelência <br />
|
||||
Ministro Director do Gabinete do<br />
|
||||
<h3 class="header-medium"> {{greetting}} Excelência <br />
|
||||
Ministro Director do Gabinete do<!-- <br /> -->
|
||||
Presidente da República
|
||||
</h3>
|
||||
<p class="p-small">{{customDate}}</p>
|
||||
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
</ion-label>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
</ion-toolbar>
|
||||
<!-- TABS -->
|
||||
<ion-toolbar >
|
||||
<ion-segment [(ngModel)]="segment" (ionChange)="onSegmentChange()">
|
||||
@@ -52,13 +60,20 @@
|
||||
</ion-segment-button>
|
||||
</ion-segment>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
|
||||
<ion-label>
|
||||
<p class="p-small">{{customDate}}</p>
|
||||
</ion-label>
|
||||
<!-- COMBINADA -->
|
||||
<div [ngSwitch]="segment">
|
||||
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
||||
<!-- <ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
||||
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
|
||||
<!-- <ion-refresher-content>
|
||||
</ion-refresher-content> -->
|
||||
</ion-refresher>
|
||||
<ion-refresher-content>
|
||||
</ion-refresher-content>
|
||||
</ion-refresher> -->
|
||||
<ion-list *ngSwitchCase="'Combinada'" >
|
||||
<ion-item-group>
|
||||
<ion-item-sliding>
|
||||
|
||||
@@ -3,39 +3,49 @@ ion-toolbar{
|
||||
--background: white;
|
||||
}
|
||||
.ion-text-header-top{
|
||||
width: 100%;
|
||||
|
||||
text-align: center;
|
||||
padding-top: 15px;
|
||||
|
||||
/* border: 1px solid red; */
|
||||
}
|
||||
.div-logo{
|
||||
width: 98px;
|
||||
width: 60px;
|
||||
/* border: 1px solid red; */
|
||||
margin-right: 20px;
|
||||
}
|
||||
.div-logo img{
|
||||
width: 100%;
|
||||
}
|
||||
.header-large{
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 16pt;
|
||||
font-size: 12.5pt;
|
||||
/* font-weight: 600; */
|
||||
}
|
||||
.header-medium{
|
||||
font-size: 16pt;
|
||||
font-family: roboto;
|
||||
background: transparent;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.header-xsmall{
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 12.7pt;
|
||||
font-size: 9.7pt;
|
||||
font-weight: bold;
|
||||
padding-bottom: 3.5px;
|
||||
margin-bottom: 3.5px;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
.p-small{
|
||||
.header-medium{
|
||||
font-size: 12pt;
|
||||
margin-top: 25px;
|
||||
color:#000;
|
||||
text-align: left;
|
||||
font-family: roboto;
|
||||
background: transparent;
|
||||
margin-right: 5px;
|
||||
line-height: 25px;
|
||||
}
|
||||
|
||||
.p-small{
|
||||
font-size: 13pt;
|
||||
margin-top: 13px;
|
||||
color:#000;
|
||||
margin-right: 25px !important;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* CONTENT */
|
||||
@@ -59,7 +69,7 @@ ion-toolbar{
|
||||
overflow: auto;
|
||||
/* border-bottom: 1px solid #ccc; */
|
||||
margin: 10px 0 5px 0;
|
||||
/* background: #cab0dc; */
|
||||
background: #cab0dc;
|
||||
border-radius: 20px;
|
||||
padding: 10px;
|
||||
/* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */
|
||||
@@ -69,7 +79,7 @@ ion-toolbar{
|
||||
overflow: auto;
|
||||
/* border-bottom: 1px solid #ccc; */
|
||||
margin: 10px 0 5px 0;
|
||||
/* background: #cbeecb; */
|
||||
background: #cbeecb;
|
||||
border-radius: 20px;
|
||||
padding: 10px;
|
||||
/* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
<ion-buttons slot="start">
|
||||
<ion-back-button defaultHref="/expediente"></ion-back-button>
|
||||
</ion-buttons>
|
||||
<ion-title>Detalhes do Documento</ion-title>
|
||||
<ion-title>Detalhes do Processo</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ export const environment = {
|
||||
production: false,
|
||||
apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/v2/api/',
|
||||
domain: 'gabinetedigital.local',
|
||||
defaultuser: '',
|
||||
defaultuser: 'paulo.pinto',
|
||||
defaultuserpwd: 'tabteste@006'
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user