2020-03-24 11:20:53 +00:00
|
|
|
<mg-ajax path="Workers/{{patch.params.id}}" options="vnPatch"></mg-ajax>
|
2019-01-28 15:24:45 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.worker"
|
|
|
|
form="form"
|
2020-03-24 11:20:53 +00:00
|
|
|
save="patch">
|
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
|
2023-02-27 07:39:46 +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
|
2023-02-27 07:39:46 +00:00
|
|
|
vn-one
|
|
|
|
label="Business phone"
|
2020-01-20 10:03:40 +00:00
|
|
|
ng-model="$ctrl.worker.phone"
|
|
|
|
rule>
|
|
|
|
</vn-textfield>
|
2022-07-27 10:16:41 +00:00
|
|
|
<vn-textfield
|
2023-02-27 07:39:46 +00:00
|
|
|
vn-one
|
|
|
|
label="Mobile extension"
|
2022-07-27 10:16:41 +00:00
|
|
|
ng-model="$ctrl.worker.mobileExtension"
|
|
|
|
rule>
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2023-07-13 10:59:39 +00:00
|
|
|
<vn-worker-autocomplete
|
2021-04-13 12:08:10 +00:00
|
|
|
ng-model="$ctrl.worker.bossFk"
|
|
|
|
show-field="nickname"
|
|
|
|
label="Boss">
|
2023-07-13 10:59:39 +00:00
|
|
|
</vn-worker-autocomplete>
|
2022-03-31 07:18:18 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
label="Marital status"
|
|
|
|
data="$ctrl.maritalStatus"
|
|
|
|
show-field="name"
|
|
|
|
value-field="code"
|
|
|
|
ng-model="$ctrl.worker.maritalStatus">
|
|
|
|
</vn-autocomplete>
|
2022-07-27 10:16:41 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2022-03-31 07:18:18 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
ng-model="$ctrl.worker.originCountryFk"
|
|
|
|
url="Countries"
|
2024-05-31 08:07:27 +00:00
|
|
|
fields="['id', 'name', 'code']"
|
|
|
|
show-field="name"
|
2022-03-31 07:18:18 +00:00
|
|
|
value-field="id"
|
|
|
|
label="Origin country">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
ng-model="$ctrl.worker.educationLevelFk"
|
|
|
|
url="EducationLevels"
|
|
|
|
fields="['id', 'name']"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
label="Education level">
|
|
|
|
</vn-autocomplete>
|
2022-07-27 10:16:41 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2022-03-31 07:18:18 +00:00
|
|
|
<vn-textfield
|
2023-02-27 07:39:46 +00:00
|
|
|
vn-one
|
|
|
|
label="SSN"
|
2022-03-31 07:18:18 +00:00
|
|
|
ng-model="$ctrl.worker.SSN"
|
|
|
|
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>
|
2020-12-16 09:32:32 +00:00
|
|
|
<vn-submit
|
|
|
|
disabled="!watcher.dataChanged()"
|
|
|
|
label="Save">
|
|
|
|
</vn-submit>
|
|
|
|
<vn-button
|
|
|
|
class="cancel"
|
|
|
|
label="Undo changes"
|
|
|
|
disabled="!watcher.dataChanged()"
|
|
|
|
ng-click="watcher.loadOriginalData()">
|
|
|
|
</vn-button>
|
2019-01-28 15:24:45 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|