2021-03-15 12:06:06 +01:00
< ion-header class = "ion-no-border background-white px-20 pt-25" >
2021-03-17 09:01:24 +01:00
< div class = "title-content d-flex" >
2021-03-17 10:03:39 +01:00
<!-- <div class="back - icon">
2021-03-17 09:01:24 +01:00
<ion - icon class="font - 35" (click)="goBack()" slot="end" src='assets/images/icons - arrow - arrow - left.svg'></ion - icon>
2021-03-17 10:03:39 +01:00
</div> -->
2021-03-15 12:06:06 +01:00
< div class = "div-title" >
2021-08-23 17:17:07 +01:00
< ion-label class = "title" > {{ publicationTitle }}< / ion-label >
2021-03-15 12:06:06 +01:00
< / div >
< / div >
< / ion-header >
< ion-content >
< div class = "content-container" >
2021-07-06 12:26:45 +01:00
< div * ngIf = "publicationType!='1'" class = "ion-item-container" [ class . input-error ] = " Form ? . get ( ' Subject ' ) ? . invalid & & validateFrom " >
2022-01-20 14:51:34 +01:00
< ion-input autocomplete = "on" autocorrect = "on" spellcheck = "true" [ ( ngModel ) ] = " pub . Title " name = "title" placeholder = "Título" > < / ion-input >
2021-03-15 12:06:06 +01:00
< / div >
2021-08-23 16:00:58 +01:00
< div * ngIf = "publicationType!='1' " class = "container-div pb-20" >
2021-03-15 12:06:06 +01:00
< div class = "ion-item-class-2 d-flex" >
2021-07-06 12:26:45 +01:00
< div class = "ion-icon-class" >
2021-03-15 12:06:06 +01:00
< ion-icon slot = "start" src = "assets/images/icons-description.svg" > < / ion-icon >
< / div >
2021-07-15 15:39:10 +01:00
< div class = "ion-textarea-class flex-grow-1" [ class . input-error ] = " Form ? . get ( ' Message ' ) ? . invalid & & validateFrom " >
2022-01-20 14:51:34 +01:00
< ion-textarea autocomplete = "on" autocorrect = "on" spellcheck = "true" [ ( ngModel ) ] = " pub . Message " name = "description" ngDefaultControl rows = "12" cols = "20" placeholder = "Corpo de texto..." > < / ion-textarea >
2021-03-15 12:06:06 +01:00
< / div >
< / div >
< / div >
2021-08-24 14:37:09 +01:00
2021-08-23 16:00:58 +01:00
< div class = "picture d-flex pb-5 hide-desktop" * ngIf = "publication.FileBase64 && capturedImage ==''" >
2021-03-17 10:57:16 +01:00
< div class = "post-img" >
< img src = "{{publication.FileBase64}}" alt = "image" >
< / div >
2021-08-24 14:37:09 +01:00
< div class = "d-flex flex-column pl-10" >
2021-03-17 11:55:33 +01:00
< div class = "picture-file-name" > {{publication.OriginalFileName}}.{{publication.FileExtension}}< / div >
2021-03-17 10:57:16 +01:00
< div class = "size" > 75 Kb< / div >
< / div >
< div class = "flex-grow-1 d-flex align-center justify-end" >
< div style = "color: red;" > X< / div >
< / div >
< / div >
2021-08-23 16:00:58 +01:00
< div * ngIf = "capturedImage != ''" class = "ion-item-container-no-border" >
2021-03-15 12:06:06 +01:00
< ion-label class = "attached-title" > Fotografia Anexada< / ion-label >
< ion-item lines = "none" >
< ion-thumbnail slot = "start" >
2021-08-23 16:00:58 +01:00
< ion-img [ ( ngModel ) ] = " capturedImage " name = "image" ngDefaultControl [ src ] = " capturedImage " > < / ion-img >
< / ion-thumbnail >
< ion-label >
2021-03-15 12:06:06 +01:00
< p > {{capturedImageTitle}}< / p >
< p hidden > size< / p >
< / ion-label >
2021-11-09 10:39:14 +01:00
< button class = "btn-no-color" ( click ) = " clear ( ) " >
< ion-icon name = "close" > < / ion-icon >
< / button >
2021-08-23 16:00:58 +01:00
< / ion-item >
2021-08-24 14:37:09 +01:00
2021-08-23 16:00:58 +01:00
< / div >
2021-03-15 12:06:06 +01:00
2021-04-06 10:29:07 +01:00
< div class = "ion-item-container-no-border hide-desktop" >
2021-03-15 12:06:06 +01:00
< ion-label ( click ) = " takePicture ( ) " >
< div class = "attach-icon" >
2021-11-09 18:06:10 +01:00
< ion-icon * ngIf = "ThemeService.currentTheme == 'default' " src = "assets/images/icons-add-photo.svg" > < / ion-icon >
< ion-icon * ngIf = "ThemeService.currentTheme == 'gov' " src = "assets/images/theme/gov/icons-add-photo.svg" > < / ion-icon >
2021-03-15 12:06:06 +01:00
< / div >
2021-10-27 09:49:50 +01:00
< div class = "attach-document cursor-pointer" >
2021-03-15 12:06:06 +01:00
< ion-label > Tirar Fotografia< / ion-label >
< / div >
< / ion-label >
< / div >
2021-12-13 11:18:59 +01:00
< div class = "ion-item-container-no-border" >
2021-11-09 10:39:14 +01:00
< ion-label ( click ) = " laodPicture ( ) " class = "cursor-pointer" >
2021-03-15 12:06:06 +01:00
< div class = "attach-icon" >
2021-11-09 18:06:10 +01:00
< ion-icon * ngIf = "ThemeService.currentTheme == 'default' " src = "assets/images/icons-add-photos.svg" > < / ion-icon >
< ion-icon * ngIf = "ThemeService.currentTheme == 'gov' " src = "assets/images/theme/gov/icons-add-photos.svg" > < / ion-icon >
2021-03-15 12:06:06 +01:00
< / div >
2021-10-27 09:49:50 +01:00
< div class = "attach-document cursor-pointer" >
2021-03-15 12:06:06 +01:00
< ion-label > Anexar Fotografia< / ion-label >
2021-08-24 14:37:09 +01:00
< / div >
2021-03-15 12:06:06 +01:00
< / ion-label >
< / div >
< / div >
< / ion-content >
< ion-footer class = "ion-no-border" >
2021-03-16 14:43:54 +01:00
< ion-toolbar class = "footer-toolbar width-100 px-20" >
2021-03-15 12:06:06 +01:00
< ion-buttons slot = "start" >
2021-08-24 14:37:09 +01:00
< button class = "btn-cancel" fill = "clear" color = "#061b52" ( click ) = " close ( ) " >
2021-03-15 12:06:06 +01:00
< ion-label > Cancelar< / ion-label >
2021-08-24 14:37:09 +01:00
< / button >
2021-03-15 12:06:06 +01:00
< / ion-buttons >
< ion-buttons slot = "end" >
2021-08-24 14:37:09 +01:00
< button class = "btn-ok" fill = "clear" color = "#fff" ( click ) = " save ( ) " >
2021-03-15 12:06:06 +01:00
< ion-label > Gravar< / ion-label >
2021-08-24 14:37:09 +01:00
< / button >
2021-03-15 12:06:06 +01:00
< / ion-buttons >
< / ion-toolbar >
< / ion-footer >