|
@@ -1,6 +1,7 @@
|
1
|
1
|
<div class="card">
|
2
|
2
|
<h5>Candidates List</h5>
|
3
|
|
- <div><button (click)="showNew()" type="button" class="primary">Add</button><br></div>
|
|
3
|
+ <div><button (click)="showNew()" type="button" class="btn btn-primary">Add</button></div>
|
|
4
|
+ <br/>
|
4
|
5
|
<table class="table table-bordered">
|
5
|
6
|
<thead>
|
6
|
7
|
<tr>
|
|
@@ -11,7 +12,7 @@
|
11
|
12
|
</tr>
|
12
|
13
|
</thead>
|
13
|
14
|
<tbody>
|
14
|
|
- <tr (click)="showDetail(candidate.id)" *ngFor="let candidate of candidates | async">
|
|
15
|
+ <tr (click)="showDetail(candidate.id)" *ngFor="let candidate of candidates | async | paginate: { itemsPerPage: 4, currentPage: cp }" class="listMargin">
|
15
|
16
|
<td>{{candidate.id}}</td>
|
16
|
17
|
<td>{{candidate.firstName}}</td>
|
17
|
18
|
<td>{{candidate.lastName}}</td>
|
|
@@ -22,50 +23,39 @@
|
22
|
23
|
</tr>
|
23
|
24
|
</td>
|
24
|
25
|
<td>
|
25
|
|
- <button icon="pi pi-pencil" class="p-button-rounded p-button-success mr-2" (click)="showDetail(candidate.id)">edit</button>
|
26
|
|
- <button icon="pi pi-trash" class="p-button-rounded p-button-warning">delete</button>
|
|
26
|
+ <button class="btn btn-warning" (click)="showDetail(candidate.id)">Edit</button> - <button class="btn btn-danger" >Delete</button>
|
27
|
27
|
</td>
|
28
|
28
|
</tr>
|
29
|
29
|
</tbody>
|
30
|
30
|
</table>
|
31
|
|
- <div>
|
|
31
|
+ <pagination-controls (pageChange)="cp = $event"></pagination-controls>
|
|
32
|
+ <div>
|
32
|
33
|
<form name="editForm" role="form">
|
33
|
|
- <button>Search</button>
|
|
34
|
+ <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">
|
|
35
|
+ Search
|
|
36
|
+ </button>
|
34
|
37
|
</form>
|
35
|
38
|
</div>
|
36
|
|
- <!-- <button [routerLink]="'/candidate/candidate-sidebar'" pButton pRipple type="button" label="Add" class="mr-2 mb-2"></button> -->
|
37
|
|
- <!-- <p-table #dt [value]="theCandidates" [paginator]="true" [rows]="5" [showCurrentPageReport]="true" responsiveLayout="scroll"
|
38
|
|
- currentPageReportTemplate="Showing {first} to {last} of {totalRecords} entries" [rowsPerPageOptions]="[5,10,25,50]">
|
39
|
|
- <ng-template pTemplate="header">
|
40
|
|
- <tr>
|
41
|
|
- <th>Id</th>
|
42
|
|
- <th>First Name</th>
|
43
|
|
- <th>Last Name</th>
|
44
|
|
- <th>Emails</th>
|
45
|
|
- </tr>
|
46
|
|
- </ng-template>
|
47
|
|
- <ng-template pTemplate="body" let-candidate>
|
48
|
|
- <tr>
|
49
|
|
- <td>{{candidate.id}}</td>
|
50
|
|
- <td>{{candidate.firstname}}</td>
|
51
|
|
- <td>{{candidate.lastname}}</td>
|
52
|
|
- <td>
|
53
|
|
- <tr *ngFor="let ml of candidate.emails">
|
54
|
|
- <span>{{ml.email}}</span>
|
55
|
|
- <span> - {{ml.type}}</span>
|
56
|
|
- </tr>
|
57
|
|
- </td>
|
58
|
|
- <td>
|
59
|
|
- <button pButton pRipple icon="pi pi-pencil" class="p-button-rounded p-button-success mr-2"></button>
|
60
|
|
- <button pButton pRipple icon="pi pi-trash" class="p-button-rounded p-button-warning"></button>
|
61
|
|
- </td>
|
62
|
|
- </tr>
|
63
|
|
- </ng-template>
|
64
|
|
- <ng-template pTemplate="paginatorleft">
|
65
|
|
- <span class="p-float-label">
|
66
|
|
- <input type="text" class="w-full" pInputText>
|
67
|
|
- <label>Search</label>
|
68
|
|
- </span>
|
69
|
|
- </ng-template>
|
70
|
|
- </p-table> -->
|
|
39
|
+
|
71
|
40
|
</div>
|
|
41
|
+
|
|
42
|
+<!-- Modal -->
|
|
43
|
+<div class="modal" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
|
44
|
+ <div class="modal-dialog" role="document">
|
|
45
|
+ <div class="modal-content">
|
|
46
|
+ <div class="modal-header">
|
|
47
|
+ <h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
|
|
48
|
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
49
|
+ <span aria-hidden="true">×</span>
|
|
50
|
+ </button>
|
|
51
|
+ </div>
|
|
52
|
+ <div class="modal-body">
|
|
53
|
+ ...
|
|
54
|
+ </div>
|
|
55
|
+ <div class="modal-footer">
|
|
56
|
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
|
57
|
+ <button type="button" class="btn btn-primary">Save changes</button>
|
|
58
|
+ </div>
|
|
59
|
+ </div>
|
|
60
|
+ </div>
|
|
61
|
+</div>
|