2021-07-29 10:13:39 +01:00
< ion-content >
< div class = "main-content d-flex height-100" >
< div class = "content d-flex flex-column width-100 height-100 " >
< div class = "header-content header-default-padding" >
< div class = "header-title" >
<!-- *ngIf="p.userRole('PR')" -->
<!-- *ngIf="p.role(['PR','MD']).permissionAnyOf(['view','edit'])" -->
2022-01-20 14:51:34 +01:00
2023-02-09 11:25:57 +01:00
< label > Convocar Reunião< / label > < br >
< i style = "margin-top: -3px; font-size: 15px;" > Campos marcados com * são obrigatórios< / i >
2021-07-29 10:13:39 +01:00
< / div >
< / div >
< div class = "overflow-y-auto content-default-padding" >
< div class = "ion-item-container width-100" [ class . input-error ] = " Form ? . get ( ' Subject ' ) ? . invalid & & validateFrom " >
2022-01-20 14:51:34 +01:00
< ion-input autocomplete = "on" autocorrect = "on" spellcheck = "true" placeholder = "Assunto*" [ ( ngModel ) ] = " postData . Subject " > < / ion-input >
2021-07-29 10:13:39 +01:00
< / div >
< div * ngIf = "Form && validateFrom" >
< div * ngIf = "Form.get('Subject').invalid " class = "input-errror-message" >
< div * ngIf = "Form.get('Subject').errors?.required" >
Campo obrigatório.
< / div >
< div * ngIf = "Form.get('Subject').errors?.minlength" >
O campo deve ter pelo menos 4 caracteres.
< / div >
< / div >
< / div >
< div class = "container-div width-100" >
< div class = "ion-item-class-2 width-100" >
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-location.svg" > < / ion-icon >
< / div >
< div class = "ion-input-class" [ class . input-error ] = " Form ? . get ( ' Location ' ) ? . invalid & & validateFrom " >
2022-01-20 14:51:34 +01:00
< ion-input autocomplete = "on" autocorrect = "on" spellcheck = "true" placeholder = "Localização*" [ ( ngModel ) ] = " postData . Location " > < / ion-input >
2021-07-29 10:13:39 +01:00
< / div >
< / div >
< / div >
<!-- <div *ngIf="Form && validateFrom" >
<div *ngIf="Form.get('Location').invalid " class="input - errror - message">
<div *ngIf="Form.get('Location').errors?.required">
Campo obrigatório.
</div>
<div *ngIf="Form.get('Location').errors?.minlength">
O campo deve ter pelo menos 4 caracteres.
</div>
</div>
</div> -->
2022-06-13 15:27:28 +01:00
< div class = "container-div" ( click ) = " changeAgenda ( ) " >
< div class = "ion-item-class-2 d-flex" >
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-calendar.svg" > < / ion-icon >
< / div >
< div class = "ion-input-class flex-grow-1 justify-center align-center material-inputs " [ class . input-error ] = " Form ? . get ( ' CalendarName ' ) ? . invalid & & validateFrom " >
< mat-form-field appearance = "none" class = "width-100" color = "ion-color-secondary" placeholder = "Selecione agenda" >
< mat-select [ ( value ) ] = " CalendarName " ( selectionChange ) = " changeAgenda ( ) " >
2023-02-09 11:25:57 +01:00
<!-- <mat - option *ngFor="let calendars of _eventService.calendarNamesAry; let i = index" value="{{calendars}}">
<div *ngIf="calendars != 'Meu calendario' && calendars == 'Presidente da República'"> Agenda do PR </div>
<div *ngIf="calendars != 'Meu calendario' && calendars == 'Ministro e Director do Gabinete do PR'"> Agenda do MD </div>
<div *ngIf="calendars != 'Meu calendario' && calendars != 'Ministro e Director do Gabinete do PR' && calendars != 'Presidente da República'"> Agenda do {{calendars}} </div>
<div *ngIf="calendars == 'Meu calendario'"> Minha agenda </div> -->
2023-02-09 17:03:26 +01:00
< mat-option * ngFor = "let calendars of _eventService.calendarNamesAry" value = "{{calendars.Fullname || calendars}}" >
< div * ngIf = "calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'" > Agenda do PR < / div >
< div * ngIf = "calendars != 'Meu calendario' && calendars.Role == 'Ministro e Director do Gabinete do PR'" > Agenda do MD < / div >
< div * ngIf = "calendars != 'Meu calendario' && calendars.Role != 'Ministro e Director do Gabinete do PR' && calendars.Role != 'Presidente da República'" > Agenda do {{calendars.FullName}} < / div >
< div * ngIf = "calendars == 'Meu calendario'" > Minha agenda < / div >
2022-06-13 15:27:28 +01:00
< / mat-option >
< / mat-select >
< / mat-form-field >
< / div >
< / div >
< / div >
2021-07-29 10:13:39 +01:00
< div class = "container-div" >
< div class = "ion-item-class-2" >
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-calendar.svg" > < / ion-icon >
< / div >
< div class = "ion-input-class" >
2023-02-06 11:38:15 +01:00
< mat-form-field floatLabel = "never" appearance = "none" class = "d-md-block width-100" >
2021-07-29 10:13:39 +01:00
< mat-select placeholder = "Selecione agenda" [ ( ngModel ) ] = " postData . CalendarName " >
< mat-option value = "Oficial" >
Oficial
< / mat-option >
< mat-option value = "Pessoal" >
Pessoal
< / mat-option >
< / mat-select >
< / mat-form-field >
< / div >
< / div >
< / div >
< div class = "container-div" >
< div class = "ion-item-class-2" >
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-calendar.svg" > < / ion-icon >
< / div >
< div class = "ion-input-class" [ class . input-error ] = " Form ? . get ( ' Categories ' ) ? . invalid & & validateFrom " >
2023-02-06 11:38:15 +01:00
< mat-form-field class = "d-md-block" appearance = "none" class = "width-100" placeholder = "Sample Type" required >
2021-07-29 10:13:39 +01:00
<!-- <input matInput type="text" > -->
< mat-select [ ( ngModel ) ] = " postData . Category " >
< mat-option value = "Reunião" >
Reunião
< / mat-option >
< mat-option value = "Viagem" >
Viagem
< / mat-option >
< mat-option value = "Conferência" >
Conferência
< / mat-option >
< mat-option value = "Encontro" >
Encontro
< / mat-option >
< / mat-select >
< / mat-form-field >
< / div >
< / div >
< / div >
< div class = "container-div" >
< div class = "ion-item-class-2" >
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-calendar.svg" > < / ion-icon >
< / div >
< div class = "ion-input-class" [ class . input-error ] = " Form ? . get ( ' Date ' ) ? . invalid & & validateFrom " >
2023-02-06 11:38:15 +01:00
< mat-form-field appearance = "none" class = "width-100 date-hour-picker" >
2021-07-29 10:13:39 +01:00
< input matInput [ ngxMatDatetimePicker ] = " picker1 "
2021-08-11 17:05:37 +01:00
placeholder = "Início*"
2021-08-20 12:02:27 +01:00
[ ( ngModel ) ] = " postData . StartDate "
2021-07-29 10:13:39 +01:00
[ disabled ] = " disabled "
>
2023-02-06 16:30:11 +01:00
< mat-datepicker-toggle id = "new-inicio" matSuffix [ for ] = " picker1 " > < / mat-datepicker-toggle >
2021-07-29 10:13:39 +01:00
< ngx-mat-datetime-picker # picker1
[ showSpinners ] = " showSpinners "
[ showSeconds ] = " showSeconds "
[ stepHour ] = " stepHour " [ stepMinute ] = " stepMinute "
[ stepSecond ] = " stepSecond "
[ touchUi ] = " touchUi " >
< / ngx-mat-datetime-picker >
< / mat-form-field >
< / div >
< / div >
< / div >
< div class = "container-div" >
< div class = "ion-item-class-2" >
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-calendar.svg" > < / ion-icon >
< / div >
< div class = "ion-input-class flex-grow-1" [ class . input-error ] = " Form ? . get ( ' Date ' ) ? . invalid & & validateFrom " >
2023-02-06 11:38:15 +01:00
< mat-form-field appearance = "none" class = "date-hour-picker width-100 " >
2021-07-29 10:13:39 +01:00
< input matInput [ ngxMatDatetimePicker ] = " fim "
2021-08-11 17:05:37 +01:00
placeholder = "Fim*"
2021-08-20 12:02:27 +01:00
[ ( ngModel ) ] = " postData . EndDate "
2021-07-29 10:13:39 +01:00
[ disabled ] = " disabled "
2023-02-06 13:52:08 +01:00
[ min ] = " postData . StartDate "
2021-07-29 10:13:39 +01:00
>
2023-02-06 16:30:11 +01:00
< mat-datepicker-toggle id = "new-fim" matSuffix [ for ] = " fim " > < / mat-datepicker-toggle >
2021-07-29 10:13:39 +01:00
< ngx-mat-datetime-picker # fim
[ showSpinners ] = " showSpinners "
[ showSeconds ] = " showSeconds "
[ stepHour ] = " stepHour " [ stepMinute ] = " stepMinute "
[ stepSecond ] = " stepSecond "
[ touchUi ] = " touchUi " >
< / ngx-mat-datetime-picker >
< / mat-form-field >
< / div >
< / div >
< / div >
2022-12-17 17:08:13 +01:00
<!-- <div class="container - div width - 100">
2021-08-06 14:34:39 +01:00
<div class="ion - item - class - 2 d - flex">
2021-07-29 10:13:39 +01:00
<div class="ion - icon - class">
<ion - icon slot="start" src="assets/images/icons - refresh.svg"></ion - icon>
</div>
2021-08-06 14:34:39 +01:00
<div class="ion - input - class flex - grow - 1" [class.input - error]="Form?.get('dateOccurrence')?.invalid && validateFrom ">
2022-01-20 14:51:34 +01:00
2022-12-19 00:07:05 +01:00
2021-08-06 14:34:39 +01:00
<mat - form - field appearance="none" floatLabel="never" class="width - 100" value="false" interface="action - sheet" required>
<mat - select placeholder="Selecione repetição*"
2021-08-09 13:56:17 +01:00
[(ngModel)]="EventRecurrenceType"
>
2021-08-06 14:34:39 +01:00
<mat - option
2021-08-09 13:56:17 +01:00
*ngFor="let recurring of recurringTypes" value="{{recurring.Code}}"
2021-08-06 14:34:39 +01:00
>
{{recurring.Description}}
2021-07-29 10:13:39 +01:00
</mat - option>
</mat - select>
</mat - form - field>
2022-01-20 14:51:34 +01:00
2021-07-29 10:13:39 +01:00
</div>
</div>
2022-12-17 17:08:13 +01:00
</div> -->
2021-07-29 10:13:39 +01:00
2021-08-06 14:34:39 +01:00
< div * ngIf = "EventRecurrenceType != '-1'" class = "container-div width-100" >
< div class = "ion-item-class-2 d-flex" >
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-calendar.svg" > < / ion-icon >
< / div >
2021-08-09 13:56:17 +01:00
<!-- (click)="openLastOccurrence()" -->
< div class = "ion-input-class flex-grow-1" >
2022-01-20 14:51:34 +01:00
2021-08-06 14:34:39 +01:00
< mat-form-field class = "date-hour-picker" >
< input matInput [ ngxMatDatetimePicker ] = " occurrrence "
2021-08-11 17:05:37 +01:00
placeholder = "Última ocurrência"
2021-08-06 14:34:39 +01:00
[ ( ngModel ) ] = " Occurrence "
[ disabled ] = " disabled "
>
< mat-datepicker-toggle id = "last-occurrence" matSuffix [ for ] = " occurrrence " > < / mat-datepicker-toggle >
< ngx-mat-datetime-picker # occurrrence
[ showSpinners ] = " showSpinners "
[ showSeconds ] = " showSeconds "
[ stepHour ] = " stepHour " [ stepMinute ] = " stepMinute "
[ stepSecond ] = " stepSecond "
[ touchUi ] = " touchUi "
>
< / ngx-mat-datetime-picker >
< / mat-form-field >
2022-01-20 14:51:34 +01:00
2021-08-06 14:34:39 +01:00
< / div >
< / div >
< / div >
2021-07-29 10:13:39 +01:00
< div class = "container-div" >
< div class = "ion-item-class-2" >
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-person.svg" > < / ion-icon >
< / div >
2021-08-11 17:05:37 +01:00
< div class = "ion-input-class-no-height cursor-pointer" [ class . input-error ] = " Form ? . get ( ' participantes ' ) ? . invalid & & validateFrom " ( click ) = " addParticipants ( ) " >
2021-07-29 10:13:39 +01:00
< div class = "list-people" >
< ion-item lines = "none" >
< ion-list >
< ion-label * ngIf = "taskParticipants?.length < 1" class = "list-people-title" > Adicionar intervenientes*< / ion-label >
< ion-label * ngFor = "let participant of taskParticipants" > {{participant.Name}}< / ion-label >
< / ion-list >
< / ion-item >
< / div >
2021-08-11 17:05:37 +01:00
< div class = "add-people" >
2021-10-22 15:43:57 +01:00
< ion-icon * ngIf = "ThemeService.currentTheme == 'default' " slot = "start" src = "assets/images/icons-arrow-forward.svg" > < / ion-icon >
< ion-icon * ngIf = "ThemeService.currentTheme == 'gov' " slot = "start" src = "assets/images/theme/gov/icons-arrow-forward.svg" > < / ion-icon >
2022-10-20 15:45:10 +01:00
< ion-icon * ngIf = "ThemeService.currentTheme == 'doneIt' " slot = "start" src = "assets/images/theme/{{ThemeService.currentTheme}}/icons-arrow-forward.svg" > < / ion-icon >
2021-07-29 10:13:39 +01:00
< / div >
< / div >
< / div >
< / div >
< div class = "container-div" >
< div class = "ion-item-class-2" >
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-people-cc.svg" > < / ion-icon >
< / div >
2021-08-11 17:05:37 +01:00
< div class = "ion-input-class-no-height cursor-pointer" ( click ) = " addParticipantsCc ( ) " >
2021-07-29 10:13:39 +01:00
< div class = "list-people" >
< ion-item lines = "none" >
< ion-list >
< ion-label * ngIf = "taskParticipantsCc?.length < 1" class = "list-people-title" > Com conhecimento< / ion-label >
< ion-label * ngFor = "let participant of taskParticipantsCc" > {{participant.Name}}< / ion-label >
< / ion-list >
< / ion-item >
< / div >
2021-08-11 17:05:37 +01:00
< div class = "add-people" >
2021-10-22 15:43:57 +01:00
< ion-icon * ngIf = "ThemeService.currentTheme == 'default' " slot = "start" src = "assets/images/icons-arrow-forward.svg" > < / ion-icon >
< ion-icon * ngIf = "ThemeService.currentTheme == 'gov' " slot = "start" src = "assets/images/theme/gov/icons-arrow-forward.svg" > < / ion-icon >
2022-10-20 15:45:10 +01:00
< ion-icon * ngIf = "ThemeService.currentTheme == 'doneIt' " slot = "start" src = "assets/images/theme/{{ThemeService.currentTheme}}/icons-arrow-forward.svg" > < / ion-icon >
2021-07-29 10:13:39 +01:00
< / div >
< / div >
< / div >
< / div >
< div class = "container-div" >
< div class = "ion-item-class-2 d-flex" >
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-description.svg" > < / ion-icon >
< / div >
< div class = "ion-input-class-no-height width-100" >
2022-01-20 14:51:34 +01:00
< ion-textarea autocomplete = "on" autocorrect = "on" spellcheck = "true" [ ( ngModel ) ] = " postData . Body . Text " placeholder = "Detalhes" rows = "6" cols = "20" > < / ion-textarea >
2021-07-29 10:13:39 +01:00
< / div >
< / div >
< / div >
< div class = "ion-item-container-no-border cursor-pointer" ( click ) = " getDoc ( ) " >
< ion-label >
2021-10-27 15:09:10 +01:00
< div class = "attach-icon cursor-pointer" >
2021-10-26 17:22:21 +01:00
< ion-icon * ngIf = "ThemeService.currentTheme == 'default' " src = "assets/images/icons-attach-doc.svg" > < / ion-icon >
< ion-icon * ngIf = "ThemeService.currentTheme == 'gov' " src = "assets/images/theme/gov/icons-attach-doc.svg" > < / ion-icon >
2022-10-20 15:45:10 +01:00
< ion-icon * ngIf = "ThemeService.currentTheme == 'doneIt' " src = "assets/images/theme/{{ThemeService.currentTheme}}/icons-attach-doc.svg" > < / ion-icon >
< ion-icon * ngIf = "ThemeService.currentTheme == 'doneIt' " src = "assets/images/theme/{{ThemeService.currentTheme}}/icons-attach-doc.svg" > < / ion-icon >
2021-07-29 10:13:39 +01:00
< / div >
< div class = "attach-document" >
< ion-label > Anexar Documentos< / ion-label >
< / div >
< / ion-label >
< / div >
2021-07-29 15:40:24 +01:00
< div class = "list " * ngFor = "let document of attachments; let i = index" >
2021-07-29 10:13:39 +01:00
< ion-list >
< ion-item >
< ion-label >
< p class = "d-flex ion-justify-content-between" >
< span class = "attach-title-item" > {{document.Assunto}}< / span >
< span class = "app-name" > {{document.appName}}< / span >
< span class = "close-button text-black" ( click ) = " removeAttachment ( i ) " >
< ion-icon class = "font-20" src = "assets/images/icons-delete-25.svg" > < / ion-icon >
< / span >
< / p >
2021-08-16 10:28:27 +01:00
< p > < span class = "span-left" > {{document.EntidadeOrganicaNome}}< / span > < span class = "span-right" > {{document.Data | date: 'dd-MM-yyyy HH:mm'}} < / span > < / p >
2021-07-29 10:13:39 +01:00
< / ion-label >
< / ion-item >
< / ion-list >
< / div >
< / div >
< / div >
< div class = "aside-righ flex-grow-1" >
< app-empty-container
[ texto ] = " emptyTextDescription "
* ngIf = "!showAttendees"
class = "d-flex height-100 flex-column" >
< / app-empty-container >
< app-attendee-modal class = " d-flex flex-column height-100"
* ngIf = "showAttendees"
[ footer ] = " false "
[ taskParticipants ] = " taskParticipants "
[ taskParticipantsCc ] = " taskParticipantsCc "
[ adding ] = " adding "
( dynamicSetIntervenient ) = " dynamicSetIntervenient ( $ event ) "
>
< / app-attendee-modal >
< / div >
< / div >
< / ion-content >
< ion-footer >
< div class = "buttons" >
< button class = "btn-cancel" shape = "round" ( click ) = " close ( ) " > Cancelar< / button >
< button class = "btn-ok" shape = "round" ( click ) = " saveTask ( ) " > Gravar< / button >
< / div >
< / ion-footer >