This commit is contained in:
parent
dc36c6fd9d
commit
dc10c20fe3
|
@ -1,11 +1,4 @@
|
|||
module.exports = Self => {
|
||||
Self.validatesFormatOf('Email', {
|
||||
message: 'Invalid email',
|
||||
allowNull: true,
|
||||
allowBlank: true,
|
||||
with: /^[\W]*([\w+\-.%]+@[\w\-.]+\.[A-Za-z]{1,61}[\W]*,{1}[\W]*)*([\w+\-.%]+@[\w\-.]+\.[A-Za-z]{1,61})[\W]*$/
|
||||
});
|
||||
|
||||
require('../methods/department/getLeaves')(Self);
|
||||
require('../methods/department/createChild')(Self);
|
||||
require('../methods/department/removeChild')(Self);
|
||||
|
|
|
@ -20,15 +20,13 @@
|
|||
vn-one
|
||||
label="Name"
|
||||
ng-model="$ctrl.department.name"
|
||||
vn-name="Name"
|
||||
rule>
|
||||
vn-name="Name">
|
||||
</vn-textfield>
|
||||
<vn-textfield
|
||||
vn-one
|
||||
label="Code"
|
||||
ng-model="$ctrl.department.code"
|
||||
vn-name="Code"
|
||||
rule>
|
||||
vn-name="Code">
|
||||
</vn-textfield>
|
||||
</vn-horizontal>
|
||||
<vn-horizontal>
|
||||
|
@ -36,15 +34,13 @@
|
|||
vn-one
|
||||
label="Chat"
|
||||
ng-model="$ctrl.department.chatName"
|
||||
vn-name="Chat"
|
||||
rule>
|
||||
vn-name="Chat">
|
||||
</vn-textfield>
|
||||
<vn-textfield
|
||||
<vn-textfield type="Email"
|
||||
vn-one
|
||||
label="Email"
|
||||
ng-model="$ctrl.department.notificationEmail"
|
||||
vn-name="Email"
|
||||
rule>
|
||||
vn-name="Email">
|
||||
</vn-textfield>
|
||||
</vn-horizontal>
|
||||
<vn-horizontal>
|
||||
|
|
Loading…
Reference in New Issue