GUI in frames and other applicant-related stuff

This commit is contained in:
2025-01-16 11:17:57 +01:00
parent f035f60910
commit e94a9f9900
15 changed files with 534 additions and 223 deletions

View File

@@ -7,30 +7,10 @@ GridLayout
id: personalData
columns: 2
ButtonGroup
{
buttons: radio.children
}
Row
{
Layout.fillWidth: true
id: radio
Layout.columnSpan: 2
RadioButton
{
checked: true
text: qsTr("Bewerber")
}
RadioButton
{
text: qsTr("Mitarbeiter")
}
}
Label
{
text: qsTr("Anrede")
Layout.alignment: Qt.AlignRight
}
ComboBox
{
@@ -38,10 +18,12 @@ GridLayout
Layout.fillWidth: true
editable: false
model: [qsTr("Herr"), qsTr("Frau")]
onCurrentTextChanged: briefAnrede.text = title.currentText === "Herr"? "Sehr geehrter " + title.currentText + ",": "Sehr geehrte " + title.currentText + ","
}
Label
{
text: qsTr("Vorname")
Layout.alignment: Qt.AlignRight
}
TextField
{
@@ -54,6 +36,7 @@ GridLayout
Label
{
text: qsTr("Nachname")
Layout.alignment: Qt.AlignRight
}
TextField
{
@@ -65,54 +48,65 @@ GridLayout
}
Label
{
text: qsTr("Geburtsname")
text: qsTr("Straße")
Layout.alignment: Qt.AlignRight
}
TextField
{
id: birthname
id: street
Layout.fillWidth: true
}
Label
{
text: qsTr("Geburtsdatum")
text: qsTr("PLZ")
Layout.alignment: Qt.AlignRight
}
TextField
RowLayout
{
id: birthday
Layout.fillWidth: true
placeholderText: qsTr("TT.MM.JJJJ")
validator: RegularExpressionValidator
ComboBox
{
regularExpression: /((^|)(0[1-9]{1}|[1-2]{1}[0-9]{1}|3[0-1]))\.((^|)(0[1-9]{1}|1[0-2]{1}))\.((^|)(196[0-9]{1}|19[7-9]{1}[0-9]{1}|20[0-9]{2}))/
id: postcode
Layout.fillWidth: true
}
Label
{
text: qsTr("Ort")
Layout.alignment: Qt.AlignRight
}
ComboBox
{
id: city
Layout.fillWidth: true
}
}
Label
{
text: qsTr("Geburtsort")
text: qsTr("Telefonnummer")
Layout.alignment: Qt.AlignRight
}
TextField
{
id: placeofbirth
id: phonenumber
Layout.fillWidth: true
}
Label
{
text: qsTr("Geschlecht")
text: qsTr("E-Mail")
Layout.alignment: Qt.AlignRight
}
ComboBox
TextField
{
id: gender
id: email
Layout.fillWidth: true
editable: false
model: [qsTr("Mann"), qsTr("Frau"), qsTr("Divers")]
}
Label
{
text: qsTr("Familienstand")
Layout.alignment: Qt.AlignRight
visible: radio.children[1].checked
}
ComboBox
{
@@ -120,46 +114,71 @@ GridLayout
Layout.fillWidth: true
editable: false
model: [qsTr("ledig"), qsTr("verheiratet"), qsTr("verwitwet"), qsTr("geschieden")]
visible: radio.children[1].checked
}
Label
{
text: qsTr("Jobbeschreibung")
Layout.alignment: Qt.AlignRight
visible: radio.children[1].checked
}
TextField
{
id: jobdescription
Layout.fillWidth: true
visible: radio.children[1].checked
}
Label
{
text: qsTr("Arbeitsbeginn")
Layout.alignment: Qt.AlignRight
visible: radio.children[1].checked
}
TextField
{
id: workstart
Layout.fillWidth: true
visible: radio.children[1].checked
}
Label
{
text: qsTr("Bei Befristung Ende")
Layout.alignment: Qt.AlignRight
visible: radio.children[1].checked
}
TextField
{
id: workend
Layout.fillWidth: true
visible: radio.children[1].checked
}
Label
{
text: qsTr("Arbeitszeiten")
Layout.alignment: Qt.AlignRight
visible: radio.children[1].checked
}
TextField
{
id: timetowork
Layout.fillWidth: true
visible: radio.children[1].checked
}
Label
{
text: qsTr("Briefanrede")
Layout.alignment: Qt.AlignRight
}
TextField
{
id: briefAnrede
Layout.fillWidth: true
}
Item
{
Layout.fillHeight: true
Layout.columnSpan: 2
}
}