51 lines
1.0 KiB
QML
51 lines
1.0 KiB
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import TeroStyle
|
|
import Js
|
|
|
|
ColumnLayout {
|
|
|
|
anchors.fill: parent
|
|
spacing: Dimensions.l
|
|
|
|
Component.onCompleted: {
|
|
employee_model.addedNewEmployee.connect(successful => {
|
|
if (successful)
|
|
contentStack.pop();
|
|
});
|
|
}
|
|
|
|
ApplicantForm
|
|
{
|
|
id: applicantForm
|
|
|
|
Layout.alignment: Qt.AlignTop
|
|
Layout.fillHeight: true
|
|
Layout.verticalStretchFactor: 1
|
|
}
|
|
RowLayout
|
|
{
|
|
Layout.alignment: Qt.AlignRight
|
|
spacing: Dimensions.l
|
|
|
|
Button
|
|
{
|
|
icon.source: "qrc:/images/ArrowLeftCircle-Outline.svg"
|
|
text: qsTr("Verwerfen")
|
|
|
|
onClicked: contentStack.pop()
|
|
}
|
|
Button
|
|
{
|
|
enabled: applicantForm.valid
|
|
icon.source: "qrc:/images/CheckCircle.svg"
|
|
text: qsTr("Speichern")
|
|
|
|
onClicked:
|
|
{
|
|
employee_model.addApplicant(applicantForm.value);
|
|
}
|
|
}
|
|
}
|
|
}
|