2019-01-28 15:24:45 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.worker"
|
|
|
|
form="form"
|
2019-01-30 12:32:25 +00:00
|
|
|
id-field="id"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Workers"
|
2019-01-30 12:32:25 +00:00
|
|
|
save="post">
|
2019-01-28 15:24:45 +00:00
|
|
|
</vn-watcher>
|
2019-11-10 10:08:44 +00:00
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2019-01-30 12:32:25 +00:00
|
|
|
<vn-vertical>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
2019-02-08 16:49:51 +00:00
|
|
|
vn-one
|
2019-01-30 12:32:25 +00:00
|
|
|
label="Name"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.worker.firstName"
|
|
|
|
rule>
|
2019-01-30 12:32:25 +00:00
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Last name"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.worker.lastName"
|
|
|
|
rule>
|
2019-01-30 12:32:25 +00:00
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
2020-01-20 10:03:40 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Phone"
|
|
|
|
ng-model="$ctrl.worker.phone"
|
|
|
|
rule>
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
2019-01-30 12:32:25 +00:00
|
|
|
</vn-vertical>
|
2019-01-28 15:24:45 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Save"></vn-submit>
|
2019-09-18 07:41:25 +00:00
|
|
|
<vn-button label="Undo changes" ng-if="watcher.dataChanged()" ng-click="watcher.loadOriginalData()"></vn-button>
|
2019-01-28 15:24:45 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|