import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import TeroStyle

ColumnLayout {
    property int row: -1

    anchors.fill: parent
    spacing: Dimensions.l

    onRowChanged: {
        if (row !== -1) {
            applicantForm.setValue(applicantModel.applicant(row))
        }
    }

    ApplicantForm {
        id: applicantForm

        Layout.alignment: Qt.AlignTop
        Layout.fillHeight: true
        Layout.verticalStretchFactor: 1
    }

    RowLayout {
        spacing: Dimensions.l

        Button {
            text: qsTr("Als Mitarbeiter:in Einstellen")
            icon.source: "qrc:/images/InboxArrowDown.svg"
        }
    }
}
