38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
<vn-watcher
|
|
vn-id="watcher"
|
|
data="$ctrl.worker"
|
|
form="form"
|
|
id-field="id"
|
|
url="api/Workers"
|
|
save="post">
|
|
</vn-watcher>
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" compact>
|
|
<vn-card class="vn-pa-lg">
|
|
<vn-vertical>
|
|
<vn-horizontal>
|
|
<vn-textfield
|
|
vn-one
|
|
label="Name"
|
|
field="$ctrl.worker.firstName">
|
|
</vn-textfield>
|
|
<vn-textfield
|
|
vn-one
|
|
label="Last name"
|
|
field="$ctrl.worker.lastName">
|
|
</vn-textfield>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-textfield
|
|
vn-one
|
|
label="Phone"
|
|
field="$ctrl.worker.phone">
|
|
</vn-textfield>
|
|
</vn-horizontal>
|
|
</vn-vertical>
|
|
</vn-card>
|
|
<vn-button-bar>
|
|
<vn-submit label="Save"></vn-submit>
|
|
<vn-button label="Undo changes" ng-if="watcher.dataChanged()" ng-click="watcher.loadOriginalData()"></vn-button>
|
|
</vn-button-bar>
|
|
</form>
|