2022-07-13 19:25:19 +02:00
|
|
|
<div page-content>
|
2021-02-25 16:55:56 +01:00
|
|
|
<div header>
|
2023-03-27 13:59:17 +02:00
|
|
|
<div class="uk-section-xsmall uk-margin-top">
|
|
|
|
<div class="uk-flex-middle uk-grid" uk-grid>
|
|
|
|
<div class="uk-width-expand">
|
|
|
|
<a routerLink="../pages" class="uk-flex uk-flex-middle uk-h5 uk-link-reset">
|
|
|
|
<span class="uk-margin-right">
|
|
|
|
<icon name="west" ratio="1.7" [flex]="true"></icon>
|
|
|
|
</span>
|
|
|
|
<h1 *ngIf="page" class="uk-h5 uk-margin-remove">{{page.name}}</h1>
|
|
|
|
</a>
|
2022-06-27 14:50:21 +02:00
|
|
|
</div>
|
2022-07-13 19:25:19 +02:00
|
|
|
<div search-input [disabled]="showLoading" [expandable]="true" [searchControl]="filterForm" searchInputClass="outer" placeholder="Search helptext" class="uk-width-1-3@xl uk-width-2-5@l uk-width-1-2@m uk-width-1-1">
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<button (click)="newPageContent()" [disabled]="showLoading" [class.uk-disabled]="showLoading"
|
|
|
|
class="uk-flex uk-flex-middle uk-button uk-button-default">
|
|
|
|
<icon [flex]="true" name="add"></icon>
|
|
|
|
<span class="uk-margin-small-left">Add page help text</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
2022-06-30 17:22:35 +02:00
|
|
|
</div>
|
2021-07-14 13:19:57 +02:00
|
|
|
</div>
|
2022-07-13 19:25:19 +02:00
|
|
|
</div>
|
|
|
|
<div inner>
|
2022-06-30 17:22:35 +02:00
|
|
|
<div class="uk-section uk-section-small uk-position-relative" style="min-height: 60vh">
|
|
|
|
<div *ngIf="showLoading" class="uk-position-center">
|
|
|
|
<loading></loading>
|
2022-06-27 14:50:21 +02:00
|
|
|
</div>
|
2022-06-30 17:22:35 +02:00
|
|
|
<ng-container *ngIf="!showLoading">
|
|
|
|
<div *ngIf="checkboxes.length == 0"
|
|
|
|
class="uk-card uk-card-default uk-padding-large uk-text-center uk-margin-bottom uk-text-bold">
|
|
|
|
<div>No page help texts found</div>
|
|
|
|
</div>
|
2022-06-27 14:50:21 +02:00
|
|
|
<div *ngIf="checkboxes.length > 0">
|
|
|
|
<div class="uk-grid uk-child-width-1-2@l uk-child-width-1-1" uk-height-match=".uk-card-body" uk-grid>
|
|
|
|
<div *ngFor="let check of checkboxes; let i=index">
|
|
|
|
<div class="uk-card uk-card-default uk-margin-bottom">
|
|
|
|
<div class="uk-card-body">
|
|
|
|
<div class="uk-margin-medium-bottom">
|
|
|
|
<div class="multi-line-ellipsis lines-2">
|
|
|
|
<p>{{check.pageHelpContent.content | htmlToString}}</p>
|
2022-01-13 14:46:22 +01:00
|
|
|
</div>
|
2022-06-27 14:50:21 +02:00
|
|
|
<div class="uk-text-small">
|
|
|
|
<span class="uk-text-meta">Placement: </span>{{check.pageHelpContent.placement}}
|
2022-01-13 14:46:22 +01:00
|
|
|
</div>
|
2022-06-27 14:50:21 +02:00
|
|
|
<div class="uk-text-small uk-margin-small-top">
|
|
|
|
<span class="uk-text-meta">Order: </span>{{check.pageHelpContent.order}}
|
2022-01-13 14:46:22 +01:00
|
|
|
</div>
|
2021-07-14 13:19:57 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-27 14:50:21 +02:00
|
|
|
<div class="uk-card-footer uk-padding-remove-vertical">
|
|
|
|
<div class="uk-grid uk-grid-small uk-flex-nowrap uk-grid-divider uk-flex-right" uk-grid>
|
|
|
|
<div>
|
|
|
|
<div class="uk-padding-small uk-padding-remove-horizontal">
|
|
|
|
<mat-slide-toggle [checked]="check.pageHelpContent.isActive"
|
|
|
|
(change)="($event.source.checked = check.pageHelpContent.isActive);togglePageHelpContents(!check.pageHelpContent.isActive,[check.pageHelpContent._id])"
|
|
|
|
uk-tooltip="title:<div><div class='uk-text-bold '> Enable or disable help text to show or hide it from the dashboard</div></div>">
|
|
|
|
<span class="uk-text-small">Enable</span>
|
|
|
|
</mat-slide-toggle>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div><div class="uk-padding-small uk-padding-remove-horizontal">
|
|
|
|
<button class="uk-button uk-button-link uk-flex uk-flex-middle" (click)="editPageHelpContent(check.pageHelpContent._id)">
|
2022-06-16 16:24:36 +02:00
|
|
|
<icon name="edit" [flex]="true"></icon>
|
2022-06-27 14:50:21 +02:00
|
|
|
<span class="uk-margin-xsmall-left"> Edit</span>
|
2022-01-13 14:46:22 +01:00
|
|
|
</button>
|
|
|
|
</div>
|
2022-06-27 14:50:21 +02:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="uk-padding-small uk-padding-remove-horizontal">
|
|
|
|
<button class="uk-button uk-button-link uk-flex uk-flex-middle"
|
|
|
|
(click)="confirmDeletePageHelpContent(check.pageHelpContent._id)">
|
|
|
|
<icon name="delete" [flex]="true"></icon>
|
|
|
|
<span class="uk-margin-xsmall-left"> Delete</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-12-20 12:38:13 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-07-14 13:19:57 +02:00
|
|
|
</div>
|
2019-12-20 12:38:13 +01:00
|
|
|
</div>
|
2022-06-27 14:50:21 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-30 17:22:35 +02:00
|
|
|
</ng-container>
|
2019-12-20 12:38:13 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-03-18 15:11:41 +01:00
|
|
|
</div>
|
2022-06-21 12:41:44 +02:00
|
|
|
<modal-alert #AlertModalDeletePageHelpContents [overflowBody]="false" classTitle="uk-background-primary uk-light"
|
|
|
|
(alertOutput)="confirmedDeletePageHelpContents($event)"></modal-alert>
|