1 |
53600
|
argiro.kok
|
<div id="divHelpContents">
|
2 |
|
|
|
3 |
|
|
<div class="menubar ">
|
4 |
|
|
|
5 |
56740
|
konstantin
|
<div *ngIf="!selectedPageId" class="divHelpContent-title uk-text-large">Class help texts</div>
|
6 |
|
|
<div *ngIf="selectedPageId && page" class="divHelpContent-title uk-text-large">Class help texts of page '{{page.name}}'</div>
|
7 |
53600
|
argiro.kok
|
|
8 |
|
|
<div *ngIf="updateErrorMessage" class="uk-alert-danger" uk-alert>
|
9 |
|
|
<a class="uk-alert-close" uk-close></a>
|
10 |
|
|
{{updateErrorMessage}}
|
11 |
|
|
</div>
|
12 |
|
|
|
13 |
|
|
<div *ngIf="!errorMessage && !showLoading" class="page-controls">
|
14 |
|
|
<div class=" filters ">
|
15 |
|
|
<div class="show-options uk-float-right">
|
16 |
|
|
<button class="uk-button" type="button">Bulk Actions</button>
|
17 |
|
|
<div uk-dropdown="mode: click">
|
18 |
56771
|
konstantin
|
<ul class="uk-nav uk-navbar-dropdown-nav"
|
19 |
53600
|
argiro.kok
|
[attr.uk-tooltip]="getSelectedDivHelpContents().length == 0 ? 'pos:left; cls: uk-active' : 'cls: uk-invisible'"
|
20 |
|
|
title="Select at least one help text">
|
21 |
|
|
<li><a [class]="getSelectedDivHelpContents().length == 0 ? 'uk-disabled' : ''" (click)="toggleDivHelpContents(true,getSelectedDivHelpContents())"><i></i> Activate </a></li>
|
22 |
|
|
<li><a [class]="getSelectedDivHelpContents().length == 0 ? 'uk-disabled' : ''" (click)="toggleDivHelpContents(false,getSelectedDivHelpContents())"><i></i> Deactivate </a></li>
|
23 |
|
|
<li><a [class]="getSelectedDivHelpContents().length == 0 ? 'uk-disabled' : ''" (click)="confirmDeleteSelectedDivHelpContents()"><i></i> Delete </a></li>
|
24 |
|
|
</ul>
|
25 |
|
|
</div>
|
26 |
|
|
</div>
|
27 |
|
|
</div>
|
28 |
|
|
</div>
|
29 |
|
|
<!-- <a *ngIf="!selectedPageId" [queryParams]="{communityId: selectedCommunityPid}" routerLink="/classContents/new" class="uk-button uk-button-primary uk-float-right"><i></i> New help text </a> -->
|
30 |
|
|
<!-- <a *ngIf="selectedPageId" [queryParams]="{communityId: selectedCommunityPid, pageId: selectedPageId}" routerLink="/classContents/new" class="uk-button uk-button-primary uk-float-right"><i></i> New class help text </a> -->
|
31 |
|
|
<div class="uk-grid uk-margin-bottom">
|
32 |
|
|
<form target="BSFormPanel_Admin_1" class="search">
|
33 |
53984
|
konstantin
|
<!-- <input #inputstring (keyup.enter)="filterBySearch(inputstring.value)" placeholder="Class Help text..." type="text" class="uk-input uk-width-medium"/>
|
34 |
|
|
<button class="uk-button" type="submit">Search</button> -->
|
35 |
|
|
<input type="text" class="uk-input uk-width-medium" placeholder="Class Help text..." aria-describedby="sizing-addon2" [(ngModel)]="keyword" name="keyword" >
|
36 |
|
|
<button (click)="filterBySearch(keyword)" type="submit" class=" uk-button">
|
37 |
|
|
<span class="uk-icon">
|
38 |
|
|
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="search" ratio="1"><circle fill="none" stroke="#000" stroke-width="1.1" cx="9" cy="9" r="7"></circle><path fill="none" stroke="#000" stroke-width="1.1" d="M14,14 L18,18 L14,14 Z"></path></svg>
|
39 |
|
|
</span>Search
|
40 |
|
|
</button>
|
41 |
53600
|
argiro.kok
|
</form>
|
42 |
|
|
<div *ngIf="!selectedPageId" class="filters marginBottom20">
|
43 |
|
|
<div class="links form-group form-inline">
|
44 |
|
|
<span>Filter by page:</span>
|
45 |
|
|
<select class="uk-select uk-width-medium" (change)="filterByPage($event)">
|
46 |
|
|
<option value="">-- none selected --</option>
|
47 |
|
|
<option *ngFor="let page of pages" value="{{page._id}}">{{page.name}}</option>
|
48 |
|
|
</select>
|
49 |
|
|
</div>
|
50 |
|
|
</div>
|
51 |
|
|
</div>
|
52 |
|
|
</div>
|
53 |
|
|
|
54 |
|
|
<div class="content-wrapper" id="contentWrapper">
|
55 |
|
|
<div>
|
56 |
|
|
<div class="contentPanel">
|
57 |
|
|
<div *ngIf="errorMessage" class="uk-alert uk-alert-danger uk-margin-large-top" role="alert">{{errorMessage}}</div>
|
58 |
|
|
<div [style.display]="showLoading ? 'inline' : 'none'" class="uk-animation-fade uk-margin-large-top uk-width-1-1" role="alert"><img class="uk-align-center loading-gif"></div>
|
59 |
|
|
|
60 |
|
|
<div *ngIf="!errorMessage && !showLoading">
|
61 |
|
|
<div class="gwt-HTML">
|
62 |
|
|
<div class="users-list"> <!--"row" class removed"-->
|
63 |
|
|
<div class="col-md-12">
|
64 |
|
|
|
65 |
|
|
<!-- <div *ngIf="!selectedPageId" class="filters marginBottom20">
|
66 |
|
|
<div class="links form-group form-inline">
|
67 |
|
|
<span>Filter by community:</span>
|
68 |
|
|
<select class="uk-select uk-width-medium" (change)="filterByCommunity($event)">
|
69 |
|
|
<option *ngFor="let community of communities" value="{{community.pid}}">{{community.name}}</option>
|
70 |
|
|
</select>
|
71 |
|
|
</div>
|
72 |
|
|
</div> -->
|
73 |
|
|
<div class="uk-alert uk-alert-primary uk-margin-top-large">
|
74 |
|
|
<span class="uk-margin-small-right uk-icon" uk-icon="info"></span>
|
75 |
|
|
Enable or disable help text to show or hide it from the dashboard
|
76 |
53984
|
konstantin
|
|
77 |
53600
|
argiro.kok
|
</div>
|
78 |
|
|
|
79 |
|
|
<ul uk-tab class="links">
|
80 |
|
|
<li [ngClass]="{'uk-active' : filters.active==null}" (click)="displayAllDivHelpContents()">
|
81 |
|
|
<a>All class help texts <span class="uk-badge">{{counter.all | number}}</span></a>
|
82 |
|
|
</li>
|
83 |
|
|
<li [ngClass]="{'uk-active' : filters.active==true}" (click)="displayActiveDivHelpContents()">
|
84 |
|
|
<a>Active <span class="uk-badge">{{counter.active | number}}</span></a>
|
85 |
|
|
</li>
|
86 |
|
|
<li [ngClass]="{'uk-active' : filters.active==false}" (click)="displayInactiveDivHelpContents()">
|
87 |
|
|
<a>Inactive <span class="uk-badge">{{counter.inactive | number}}</span></a>
|
88 |
|
|
</li>
|
89 |
|
|
</ul>
|
90 |
|
|
|
91 |
|
|
<table class="uk-table uk-table-striped">
|
92 |
|
|
<thead>
|
93 |
|
|
<tr>
|
94 |
|
|
<th><input id="allDivHelpContentsCheckbox" type="checkbox" (change)="toggleCheckBoxes($event)"></th>
|
95 |
|
|
<th *ngIf="!selectedPageId">Page</th>
|
96 |
|
|
<!--th *ngIf="!selectedPageId">Community</th-->
|
97 |
|
|
<th>Class</th>
|
98 |
|
|
<th>Content</th>
|
99 |
|
|
<th>Change status</th>
|
100 |
|
|
<th>Actions</th>
|
101 |
|
|
</tr>
|
102 |
|
|
</thead>
|
103 |
|
|
<tbody >
|
104 |
|
|
<tr *ngFor="let check of checkboxes; let i=index">
|
105 |
|
|
<td><input id="{{check.divHelpContent._id}}" class="checkBox" type="checkbox"
|
106 |
|
|
name="entitiescb[]" value="{{check.divHelpContent._id}}" [(ngModel)]="check.checked">
|
107 |
|
|
</td>
|
108 |
|
|
<td *ngIf="!selectedPageId">
|
109 |
|
|
<!-- <div class="page" href="#">{{check.divHelpContent.divId.page.name}}</div> -->
|
110 |
|
|
<div class="pages" href="#">
|
111 |
|
|
<span *ngFor="let page of check.divHelpContent.divId.pages let i=index">{{page.name}}<span *ngIf="i<(check.divHelpContent.divId.pages.length-1)">, </span></span>
|
112 |
|
|
</div>
|
113 |
|
|
</td>
|
114 |
|
|
<!--td *ngIf="!selectedPageId">
|
115 |
|
|
<div class="community" href="#">{{check.divHelpContent.community.name}}</div>
|
116 |
|
|
</td-->
|
117 |
|
|
<td>
|
118 |
|
|
<div class="divId" href="#">{{check.divHelpContent.divId.name}}</div>
|
119 |
|
|
</td>
|
120 |
|
|
<td>
|
121 |
56767
|
konstantin
|
<!-- <div class="content" [innerHTML]="check.divHelpContent.content | safeHtml"></div>-->
|
122 |
|
|
<div class="content">{{check.divHelpContent.content}}</div>
|
123 |
53600
|
argiro.kok
|
</td>
|
124 |
|
|
<td>
|
125 |
56108
|
k.triantaf
|
<mat-slide-toggle [checked]="check.divHelpContent.isActive"
|
126 |
|
|
(change)="($event.source.checked = check.divHelpContent.isActive);toggleDivHelpContents(!check.divHelpContent.isActive,[check.divHelpContent._id])"></mat-slide-toggle>
|
127 |
53600
|
argiro.kok
|
</td>
|
128 |
|
|
<td>
|
129 |
|
|
<div class="actions" href="#">
|
130 |
56514
|
k.triantaf
|
<input title="Edit" src="assets/imgs/icn_edit.png" class="edit uk-margin-small-right" type="image" (click)="editDivHelpContent(check.divHelpContent._id)">
|
131 |
53600
|
argiro.kok
|
<input title="Delete" src="assets/imgs/icn_trash.png" class="delete" type="image" (click)="confirmDeleteDivHelpContent(check.divHelpContent._id)">
|
132 |
|
|
</div>
|
133 |
|
|
</td>
|
134 |
|
|
</tr>
|
135 |
|
|
</tbody>
|
136 |
|
|
</table>
|
137 |
|
|
|
138 |
|
|
<div *ngIf="checkboxes.length==0" class="col-md-12">
|
139 |
|
|
<div class="uk-alert-warning" uk-alert>No class help texts found</div>
|
140 |
|
|
</div>
|
141 |
|
|
</div>
|
142 |
|
|
</div>
|
143 |
|
|
</div>
|
144 |
|
|
<a *ngIf="selectedPageId && page" [queryParams]="{type: page.type, communityId: selectedCommunityPid}" routerLink="/pages">Go back to {{page.type}} pages</a>
|
145 |
|
|
</div>
|
146 |
|
|
</div>
|
147 |
|
|
</div>
|
148 |
|
|
</div>
|
149 |
|
|
<fab (clicked)="newClassContent()"></fab>
|
150 |
|
|
</div>
|
151 |
|
|
|
152 |
|
|
<!-- <delete-confirmation-dialog #deleteConfirmationModal [isModalShown]="isModalShown" (emmitObject)="confirmedDeleteDivHelpContents($event)">
|
153 |
|
|
Are you sure you want to delete the selected help text(s)?
|
154 |
|
|
</delete-confirmation-dialog> -->
|
155 |
|
|
<modal-alert #AlertModalDeleteDivHelpContents (alertOutput)="confirmedDeleteDivHelpContents($event)"></modal-alert>
|