159 lines
4.1 KiB
QML
159 lines
4.1 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
|
|
// ScrollView
|
|
// {
|
|
// anchors.fill: parent
|
|
// ScrollBar.vertical: ScrollBar
|
|
// {
|
|
// policy: ScrollBar.AlwaysOn
|
|
// }
|
|
ColumnLayout
|
|
{
|
|
id: colPar
|
|
anchors.fill: parent
|
|
Label
|
|
{
|
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
|
id: headline
|
|
text: qsTr("Mitarbeiter / Bewerber hinzufügen")
|
|
font.pixelSize: 35
|
|
|
|
}
|
|
ButtonGroup
|
|
{
|
|
buttons: radio.children
|
|
}
|
|
|
|
Row
|
|
{
|
|
Layout.fillWidth: true
|
|
id: radio
|
|
Layout.columnSpan: 2
|
|
RadioButton
|
|
{
|
|
checked: true
|
|
text: qsTr("Bewerber")
|
|
}
|
|
RadioButton
|
|
{
|
|
text: qsTr("Mitarbeiter")
|
|
}
|
|
}
|
|
RowLayout
|
|
{
|
|
Layout.fillWidth: true
|
|
spacing: 50
|
|
|
|
Frame
|
|
{
|
|
Layout.alignment: Qt.AlignTop
|
|
Layout.fillWidth: true
|
|
ApplicantPersonalData
|
|
{
|
|
id: personalData
|
|
width: parent.width
|
|
}
|
|
}
|
|
|
|
Frame
|
|
{
|
|
Layout.alignment: Qt.AlignTop
|
|
Layout.fillWidth: true
|
|
visible: radio.children[1].checked
|
|
ColumnLayout
|
|
{
|
|
Layout.alignment: Qt.AlignTop
|
|
width: parent.width
|
|
// CheckBox
|
|
// {
|
|
// id: checkcontactdata
|
|
// Layout.fillWidth: true
|
|
// text: qsTr("Kontaktdaten")
|
|
// checked: false
|
|
// }
|
|
|
|
// ApplicantContactData
|
|
// {
|
|
// visible: checkcontactdata.checked
|
|
// }
|
|
|
|
CheckBox
|
|
{
|
|
id: miniJobber
|
|
Layout.fillWidth: true
|
|
text: qsTr("Minijob")
|
|
checked: false
|
|
}
|
|
|
|
CheckBox
|
|
{
|
|
id: checkbankdata
|
|
Layout.fillWidth: true
|
|
text: qsTr("Bankdaten")
|
|
checked: false
|
|
}
|
|
|
|
ApplicantBankData
|
|
{
|
|
id: checkbankData
|
|
visible: checkbankdata.checked
|
|
}
|
|
|
|
ApplicantNationalInsurance
|
|
{
|
|
|
|
}
|
|
|
|
ApplicantVarious
|
|
{
|
|
// Layout.margins:
|
|
// {
|
|
// top: 30
|
|
// }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
Item
|
|
{
|
|
Layout.fillHeight: true
|
|
}
|
|
|
|
RowLayout
|
|
{
|
|
Layout.fillHeight: true
|
|
Layout.alignment: Qt.AlignRight
|
|
Button
|
|
{
|
|
text: qsTr("Abbrechen")
|
|
onClicked: appLoader.source = "EmployeeTable.qml"
|
|
}
|
|
Button
|
|
{
|
|
id: saveBtn
|
|
text: qsTr("Speichern")
|
|
enabled: false
|
|
// onClicked:
|
|
// {
|
|
// if (!checkAddContact.checked)
|
|
// {
|
|
// new_business = JsLib.addBusiness(customerView)
|
|
// business_model.addBusiness(new_business, 0)
|
|
// appLoader.source = "EmployeeTable.qml"
|
|
// }
|
|
// else
|
|
// {
|
|
// new_business = JsLib.addBusiness(customerView)
|
|
// var new_contact = JsLib.addBusiness(addContactLayout)
|
|
// contact_model.addContact(new_contact)
|
|
// }
|
|
// }
|
|
}
|
|
}
|
|
}
|
|
//}
|
|
|