2022-06-27 14:50:21 +02:00
< div page-content ( stickyEmitter ) = " stickyPageHeader = $event" >
2021-03-31 13:23:24 +02:00
< div header >
2022-06-27 14:50:21 +02:00
< div * ngIf = "!showLoading" class = "uk-flex uk-flex-middle uk-grid" uk-grid >
< div class = "uk-width-expand uk-flex uk-flex-middle uk-margin-top uk-margin-bottom info"
[class.uk-active]="stickyPageHeader">
< a routerLink = "../" [ queryParams ] = " { ' pageId ' : pageId } " class = "uk-button uk-button-link uk-margin-right" >
< icon name = "west" ratio = "2" [ flex ] = " true " > < / icon >
< / a >
2021-03-31 13:23:24 +02:00
< div >
2022-06-27 14:50:21 +02:00
< div class = "uk-margin-remove uk-text-background uk-text-bold uk-h6" >
Admin Dashboard - {{pageHelpContent ? 'Update ' : 'Add new '}} class help text
2021-03-31 13:23:24 +02:00
< / div >
2022-06-27 14:50:21 +02:00
< h1 class = "uk-h4 uk-margin-remove" > {{page.name}}< span * ngIf = "myForm.dirty" class = "uk-text-large" > (unsaved changes)< / span > < / h1 >
2021-03-31 13:23:24 +02:00
< / div >
< / div >
2022-06-27 14:50:21 +02:00
< div class = "uk-width-auto uk-text-right@m uk-text-center" >
< button class = "uk-button uk-button-default uk-margin-right"
(click)="resetCustom()" [class.uk-disabled]="!myForm.dirty"
[disabled]="!myForm.dirty">Reset
< / button >
< button class = "uk-button uk-button-primary" [ class . uk-disabled ] = " ! myForm . dirty | | myForm . disabled "
(click)="saveCustom()" [disabled]="!myForm.dirty || myForm.disabled">Save
< / button >
< / div >
2021-03-31 13:23:24 +02:00
< / div >
2022-06-27 14:50:21 +02:00
< / div >
< div inner >
< div * ngIf = "myForm" class = "uk-section uk-container uk-container-small" >
< div * ngIf = "errorMessage" class = "uk-alert uk-alert-danger" role = "alert" > {{errorMessage}}< / div >
< div * ngIf = "updateErrorMessage" class = "uk-alert uk-alert-danger" role = "alert" > {{updateErrorMessage}}< / div >
< div * ngIf = "showLoading" class = "uk-position-center" >
< loading * ngIf = "showLoading" > < / loading >
< / div >
< form [ formGroup ] = " myForm " [ class . hidden ] = " showLoading " >
< div class = "uk-width-1-2" * ngIf = "classOptions.length > 0" input [ formInput ] = " myForm . get ( ' divId ' ) " placeholder = "Select Class" [ options ] = " classOptions " type = "select" > < / div >
< div class = "form-group uk-margin-medium-top" >
< span class = "uk-text-bold uk-margin-small-right" > Select Status (Enable/ disable)< / span >
< mat-slide-toggle [ checked ] = " myForm . get ( ' isActive ' ) . value "
(change)="changeStatus()"
uk-tooltip="title:< div class = 'uk-padding-small uk-width-large' > < div class = 'uk-text-bold ' > Enable or disable help text to show or hide it from the dashboard< / div > < / div > "
>< / mat-slide-toggle >
< / div >
< div class = "form-group uk-margin-large-top"
[ngClass]="{'has-error':!myForm.controls.content.valid & &
myForm.controls.content.dirty}" >
2022-06-30 12:40:37 +02:00
< div class = "uk-text-bold uk-margin-bottom" > Content< / div >
< div >
2022-06-27 14:50:21 +02:00
< ckeditor ( change ) = " contentChanged ( ) "
[readonly]="false"
debounce="500"
[formControl]="myForm.get('content')"
[config]="{ extraAllowedContent: '* [uk-*](*) ; span', disallowedContent: 'script; *[on*]',
removeButtons: 'Save,NewPage,DocProps,Preview,Print,' +
'Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,' +
'CreateDiv,Flash,PageBreak,' +
'Subscript,Superscript,Anchor,Smiley,Iframe,Styles,Font,About,Language',
extraPlugins: 'divarea'}">
< / ckeditor >
2021-03-31 13:23:24 +02:00
< / div >
< / div >
2022-06-27 14:50:21 +02:00
< input type = "hidden" formControlName = "_id" >
< / form >
2021-03-31 13:23:24 +02:00
< / div >
< / div >
< / div >