91 lines
2.8 KiB
HTML
91 lines
2.8 KiB
HTML
<vn-watcher
|
|
vn-id="watcher"
|
|
data="$ctrl.department"
|
|
form="form"
|
|
url="Departments">
|
|
</vn-watcher>
|
|
<form name="form" ng-submit="watcher.submit()" class="vn-w-md">
|
|
<vn-card class="vn-pa-lg">
|
|
<vn-vertical>
|
|
<vn-horizontal>
|
|
<vn-textfield
|
|
vn-one
|
|
label="Name"
|
|
ng-model="$ctrl.department.name"
|
|
rule>
|
|
</vn-textfield>
|
|
<vn-textfield
|
|
vn-one
|
|
label="Code"
|
|
ng-model="$ctrl.department.code"
|
|
rule>
|
|
</vn-textfield>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-textfield
|
|
vn-one
|
|
label="Chat"
|
|
ng-model="$ctrl.department.chatName"
|
|
rule>
|
|
</vn-textfield>
|
|
<vn-textfield
|
|
vn-one
|
|
label="Email"
|
|
ng-model="$ctrl.department.notificationEmail"
|
|
rule>
|
|
</vn-textfield>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-textfield
|
|
vn-one
|
|
label="Boss department"
|
|
ng-model="$ctrl.department.workerFk">
|
|
</vn-textfield>
|
|
<vn-textfield
|
|
vn-one
|
|
label="Self-consumption customer"
|
|
ng-model="$ctrl.department.clientFk">
|
|
</vn-textfield>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-check
|
|
label="Telecommutes"
|
|
ng-model="$ctrl.department.isTeleworking">
|
|
</vn-check>
|
|
<vn-check
|
|
label="Notificate errors"
|
|
ng-model="$ctrl.department.hasToMistake">
|
|
</vn-check>
|
|
<vn-check
|
|
label="Is on production"
|
|
ng-model="$ctrl.department.isProduction">
|
|
</vn-check>
|
|
</vn-horizontal>
|
|
<vn-one>
|
|
<vn-check
|
|
label="Fill in days without physical check-ins"
|
|
ng-model="$ctrl.department.hasToRefill">
|
|
</vn-check>
|
|
</vn-one>
|
|
<vn-one>
|
|
<vn-check
|
|
label="Send check-ins by email"
|
|
ng-model="$ctrl.department.hasToSendMail">
|
|
</vn-check>
|
|
</vn-one>
|
|
</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>
|