salix/modules/worker/front/basic-data/index.html

102 lines
3.4 KiB
HTML
Raw Normal View History

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">
<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>
<vn-textfield
2023-02-27 07:39:46 +00:00
vn-one
label="Mobile extension"
ng-model="$ctrl.worker.mobileExtension"
rule>
</vn-textfield>
</vn-horizontal>
<vn-horizontal>
2021-02-19 16:45:45 +00:00
<vn-autocomplete
ng-model="$ctrl.worker.bossFk"
2021-05-18 12:44:24 +00:00
url="Workers/activeWithInheritedRole"
show-field="nickname"
search-function="{firstName: $search}"
where="{role: 'employee'}"
label="Boss">
2021-02-19 16:45:45 +00:00
</vn-autocomplete>
<vn-autocomplete
label="Marital status"
data="$ctrl.maritalStatus"
show-field="name"
value-field="code"
ng-model="$ctrl.worker.maritalStatus">
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-autocomplete
ng-model="$ctrl.worker.originCountryFk"
url="Countries"
fields="['id', 'country', 'code']"
show-field="country"
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>
</vn-horizontal>
<vn-horizontal>
<vn-textfield
2023-02-27 07:39:46 +00:00
vn-one
label="SSN"
ng-model="$ctrl.worker.SSN"
rule>
</vn-textfield>
2023-02-27 07:39:46 +00:00
<vn-input-number
min="0"
label="Locker"
ng-model="$ctrl.worker.locker">
</vn-input-number>
</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>