2021-04-14 15:27:50 +01:00
2020-12-02 15:08:45 +01:00
< ion-content >
2021-08-24 11:15:13 +01:00
< div class = "content-container d-flex flex-column" >
2023-08-15 10:15:08 +01:00
< div class = "title-content width-100 " >
< div class = "div-title padding" >
2023-02-09 11:25:57 +01:00
< ion-label class = "title" > {{publicationTitle}}< / ion-label > < br >
< i style = "margin-top: -3px; font-size: 15px;" > Campos marcados com * são obrigatórios< / i >
2020-12-01 17:22:45 +01:00
< / div >
< / div >
2023-08-15 10:15:08 +01:00
< div class = "overflow-y-auto padding" >
2021-08-24 11:15:13 +01:00
< div * ngIf = "publicationType!='1'" class = "ion-item-container" [ class . input-error ] = " Form ? . get ( ' Subject ' ) ? . invalid & & validateFrom " >
2023-02-27 17:39:10 +01:00
< ion-input autocomplete = "on" autocorrect = "on" spellcheck = "true" [ ( ngModel ) ] = " pub . Title " name = "title" ngDefaultControl placeholder = "Título*" > < / ion-input >
2020-12-01 17:22:45 +01:00
< / div >
2021-08-24 14:37:09 +01:00
2021-08-24 11:15:13 +01:00
< div * ngIf = "publicationType!='1'" class = "container-div" >
< div class = "ion-item-class-2" >
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-description.svg" > < / ion-icon >
< / div >
< div class = "ion-textarea-class" [ class . input-error ] = " Form ? . get ( ' Message ' ) ? . invalid & & validateFrom " >
2023-02-27 17:39:10 +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-08-24 11:15:13 +01:00
< / div >
< / div >
2020-12-01 17:22:45 +01:00
< / div >
2021-12-13 09:51:57 +01:00
2023-08-15 10:15:08 +01:00
< div * ngIf = "capturedImage != '' " class = "ion-item-container-no-border mb-20" >
< ion-label class = "attached-title pb-10" > Fotografia Anexada< / ion-label >
2020-12-01 17:22:45 +01:00
2023-08-15 10:15:08 +01:00
< div class = "d-flex justify-content-between" >
< div class = "d-flex" >
< ion-thumbnail slot = "start" >
2021-12-13 09:51:57 +01:00
2021-11-22 13:53:37 +01:00
< ion-img [ ( ngModel ) ] = " capturedImage " name = "image" ngDefaultControl [ src ] = " capturedImage " ( click ) = " imageSize ( capturedImage ) " > < / ion-img >
2023-08-15 10:15:08 +01:00
< / ion-thumbnail >
< ion-label class = "pl-10" >
< p > {{capturedImageTitle}}< / p >
< p hidden > size< / p >
< / ion-label >
2021-11-16 15:24:38 +01:00
< / div >
2021-08-24 14:37:09 +01:00
2023-08-15 10:15:08 +01:00
< div class = "font-25" ( click ) = " clear ( ) " >
< ion-icon name = "close" > < / ion-icon >
< / div >
< / div >
2020-12-01 17:22:45 +01:00
< / div >
2021-08-24 14:41:51 +01:00
2023-08-15 10:15:08 +01:00
2023-08-15 15:17:27 +01:00
< div class = "picture d-flex pb-5 hide-desktop" * ngIf = "publication && !( publication.FileBase64 == 'data:image/jpg;base64,null' || publication.FileBase64 == '' ) && !capturedImage" >
2021-08-24 11:15:13 +01:00
< div class = "post-img" * ngIf = "publication.FileBase64" >
< img src = "{{publication.FileBase64}}" alt = "image" >
< / div >
2021-08-24 14:41:51 +01:00
< div class = "d-flex flex-column pl-10" * ngIf = "publication.FileBase64" >
2021-08-24 11:15:13 +01:00
< div class = "picture-file-name" > {{publication.OriginalFileName}}.{{publication.FileExtension}}< / div >
2023-08-15 10:15:08 +01:00
<!-- <div class="size">75 Kb</div> -->
2021-08-24 11:15:13 +01:00
< / div >
2023-08-15 10:15:08 +01:00
< div class = "flex-grow-1 d-flex align-center justify-end font-25" * ngIf = "publication.FileBase64" ( click ) = " deletePublicationImage ( ) " >
< ion-icon name = "close" > < / ion-icon >
2021-08-24 11:15:13 +01:00
< / div >
2020-12-09 12:10:19 +01:00
< / div >
2020-12-01 17:22:45 +01:00
2021-08-24 11:15:13 +01:00
< div class = "ion-item-container-no-border" >
2021-11-18 13:01:53 +01:00
< ion-label ( click ) = " takePicture ( ) " >
2021-08-24 11:15:13 +01:00
< div class = "attach-icon" >
2021-11-16 15:24:38 +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-08-24 11:15:13 +01:00
< / div >
< div class = "attach-document" >
< ion-label > Tirar Fotografia< / ion-label >
< / div >
< / ion-label >
2020-12-01 17:22:45 +01:00
< / div >
2021-08-24 14:41:51 +01:00
2021-12-13 09:51:57 +01:00
< div class = "ion-item-container-no-border" >
< ion-label ( click ) = " laodPicture ( ) " class = "cursor-pointer" >
2021-08-24 11:15:13 +01:00
< div class = "attach-icon" >
2021-11-16 15:24:38 +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-08-24 11:15:13 +01:00
< / div >
2021-11-16 15:24:38 +01:00
< div class = "attach-document cursor-pointer" >
2021-08-24 11:15:13 +01:00
< ion-label > Anexar Fotografia< / ion-label >
2021-08-24 14:41:51 +01:00
< / div >
2021-12-13 09:51:57 +01:00
< / ion-label >
< / div >
2021-08-24 11:15:13 +01:00
< / div >
2020-12-01 17:22:45 +01:00
2021-08-23 16:00:58 +01:00
< / div >
2020-12-11 15:09:53 +01:00
2020-12-01 14:03:15 +01:00
< / ion-content >
2020-12-01 17:22:45 +01:00
< ion-footer class = "ion-no-border" >
< ion-toolbar class = "footer-toolbar" >
< ion-buttons slot = "start" >
2023-10-19 16:51:12 +01:00
< button class = "btn-ok" fill = "clear" color = "#fff" ( click ) = " save ( ) " >
< ion-label > Gravar< / ion-label >
2021-08-24 14:37:09 +01:00
< / button >
2020-12-01 17:22:45 +01:00
< / ion-buttons >
< ion-buttons slot = "end" >
2023-10-19 16:51:12 +01:00
< button class = "btn-cancel" fill = "clear" color = "#061b52" ( click ) = " close ( ) " >
< ion-label > Cancelar< / ion-label >
2021-08-24 14:37:09 +01:00
< / button >
2020-12-01 17:22:45 +01:00
< / ion-buttons >
2023-10-19 16:51:12 +01:00
2020-12-01 17:22:45 +01:00
< / ion-toolbar >
< / ion-footer >