2021-02-25 16:55:56 +01:00
< div page-content >
< div header >
< div class = "uk-margin-top" >
2021-03-02 16:52:09 +01:00
< a routerLink = "../" [ queryParams ] = " { ' pageId ' : pageId } "
class="uk-text-secondary uk-text-uppercase uk-text-bold uk-text-small">
< span class = "uk-icon-button uk-icon small uk-button-secondary" >
2022-04-09 15:18:30 +02:00
< icon name = "west" > < / icon >
2021-03-02 16:52:09 +01:00
< / span >
< span class = "space" >
2021-07-14 13:19:57 +02:00
Go back to page help texts list
2021-03-02 16:52:09 +01:00
< / span >
< / a >
2019-12-20 12:38:13 +01:00
< / div >
< / div >
2021-03-02 16:52:09 +01:00
< div inner >
< div class = "uk-card-header" >
< div class = "uk-flex uk-flex-middle uk-child-width-1-1 uk-child-width-1-2@m uk-grid" uk-grid >
< div >
2021-07-14 13:19:57 +02:00
< div class = "uk-text-small uk-text-muted" > {{pageHelpContent ? 'Update ' : 'Add new '}} page help text< / div >
2021-02-25 16:55:56 +01:00
< div >
2021-03-02 16:52:09 +01:00
< span * ngIf = "page" class = "uk-text-bold" > {{page.name}}< / span >
< span * ngIf = "myForm.dirty" > (unsaved changes)< / span >
< / div >
< / div >
< div class = " uk-flex uk-flex-right" >
< button ( click ) = " resetCustom ( ) " [ disabled ] = " showLoading | | ! myForm . dirty "
class="uk-button uk-button-secondary outlined uk-margin-small-right">Reset
< / button >
< button ( click ) = " saveCustom ( ) " class = "uk-button uk-button-secondary uk-margin-small-right"
2021-03-18 15:11:41 +01:00
[disabled]="showLoading || !myForm.dirty || myForm.invalid ">Save
2021-03-02 16:52:09 +01:00
< / button >
2019-12-20 12:38:13 +01:00
< / div >
2021-03-02 16:52:09 +01:00
< / div >
< / div >
< div class = "uk-card uk-card-default uk-position-relative " style = "min-height: 60vh" >
< div style = "max-height: 60vh" class = "uk-padding-large uk-overflow-auto" >
< div class = "uk-animation-fade uk-width-1-1" role = "alert" >
< div * ngIf = "showLoading" class = "uk-position-center" >
< loading * ngIf = "showLoading" > < / loading >
< / div >
< form [ formGroup ] = " myForm " [ class . hidden ] = " showLoading " >
< div class = "uk-grid uk-child-width-1-2 " >
< div * ngIf = "placementsOptions.length > 0" dashboard-input
[formInput]="myForm.get('placement')"
type="select" placeholder="Select placement"
label="Select placement" [options]="placementsOptions"
>
2021-02-25 16:55:56 +01:00
< / div >
2021-03-02 16:52:09 +01:00
< div dashboard-input [ formInput ] = " myForm . get ( ' order ' ) "
type="select" placeholder="Select order"
label="Select order" [options]="orderOptions">
< / div >
< / div >
2021-02-25 16:55:56 +01:00
2021-03-02 16:52:09 +01:00
< div class = "form-group uk-margin-top" >
2021-03-18 15:11:41 +01:00
< div class = "uk-text-bold uk-margin-medium-bottom" > Select Status (Enable/ disable)< / div >
2021-03-02 16:52:09 +01:00
< 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 >
2021-03-18 15:11:41 +01:00
< div class = "form-group uk-margin-medium-top"
2021-03-02 16:52:09 +01:00
[ngClass]="{'has-error':!myForm.controls.content.valid & &
2021-03-18 15:11:41 +01:00
myForm.controls.content.dirty}">
2021-03-02 16:52:09 +01:00
< label class = "uk-text-bold" > Content< / label >
< div class = "uk-margin-top" >
< ckeditor ( change ) = " contentChanged ( ) "
[readonly]="false"
debounce="500"
[formControl]="myForm.get('content')"
2021-05-10 19:56:10 +02:00
[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'}">
2021-03-02 16:52:09 +01:00
< / ckeditor >
< / div >
2019-12-20 12:38:13 +01:00
2021-02-25 16:55:56 +01:00
< / div >
2021-03-02 16:52:09 +01:00
< input type = "hidden" formControlName = "_id" >
< / form >
2021-02-25 16:55:56 +01:00
< / div >
2021-03-02 16:52:09 +01:00
< / div >
2019-12-20 12:38:13 +01:00
< / div >
2021-03-02 16:52:09 +01:00
< / div >
2021-02-25 16:55:56 +01:00
< / div >