File: 1057-angular.component.html

package info (click to toggle)
web-mode 17.3.20-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,164 kB
  • sloc: lisp: 13,359; javascript: 506; jsp: 113; sh: 10; php: 9; makefile: 8; xml: 2
file content (93 lines) | stat: -rw-r--r-- 2,515 bytes parent folder | download | duplicates (2)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<form #f="ngForm" (ngSubmit)="saveDocument()">
  <!-- General info -->
  <table class="document-modal__info-table">
    <thead>
      <tr>
        <th>
          {{ 'general.general_info' | translate }}
        </th>
        <th class="text-right" colspan="2">
          <a
            class="btn document-modal__info-table__edit-btn"
            (click)="toggleInfoEdit()"
            *ngIf="canEdit() && document.isInvoice()"
          >
            {{ 'general.edit' | translate }}
          </a>
          <span class="icon-lock" *ngIf="!canEdit() || document.isDocument()"></span>
        </th>
      </tr>
    </thead>
    <tbody>
      <!-- Source -->
      <tr>
        <td>
          {{ 'general.source' | translate }}
        </td>
        <td colspan="2">
          <b *ngIf="document.source === 0">
            {{ 'general.upload' | translate }}
          </b>
          <b *ngIf="document.source === 1">
            {{ 'general.email' | translate }}
          </b>
          <b *ngIf="document.source === 3">
            Scanner
          </b>
          <b *ngIf="document.source === 4">
            Zoomit
          </b>
          <b *ngIf="document.source === 5">
            Codabox
          </b>
          <b *ngIf="document.source === 6">
            Basware
          </b>
        </td>
      </tr>
      <tr>
        <td>
          {{ 'general.upload_date' | translate }}
        </td>
        <td>
          {{ document.getDateUpload() }}
        </td>
      </tr>
      <!-- Journal -->
      <ng-container *appIfFeature="'journals'">
        <tr *ngIf="document.isDocument()">
          <td>
            {{ 'journal.journal' | translate }}
          </td>
          <td colspan="2">
            {{ document.journal.name }}
          </td>
        </tr>
      </ng-container>
    </tbody>

    <tbody *ngIf="document.isInvoice() || document.isArchive()">
      <!-- Customer -->
      <tr>
        <td>
          {{ 'modal.customer' | translate }}
        </td>
        <td colspan="2" *ngIf="!editInfo">
          {{ document.invoice.third_name }}
        </td>
      </tr>
      <tr class="input-row" *ngIf="editInfo">
        <td colspan="2">
          <div class="p-relative">
            <app-autocomplete
              type="input"
              source="third_name"
              [placeholder]="'modal.customer' | translate"
              [(data)]="document.invoice.third_name"
            ></app-autocomplete>
          </div>
        </td>
      </tr>
    </tbody>
  </table>
</form>