/
bhFindInvoice.tmpl.html
45 lines (43 loc) · 1.49 KB
/
bhFindInvoice.tmpl.html
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
<form data-find-invoice name="FindInvoiceForm" novalidate>
<div class="form-group"
ng-class="{ 'has-success' : $ctrl.invoiceFound && FindInvoiceForm.$submitted, 'has-error' : !$ctrl.invoiceFound && FindInvoiceForm.$submitted }">
<label class="control-label" translate>FORM.LABELS.ENTER_INVOICE_ID</label>
<div class="input-group">
<input
id="search-input"
class="form-control"
type="text"
ng-model="$ctrl.invoiceReference"
ng-keypress="$ctrl.onKeyPress($event, FindInvoiceForm)"
ng-disabled="$ctrl.disabled">
<span class="input-group-btn">
<button
id="search-button"
class="btn btn-default"
type="button"
ng-click="$ctrl.search(FindInvoiceForm)"
ng-disabled="$ctrl.disabled"
translate>
FORM.BUTTONS.SEARCH
</button>
</span>
</div>
<p
ng-if="$ctrl.invoiceFound === false"
class="help-block"
translate="FORM.INFO.PATIENT_INVOICE_NOT_FOUND"
translate-values="{{ $ctrl.translate }}">
</p>
<p
ng-if="$ctrl.invoiceFound === true"
class="help-block"
translate="FORM.INFO.PATIENT_INVOICE_FOUND">
</p>
</div>
<div ng-if="$ctrl.invoiceFound === true && $ctrl.invoiceItems" class="alert alert-success">
<b>{{$ctrl.invoice.details.reference}}</b> {{ $ctrl.invoiceDescription }}
<ul>
<li ng-repeat="item in $ctrl.invoiceItems track by $index">{{ item }}</li>
</ul>
</div>
</form>