37 lines
893 B
HTML
37 lines
893 B
HTML
|
<vn-watcher
|
||
|
vn-id="watcher"
|
||
|
url="supplier/new"
|
||
|
data="$ctrl.supplier"
|
||
|
insert-mode="true"
|
||
|
form="form">
|
||
|
</vn-watcher>
|
||
|
<vn-crud-model
|
||
|
auto-load="true"
|
||
|
url="Origins"
|
||
|
data="originsData"
|
||
|
order="name"
|
||
|
vn-id="origin-model">
|
||
|
</vn-crud-model>
|
||
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
||
|
<vn-card class="vn-pa-lg">
|
||
|
<vn-horizontal>
|
||
|
<vn-textfield
|
||
|
label="Supplier name"
|
||
|
ng-model="$ctrl.supplier.name"
|
||
|
vn-focus>
|
||
|
</vn-textfield>
|
||
|
</vn-horizontal>
|
||
|
</vn-card>
|
||
|
<vn-button-bar>
|
||
|
<vn-submit
|
||
|
disabled="!watcher.dataChanged()"
|
||
|
label="Create">
|
||
|
</vn-submit>
|
||
|
<vn-button
|
||
|
class="cancel"
|
||
|
label="Cancel"
|
||
|
ui-sref="supplier.index">
|
||
|
</vn-button>
|
||
|
</vn-button-bar>
|
||
|
</form>
|