blob: 6ab580217419087336f89e429287853a0ca0fd31 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<div>
<!--Sklonjeno ucitavanje novog dataseta i sve opcije u vezi sa tim, premesteno u add-new-dataset-->
<div class="col-12 d-flex my-5">
<div class="col-3">
</div>
<button type="button" id="btnMyDataset" class="btn" (click)="viewMyDatasetsForm()"
[ngClass]="{'btnType1': showMyDatasets, 'btnType2': !showMyDatasets}">
Izaberite dataset iz kolekcije
</button>
<h3 class="mt-3 mx-3">ili</h3>
<button type="button" id="btnNewDataset" class="btn" (click)="viewNewDatasetForm()"
[ngClass]="{'btnType1': !showMyDatasets, 'btnType2': showMyDatasets}">
Dodajte novi dataset
</button>
</div>
<div class="px-5 my-2">
<input *ngIf="showMyDatasets" type="text" class="form-control" placeholder="Pretraga"
[(ngModel)]="term">
</div>
<div class="px-5" *ngIf="showMyDatasets">
<div class="overflow-auto" style="max-height: 500px;">
<ul class="list-group">
<li class="list-group-item p-3" *ngFor="let dataset of myDatasets|filter:term"
[ngClass]="{'selectedDatasetClass': this.selectedDataset == dataset}">
<app-item-dataset name="usersDataset" [dataset]="dataset"
(click)="selectThisDataset(dataset);"></app-item-dataset>
</li>
</ul>
</div>
<div class="px-5 mt-5">
<app-datatable [tableData]="tableData"></app-datatable>
</div>
</div>
<app-add-new-dataset [style]="(showMyDatasets)?'display:none;visibility:hidden;':''" id="dataset"
(newDatasetAdded)="refreshMyDatasets()">
</app-add-new-dataset>
</div>
|