salix/modules/client/front/balance/create/index.html

47 lines
1.6 KiB
HTML
Raw Normal View History

2019-02-05 15:46:02 +00:00
<vn-dialog
vn-id="dialog"
class="modal-form">
<tpl-body>
<mg-ajax path="/client/api/receipts" options="vnPost"></mg-ajax>
<vn-horizontal class="header">
<h5><span translate>New payment</span></h5>
2018-10-24 12:10:48 +00:00
</vn-horizontal>
<div class="vn-pa-md">
2019-02-05 15:46:02 +00:00
<vn-horizontal>
<vn-date-picker
vn-one
2019-02-05 15:46:02 +00:00
label="Date"
field="$ctrl.receipt.payed">
2019-02-05 15:46:02 +00:00
</vn-date-picker>
<vn-autocomplete vn-one
url="/api/Companies"
label="Company"
show-field="code"
value-field="id"
field="$ctrl.receipt.companyFk">
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
2019-07-04 08:34:19 +00:00
<vn-autocomplete vn-one
url="/api/Banks"
2019-02-05 15:46:02 +00:00
label="Bank"
2019-07-04 08:34:19 +00:00
show-field="bank"
value-field="id"
2019-02-05 15:46:02 +00:00
field="$ctrl.receipt.bankFk">
2019-07-04 08:34:19 +00:00
</vn-autocomplete>
<vn-input-number
vn-one
vn-focus
2019-02-05 15:46:02 +00:00
label="Amount"
field="$ctrl.receipt.amountPaid"
step="0.01"
rule>
</vn-input-number>
2019-02-05 15:46:02 +00:00
</vn-horizontal>
</div>
<vn-horizontal class="vn-ma-md buttons-bar">
2019-02-05 15:46:02 +00:00
<vn-button vn-one label="Save" ng-click="$ctrl.save()"></vn-button>
<vn-button vn-one ng-click="$ctrl.hide()" label="Cancel"></vn-button>
2018-10-24 12:10:48 +00:00
</vn-horizontal>
2019-02-05 15:46:02 +00:00
</tpl-body>
</vn-dialog>