refs #5334 email validate
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Satorres 2023-07-03 07:29:58 +02:00
parent dc36c6fd9d
commit dc10c20fe3
2 changed files with 5 additions and 16 deletions

View File

@ -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);

View File

@ -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>