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

101 lines
3.4 KiB
HTML
Raw Normal View History

2023-05-15 08:43:06 +00:00
<vn-watcher
vn-id="watcher"
2023-05-16 09:41:42 +00:00
data="$ctrl.department"
2023-05-15 08:43:06 +00:00
form="form"
url="Departments">
2023-05-15 08:43:06 +00:00
</vn-watcher>
2023-06-30 07:39:48 +00:00
<vn-portal slot="topbar">
<vn-searchbar
vn-focus
info="Search departments by id, name or code"
on-search="$ctrl.onSearch($params)"
base-state="worker.department">
</vn-searchbar>
</vn-portal>
2023-05-30 08:13:49 +00:00
<form name="form" ng-submit="watcher.submit()" class="vn-w-md">
2023-05-15 08:43:06 +00:00
<vn-card class="vn-pa-lg">
<vn-vertical>
<vn-horizontal>
<vn-textfield
vn-one
label="Name"
2023-05-16 09:41:42 +00:00
ng-model="$ctrl.department.name"
2023-07-03 05:29:58 +00:00
vn-name="Name">
2023-05-15 08:43:06 +00:00
</vn-textfield>
<vn-textfield
vn-one
2023-05-16 09:41:42 +00:00
label="Code"
ng-model="$ctrl.department.code"
2023-07-03 05:29:58 +00:00
vn-name="Code">
2023-05-15 08:43:06 +00:00
</vn-textfield>
</vn-horizontal>
<vn-horizontal>
<vn-textfield
vn-one
2023-05-16 09:41:42 +00:00
label="Chat"
ng-model="$ctrl.department.chatName"
2023-07-03 05:29:58 +00:00
vn-name="Chat">
2023-05-15 08:43:06 +00:00
</vn-textfield>
2023-07-03 05:29:58 +00:00
<vn-textfield type="Email"
2023-05-15 08:43:06 +00:00
vn-one
2023-05-16 09:41:42 +00:00
label="Email"
ng-model="$ctrl.department.notificationEmail"
2023-07-03 05:29:58 +00:00
vn-name="Email">
2023-05-15 08:43:06 +00:00
</vn-textfield>
</vn-horizontal>
<vn-horizontal>
<vn-worker-autocomplete
2023-06-01 09:30:28 +00:00
ng-model="$ctrl.department.workerFk"
show-field="nickname"
label="Boss department">
</vn-worker-autocomplete>
2023-06-01 09:30:28 +00:00
<vn-autocomplete
ng-model="$ctrl.department.clientFk"
url="Clients/"
show-field="name"
search-function="{firstName: $search}"
label="Self-consumption customer">
</vn-autocomplete>
2023-05-15 08:43:06 +00:00
</vn-horizontal>
2023-06-30 11:52:46 +00:00
<vn-horizontal>
<vn-check
label="Telework"
ng-model="$ctrl.department.isTeleworking">
</vn-check>
<vn-check
label="Notify on errors"
ng-model="$ctrl.department.hasToMistake">
</vn-check>
</vn-horizontal>
<vn-horizontal>
2023-06-30 11:52:46 +00:00
<vn-check
label="worksInProduction"
ng-model="$ctrl.department.isProduction">
</vn-check>
<vn-check
label="Fill in days without physical check-ins"
ng-model="$ctrl.department.hasToRefill">
</vn-check>
</vn-horizontal>
<vn-horizontal>
2023-06-30 11:52:46 +00:00
<vn-check
label="Send check-ins by email"
ng-model="$ctrl.department.hasToSendMail">
</vn-check>
2023-06-30 11:52:46 +00:00
</vn-horizontal>
2023-05-15 08:43:06 +00:00
</vn-vertical>
</vn-card>
<vn-button-bar>
<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>
</vn-button-bar>
</form>