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">
2023-07-07 12:03:03 +01:00
<ion - icon class="font - 35 - rem" (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" >
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 >
2021-03-15 12:06:06 +01:00
< / div >
< / div >
< / ion-header >
< ion-content >
< div class = "content-container" >
2023-08-28 17:06:16 +01:00
< ion-progress-bar type = "indeterminate" * ngIf = "showLoader" > < / ion-progress-bar >
2021-03-15 12:06:06 +01:00
2021-07-06 12:26:45 +01:00
< div * ngIf = "publicationType!='1'" class = "ion-item-container" [ class . input-error ] = " Form ? . get ( ' Subject ' ) ? . invalid & & validateFrom " >
2023-02-09 11:25:57 +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 " >
2023-02-27 09:34:36 +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
2023-08-11 16:38:23 +01:00
2023-08-28 17:06:16 +01:00
<!-- <div *ngIf="publication">
OriginalFileName: {{ publication.OriginalFileName }}
</div> -->
2023-08-15 10:15:08 +01:00
<!-- Captured -->
2023-08-14 14:11:15 +01:00
< div class = "ion-item-container-no-border" * ngIf = "capturedImage" >
2023-08-15 10:15:08 +01:00
< ion-label class = "attached-title pb-10" > Fotografia Anexada< / ion-label >
< div class = "d-flex justify-content-between" >
< div class = "d-flex" >
< ion-thumbnail slot = "start" >
< ion-img [ ( ngModel ) ] = " capturedImage " name = "image" ngDefaultControl [ src ] = " capturedImage " > < / ion-img >
< / ion-thumbnail >
< ion-label class = "pl-10" >
< p > {{capturedImageTitle}}< / p >
< p hidden > size< / p >
< / ion-label >
< / div >
2021-11-09 10:39:14 +01:00
< button class = "btn-no-color" ( click ) = " clear ( ) " >
< ion-icon name = "close" > < / ion-icon >
< / button >
2023-08-14 14:11:15 +01:00
< / div >
< / div >
2023-08-15 10:15:08 +01:00
<!-- Current -->
2023-08-15 15:19:23 +01:00
< div class = "ion-item-container-no-border mb-20" * ngIf = "publication && !( publication.FileBase64 == 'data:image/jpg;base64,null' || publication.FileBase64 == '' ) && !capturedImage" >
2023-08-15 10:15:08 +01:00
<!-- <ion - label class="attached - title pb - 10">Fotografia Anexada</ion - label> -->
< div class = "d-flex justify-content-between" >
< div class = "d-flex" >
< ion-thumbnail slot = "start" >
< ion-img [ ( ngModel ) ] = " publication . FileBase64 " name = "image" ngDefaultControl [ src ] = " publication . FileBase64 " > < / ion-img >
< / ion-thumbnail >
< ion-label class = "pl-10" >
< p > {{publication.OriginalFileName}}.{{publication.FileExtension}}< / p >
< p hidden > size< / p >
< / ion-label >
< / div >
< button class = "btn-no-color" ( click ) = " deletePublicationImage ( ) " >
< ion-icon name = "close" > < / ion-icon >
< / button >
< / div >
< / 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" >
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 >
2021-03-15 12:06:06 +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 >
2021-03-15 12:06:06 +01:00
< / ion-buttons >
2023-10-19 16:51:12 +01:00
2021-03-15 12:06:06 +01:00
< / ion-toolbar >
< / ion-footer >