1 |
53600
|
argiro.kok
|
<div id="divIds">
|
2 |
|
|
<div class="menubar ">
|
3 |
|
|
<div class="divId-title uk-text-large">Predefined classes for contents</div>
|
4 |
|
|
<div *ngIf="updateErrorMessage" class="uk-alert-danger" uk-alert>
|
5 |
|
|
<a class="uk-alert-close" uk-close></a>
|
6 |
|
|
{{updateErrorMessage}}
|
7 |
|
|
</div>
|
8 |
|
|
<form target="BSFormPanel_Admin_1" class="search">
|
9 |
53984
|
konstantin
|
<!-- <input #inputstring (keyup.enter)="filterBySearch(inputstring.value)" placeholder="Class name..." type="text" class="uk-input uk-width-medium"/>
|
10 |
|
|
<button class="uk-button" type="submit">Search</button> -->
|
11 |
59297
|
konstantin
|
<input type="text" class="uk-input uk-width-medium" placeholder="Class name, portal type..." aria-describedby="sizing-addon2" [(ngModel)]="keyword" name="keyword" >
|
12 |
53984
|
konstantin
|
<button (click)="filterBySearch(keyword)" type="submit" class=" uk-button">
|
13 |
|
|
<span class="uk-icon">
|
14 |
|
|
<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>
|
15 |
|
|
</span>Search
|
16 |
|
|
</button>
|
17 |
53600
|
argiro.kok
|
</form>
|
18 |
|
|
<!-- <a (click)="showModal()" class="uk-button uk-button-primary uk-float-right"><i></i> New Class </a> -->
|
19 |
|
|
</div>
|
20 |
|
|
|
21 |
|
|
<div class="content-wrapper" id="contentWrapper">
|
22 |
|
|
<div>
|
23 |
|
|
<div class="contentPanel">
|
24 |
|
|
<div *ngIf="errorMessage" class="uk-alert uk-alert-danger uk-margin-large-top" role="alert">{{errorMessage}}</div>
|
25 |
|
|
<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>
|
26 |
|
|
|
27 |
|
|
<div *ngIf="!errorMessage && !showLoading" class="page-controls">
|
28 |
|
|
<div class=" filters ">
|
29 |
|
|
<div class="show-options uk-float-right">
|
30 |
|
|
<button class="uk-button" type="button">Bulk Actions</button>
|
31 |
|
|
<div uk-dropdown="mode: click">
|
32 |
56771
|
konstantin
|
<ul class="uk-nav uk-navbar-dropdown-nav"
|
33 |
53600
|
argiro.kok
|
[attr.uk-tooltip]="getSelectedDivIds().length == 0 ? 'pos:left; cls: uk-active' : 'cls: uk-invisible'"
|
34 |
|
|
title="Select at least one class">
|
35 |
|
|
<li><a [class]="getSelectedDivIds().length == 0 ? 'uk-disabled' : ''" (click)="confirmDeleteSelectedCommunities()"><i></i> Delete </a></li>
|
36 |
|
|
</ul>
|
37 |
|
|
</div>
|
38 |
|
|
</div>
|
39 |
|
|
</div>
|
40 |
|
|
</div>
|
41 |
|
|
|
42 |
|
|
<div *ngIf="!errorMessage && !showLoading">
|
43 |
|
|
<div class="gwt-HTML">
|
44 |
|
|
<div class="users-list"> <!--"row" class removed"-->
|
45 |
|
|
<div class="col-md-12">
|
46 |
|
|
<!-- <div class="filters marginBottom20">
|
47 |
|
|
<div class="links form-group form-inline">
|
48 |
|
|
<span>Filter by community:</span>
|
49 |
|
|
<select class="uk-select uk-width-medium" (change)="filterByCommunity($event)">
|
50 |
|
|
<option *ngFor="let community of communities" value="{{community.pid}}">{{community.name}}</option>
|
51 |
|
|
</select>
|
52 |
|
|
</div>
|
53 |
|
|
</div> -->
|
54 |
|
|
<table class="uk-table uk-table-striped">
|
55 |
|
|
<thead>
|
56 |
|
|
<tr>
|
57 |
|
|
<th><input id="allDivIdCheckbox" type="checkbox" (change)="toggleCheckBoxes($event)"></th>
|
58 |
|
|
<th>Name</th>
|
59 |
|
|
<!-- <th>Community</th> -->
|
60 |
|
|
<th>Page</th>
|
61 |
59297
|
konstantin
|
<th>Portal Type</th>
|
62 |
53600
|
argiro.kok
|
<th>Actions</th>
|
63 |
|
|
</tr>
|
64 |
|
|
</thead>
|
65 |
|
|
<tbody >
|
66 |
|
|
<tr *ngFor="let check of checkboxes; let i=index">
|
67 |
|
|
<td><input id="{{check.divId._id}}" class="checkBox" type="checkbox"
|
68 |
|
|
name="divIdscb[]" value="{{check.divId._id}}" [(ngModel)]="check.checked">
|
69 |
|
|
</td>
|
70 |
|
|
<td>
|
71 |
|
|
<div class="name" href="#">{{check.divId.name}}</div>
|
72 |
|
|
</td>
|
73 |
|
|
<!-- <td>
|
74 |
|
|
<div class="community" href="#">{{check.divId.community.name}}</div>
|
75 |
|
|
</td> -->
|
76 |
|
|
<td>
|
77 |
|
|
<!-- <div class="page" href="#">{{check.divId.page.name}}</div> -->
|
78 |
|
|
<div class="pages" href="#">
|
79 |
|
|
<span *ngFor="let page of check.divId.pages let i=index">{{page.name}}<span *ngIf="i<(check.divId.pages.length-1)">, </span></span>
|
80 |
|
|
</div>
|
81 |
|
|
</td>
|
82 |
|
|
<td>
|
83 |
59297
|
konstantin
|
<div class="portalType" href="#">{{check.divId.portalType}}</div>
|
84 |
|
|
</td>
|
85 |
|
|
<td>
|
86 |
53600
|
argiro.kok
|
<div class="actions" href="#">
|
87 |
56514
|
k.triantaf
|
<input title="Edit" src="assets/imgs/icn_edit.png" class="edit uk-margin-small-right" type="image" (click)="editDivId(i)">
|
88 |
53600
|
argiro.kok
|
<input title="Delete" src="assets/imgs/icn_trash.png" class="delete" type="image" (click)="confirmDeleteDivId(check.divId._id)">
|
89 |
|
|
</div>
|
90 |
|
|
</td>
|
91 |
|
|
</tr>
|
92 |
|
|
</tbody>
|
93 |
|
|
</table>
|
94 |
|
|
|
95 |
|
|
<div *ngIf="checkboxes.length==0" class="col-md-12">
|
96 |
|
|
<div class="uk-alert-warning" uk-alert>No classes found</div>
|
97 |
|
|
</div>
|
98 |
|
|
</div>
|
99 |
|
|
</div>
|
100 |
|
|
</div>
|
101 |
|
|
</div>
|
102 |
|
|
</div>
|
103 |
|
|
</div>
|
104 |
|
|
</div>
|
105 |
|
|
<!-- <fab (clicked)="showModal()"></fab> -->
|
106 |
|
|
<fab (clicked)="newDivId()"></fab>
|
107 |
|
|
</div>
|
108 |
|
|
<!-- <modal-form #saveModal [saveText]="'Save'" [titleText]="'Add a new Class'" [formGroup]="formGroup" [type]="'divId'"
|
109 |
|
|
[isModalShown]="isModalShown" (emmitObject)="divIdSavedSuccessfully($event)" (emmitError)="handleUpdateError($event)">
|
110 |
|
|
<divId-form [group]="formGroup"></divId-form>
|
111 |
|
|
</modal-form>
|
112 |
|
|
|
113 |
|
|
<modal-form #updateModal [saveText]="'Update'" [titleText]="'Update Class'" [formGroup]="formGroup" [type]="'divId'"
|
114 |
|
|
[isModalShown]="isModalShown" (emmitObject)="divIdUpdatedSuccessfully($event)" (emmitError)="handleUpdateError($event)">
|
115 |
|
|
<divId-form [group]="formGroup" [formPages]="formPages"></divId-form>
|
116 |
|
|
</modal-form> -->
|
117 |
|
|
|
118 |
|
|
<modal-alert #AlertModalSaveDivId (alertOutput)="divIdSaveConfirmed($event)">
|
119 |
|
|
<div *ngIf="modalErrorMessage" class="uk-alert-danger" uk-alert aria-hidden="true">{{ modalErrorMessage }}</div>
|
120 |
|
|
<divId-form [group]="formGroup" [formPages]="formPages"></divId-form>
|
121 |
|
|
</modal-alert>
|
122 |
|
|
|
123 |
|
|
<modal-alert #AlertModalUpdateDivId (alertOutput)="divIdUpdateConfirmed($event)">
|
124 |
|
|
<div *ngIf="modalErrorMessage" class="uk-alert-danger" uk-alert aria-hidden="true">{{ modalErrorMessage }}</div>
|
125 |
|
|
<divId-form [group]="formGroup" [formPages]="formPages"></divId-form>
|
126 |
|
|
</modal-alert>
|
127 |
|
|
|
128 |
|
|
<!-- <delete-confirmation-dialog #deleteConfirmationModal [isModalShown]="isModalShown" (emmitObject)="confirmedDeleteDivIds($event)">
|
129 |
|
|
Are you sure you want to delete the selected class(-es)?
|
130 |
|
|
</delete-confirmation-dialog> -->
|
131 |
|
|
<modal-alert #AlertModalDeleteDivIds (alertOutput)="confirmedDeleteDivIds($event)"></modal-alert>
|