finished AddCustomer Form
This commit is contained in:
@@ -74,6 +74,11 @@ GridLayout
|
||||
property string name: "email"
|
||||
id: emailcontact
|
||||
Layout.fillWidth: true
|
||||
placeholderText: qsTr("beispiel@domain.de")
|
||||
validator: RegularExpressionValidator
|
||||
{
|
||||
regularExpression: /([\+!#$%&‘\*\–\/\=?\^_`\.{|}\~0-9A-Za-z]{1,185})@([0-9A-Za-z\.]{1,64})\.([a-zA-z]{2,5})/
|
||||
}
|
||||
}
|
||||
|
||||
Label
|
||||
@@ -86,6 +91,10 @@ GridLayout
|
||||
property string name: "telephonecontact"
|
||||
id: telephonecontact
|
||||
Layout.fillWidth: true
|
||||
validator: RegularExpressionValidator
|
||||
{
|
||||
regularExpression: /([+0-9]{1})([0-9]{1,17})/
|
||||
}
|
||||
}
|
||||
|
||||
Label
|
||||
@@ -98,6 +107,10 @@ GridLayout
|
||||
property string name: "cellphone"
|
||||
id: cellphone
|
||||
Layout.fillWidth: true
|
||||
validator: RegularExpressionValidator
|
||||
{
|
||||
regularExpression: /([+0-9]{1})([0-9]{1,17})/
|
||||
}
|
||||
}
|
||||
Label
|
||||
{
|
||||
@@ -109,6 +122,11 @@ GridLayout
|
||||
property string name: "birthday"
|
||||
id: birthday
|
||||
Layout.fillWidth: true
|
||||
placeholderText: qsTr("TT.MM.JJJJ")
|
||||
validator: RegularExpressionValidator
|
||||
{
|
||||
regularExpression: /((^|)([0-2]{1}[0-9]{1}|3[0-1]))\.((^|)([0-1]{1,2}|12))\.([0-9]{4})/
|
||||
}
|
||||
}
|
||||
|
||||
Label
|
||||
|
||||
Reference in New Issue
Block a user