Project

General

Profile

1
<div id="content">
2
<!--  //TODO make this and the other tables a generic Component-->
3
  <div class="p-grid" id="tableContainer">
4
    <div class="p-col-12">
5
      <p-table [lazy]="true"
6
               [value]="documents"
7
               styleClass="p-datatable-gridlines"
8
               [rowHover]="true"
9
               [autoLayout]="true">
10
        <ng-template pTemplate="header">
11
          <tr>
12
            <th>Received Date</th>
13
            <th>Doc Name</th>
14
            <th>Doc Type</th>
15
            <th>Doc Code</th>
16
            <th>iPower Client Code</th>
17
            <th class="one-button">Preview Document</th>
18
          </tr>
19
        </ng-template>
20
        <ng-template let-document
21
                     pTemplate="body">
22
          <tr>
23
            <td>{{document?.rtaReceivedDate|date: "dd/MM/yyyy HH:mm"}}</td>
24
            <td>{{document?.dmsFileName}}</td>
25
            <td>{{document?.dmsFileType}}</td>
26
            <td>{{document?.dmsDocumentNumber}}</td>
27
            <td>{{document?.dmsClientCode}}</td>
28
            <td>
29
              <p-button (onClick)="showOrDownloadFile(document)"
30
                        icon="pi pi-file-o"
31
                        styleClass="p-button-secondary p-button-rounded p-button-outlined"
32
                        pTooltip="{{'PREVIEW-DOCUMENT' | translate}}">
33
              </p-button>
34
            </td>
35
          </tr>
36
        </ng-template>
37
      </p-table>
38
    </div>
39
  </div>
40
  <div class="p-grid p-justify-center">
41
    <div class="p-m-4"
42
         id="title">
43
      Forward the document to ABBY for data capturing?
44
    </div>
45
    <div class="p-col-12"
46
         style="text-align: center;">
47
      <button class="p-button-warning"
48
                id="cancelBtn"
49
                label="Cancel"
50
                type="button"
51
                pButton
52
                (click)="closeDialog()">
53
      </button>
54
      <button class="p-button-primary"
55
                label="Forward"
56
                type="button"
57
                pButton
58
                (click)="onForward()">
59
      </button>
60
    </div>
61
  </div>
62
</div>
(1-1/4)