1 |
60211
|
k.triantaf
|
<div page-content class="admin-pages">
|
2 |
|
|
<div header>
|
3 |
|
|
<admin-tabs tab="class" header></admin-tabs>
|
4 |
|
|
<div *ngIf="!errorMessage && !showLoading" class="uk-grid filters" uk-grid>
|
5 |
|
|
<div class="uk-width-1-1">
|
6 |
|
|
<ul class="uk-subnav uk-subnav-pill">
|
7 |
|
|
<li [class.uk-active]="filterForm.get('type').value === 'all'" class="uk-margin-small-bottom"><a
|
8 |
|
|
(click)="filterForm.get('type').setValue('all')"><span
|
9 |
|
|
class="title">All portals</span></a></li>
|
10 |
|
|
<li *ngFor="let type of portalUtils.portalTypes; let i=index"
|
11 |
|
|
[class.uk-active]="filterForm.get('type').value === type.value" class="uk-margin-small-bottom"><a
|
12 |
|
|
(click)="filterForm.get('type').setValue(type.value)"><span
|
13 |
|
|
class="title">{{type.label}}</span></a></li>
|
14 |
60202
|
argiro.kok
|
</ul>
|
15 |
57916
|
argiro.kok
|
</div>
|
16 |
60215
|
k.triantaf
|
<div class="uk-width-1-1 uk-flex uk-flex-right@m uk-flex-center uk-flex-wrap uk-flex-middle uk-grid" uk-grid>
|
17 |
60211
|
k.triantaf
|
<div search-input [control]="filterForm.controls.keyword" [showSearch]="false" placeholder="Search"
|
18 |
|
|
[bordered]="true" colorClass="uk-text-secondary"></div>
|
19 |
60215
|
k.triantaf
|
<div class="show-options">
|
20 |
60211
|
k.triantaf
|
<button class="uk-button uk-button-secondary">Bulk Actions</button>
|
21 |
|
|
<div uk-dropdown="mode: click">
|
22 |
|
|
<ul class="uk-nav uk-margin-left"
|
23 |
|
|
[attr.uk-tooltip]="getSelectedDivIds().length == 0 ? 'pos:left; cls: uk-active' : 'cls: uk-invisible'"
|
24 |
|
|
title="Select at least one class">
|
25 |
|
|
<li><a [class]="getSelectedDivIds().length == 0 ? 'uk-disabled' : ''"
|
26 |
|
|
(click)="confirmDeleteSelectedDivIds()"><i></i> Delete </a></li>
|
27 |
|
|
</ul>
|
28 |
|
|
</div>
|
29 |
|
|
</div>
|
30 |
60215
|
k.triantaf
|
<div>
|
31 |
60211
|
k.triantaf
|
<a (click)="newDivId()"
|
32 |
|
|
class="uk-flex uk-flex-middle uk-text-uppercase">
|
33 |
|
|
<button class="large uk-icon-button uk-button-secondary">
|
34 |
|
|
<icon name="add"></icon>
|
35 |
|
|
</button>
|
36 |
|
|
<button class="uk-button uk-button-link uk-margin-small-left uk-text-secondary">Add class</button>
|
37 |
|
|
</a>
|
38 |
|
|
</div>
|
39 |
|
|
</div>
|
40 |
57916
|
argiro.kok
|
</div>
|
41 |
|
|
</div>
|
42 |
60211
|
k.triantaf
|
<div inner>
|
43 |
|
|
<div>
|
44 |
|
|
<div class="contentPanel">
|
45 |
|
|
<div *ngIf="updateErrorMessage" class="uk-alert-danger" uk-alert>
|
46 |
|
|
<a class="uk-alert-close" uk-close></a>
|
47 |
|
|
{{updateErrorMessage}}
|
48 |
60202
|
argiro.kok
|
</div>
|
49 |
60211
|
k.triantaf
|
<div *ngIf="errorMessage" class="uk-alert uk-alert-danger uk-margin-large-top"
|
50 |
|
|
role="alert">{{errorMessage}}</div>
|
51 |
|
|
<div [style.display]="showLoading ? 'inline' : 'none'"
|
52 |
|
|
class="uk-animation-fade uk-margin-large-top uk-width-1-1" role="alert"><img
|
53 |
57916
|
argiro.kok
|
class="uk-align-center loading-gif"></div>
|
54 |
|
|
|
55 |
60211
|
k.triantaf
|
<div class="md-card uk-margin-medium-bottom" *ngIf="!errorMessage && !showLoading">
|
56 |
|
|
<div class="md-card-content">
|
57 |
|
|
<div class="uk-overflow-container">
|
58 |
57916
|
argiro.kok
|
|
59 |
60211
|
k.triantaf
|
<table class="uk-table uk-table-striped uk-table-large">
|
60 |
|
|
<thead class="form-header">
|
61 |
|
|
<tr>
|
62 |
|
|
<th
|
63 |
|
|
class="uk-width-small"><input id="allDivIdCheckbox" type="checkbox"
|
64 |
|
|
(change)="toggleCheckBoxes($event)"></th>
|
65 |
|
|
<th>Name</th>
|
66 |
|
|
<th *ngIf="!selectedCommunityPid">Portal Type</th>
|
67 |
|
|
<th>Page</th>
|
68 |
|
|
<th>Actions</th>
|
69 |
|
|
</tr>
|
70 |
|
|
</thead>
|
71 |
|
|
<tbody>
|
72 |
|
|
<tr *ngFor="let check of checkboxes; let i=index">
|
73 |
|
|
<td><input id="{{check.divId._id}}" class="checkBox" type="checkbox"
|
74 |
|
|
name="divIdscb[]" value="{{check.divId._id}}" [(ngModel)]="check.checked">
|
75 |
|
|
</td>
|
76 |
|
|
<td>
|
77 |
|
|
<div class="name" href="#">{{check.divId.name}}</div>
|
78 |
|
|
</td>
|
79 |
|
|
<td *ngIf="!selectedCommunityPid">
|
80 |
|
|
<div class="portalType" href="#">{{check.divId.portalType}}</div>
|
81 |
|
|
</td>
|
82 |
|
|
<td>
|
83 |
|
|
<div class="pages" href="#">
|
84 |
57916
|
argiro.kok
|
<span *ngFor="let page of check.divId.pages let i=index">{{page.name}}<span
|
85 |
60211
|
k.triantaf
|
*ngIf="i<(check.divId.pages.length-1)">, </span></span>
|
86 |
|
|
</div>
|
87 |
|
|
</td>
|
88 |
|
|
<td>
|
89 |
57916
|
argiro.kok
|
|
90 |
60211
|
k.triantaf
|
<div class="actions" href="#">
|
91 |
|
|
<i class="clickable" uk-icon="pencil" (click)="editDivId(i)"></i>
|
92 |
|
|
<i class="clickable uk-text-danger" uk-icon="trash"
|
93 |
|
|
(click)="confirmDeleteDivId(check.divId._id)"></i>
|
94 |
|
|
</div>
|
95 |
|
|
</td>
|
96 |
|
|
</tr>
|
97 |
|
|
</tbody>
|
98 |
|
|
</table>
|
99 |
57928
|
argiro.kok
|
|
100 |
60211
|
k.triantaf
|
<div *ngIf="checkboxes.length==0" class="col-md-12">
|
101 |
|
|
<div class="uk-alert-warning uk-alert">No classes found</div>
|
102 |
|
|
</div>
|
103 |
|
|
<div class="uk-width-1-1 uk-flex uk-flex-center ">
|
104 |
|
|
<div class="uk-width-small uk-button uk-button-default" (click)="newDivId()">
|
105 |
|
|
<i class="" uk-icon="plus"></i>
|
106 |
57928
|
argiro.kok
|
</div>
|
107 |
57916
|
argiro.kok
|
</div>
|
108 |
|
|
</div>
|
109 |
|
|
</div>
|
110 |
|
|
</div>
|
111 |
|
|
</div>
|
112 |
|
|
</div>
|
113 |
|
|
</div>
|
114 |
60211
|
k.triantaf
|
</div>
|
115 |
57916
|
argiro.kok
|
|
116 |
|
|
<modal-alert #AlertModalSaveDivId (alertOutput)="divIdSaveConfirmed($event)"
|
117 |
|
|
[okDisabled]="myForm && (myForm.invalid || !myForm.dirty)">
|
118 |
|
|
<div *ngIf="modalErrorMessage" class="uk-alert-danger" uk-alert aria-hidden="true">{{ modalErrorMessage }}</div>
|
119 |
|
|
<form [formGroup]="myForm">
|
120 |
|
|
|
121 |
|
|
<div dashboard-input class="uk-margin-small-left" [formInput]="myForm.get('name')"
|
122 |
|
|
type="text"
|
123 |
|
|
label="Class Name">
|
124 |
|
|
</div>
|
125 |
|
|
<mat-form-field class="example-chip-list uk-width-1-1 uk-margin-small-left">
|
126 |
|
|
<mat-chip-list #chipList aria-label="Page selection">
|
127 |
|
|
<mat-chip
|
128 |
60211
|
k.triantaf
|
*ngFor="let page of selectedPages"
|
129 |
|
|
[selectable]="true"
|
130 |
|
|
[removable]="true">
|
131 |
57916
|
argiro.kok
|
{{page.name}}
|
132 |
|
|
<span (click)="remove(page)"
|
133 |
60202
|
argiro.kok
|
class=" notranslate mat-chip-remove mat-chip-trailing-icon " uk-icon="trash"></span>
|
134 |
57916
|
argiro.kok
|
</mat-chip>
|
135 |
|
|
<input placeholder="Add in pages..." #PageInput
|
136 |
|
|
[formControl]="pageSearchCtrl" [matAutocomplete]="auto" [matChipInputFor]="chipList">
|
137 |
|
|
</mat-chip-list>
|
138 |
|
|
<mat-autocomplete #auto="matAutocomplete" (optionSelected)="selected($event)">
|
139 |
|
|
<mat-option *ngFor="let page of filteredPages| async" [value]="page">
|
140 |
|
|
{{page.name}}
|
141 |
|
|
</mat-option>
|
142 |
|
|
</mat-autocomplete>
|
143 |
|
|
</mat-form-field>
|
144 |
|
|
|
145 |
60211
|
k.triantaf
|
<div [ngClass]="{'has-error':!myForm.controls.portalType.valid && myForm.controls.portalType.dirty}"
|
146 |
|
|
class="form-group" uk-grid>
|
147 |
60202
|
argiro.kok
|
<div class="uk-width-1-1 uk-margin-small-bottom uk-text-bold uk-form-label">
|
148 |
59465
|
konstantin
|
Class exists in:
|
149 |
60202
|
argiro.kok
|
</div>
|
150 |
|
|
<div class="uk-child-width-1-2 uk-grid">
|
151 |
|
|
<span *ngFor="let option of portalUtils.portalTypes" class="radio ">
|
152 |
|
|
<span class="uk-margin-small-right" style="font-weight: normal;">{{option.label}}</span>
|
153 |
|
|
<input type="radio" [value]="option.value" formControlName="portalType">
|
154 |
|
|
</span>
|
155 |
|
|
</div>
|
156 |
57916
|
argiro.kok
|
</div>
|
157 |
|
|
|
158 |
|
|
<input type="hidden" formControlName="_id">
|
159 |
|
|
</form>
|
160 |
|
|
|
161 |
|
|
</modal-alert>
|
162 |
|
|
|
163 |
|
|
|
164 |
|
|
<modal-alert #AlertModalDeleteDivIds (alertOutput)="confirmedDeleteDivIds($event)"></modal-alert>
|