/*!
 *
 * Copyright (c) 2021-2024 Diality Inc. - All Rights Reserved.
 * \copyright
 * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN
 * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER.
 *
 * \file    PostTreatmentReview.qml
 * \author  (last)      Behrouz NematiPour
 * \date    (last)      31-Jul-2024
 * \author  (original)  Behrouz NematiPour
 * \date    (original)  21-Apr-2021
 *
 */

// Qt
import QtQuick 2.12


// Project
//  Qml imports
import "qrc:/globals"
import "qrc:/components"
import "qrc:/compounds"
import "qrc:/pages/posttreatment"

/*!
 * \brief   the post treatment Treatment Log review screen
 */
PostTreatmentBase { id: _root

    Grid { id: _grid
        clip: true

        anchors {
            top             : header.bottom
            topMargin       : Variables.defaultMargin
            bottom          : _root.bottom
            bottomMargin    : Variables.notificationHeight + Variables.minVGap
            horizontalCenter: parent.horizontalCenter
        }

        flow            : Grid.TopToBottom
        columns         : 3
        rows            : _repeater.model.count / columns
        rowSpacing      : 10
        columnSpacing   : Variables.defaultMargin

        Repeater { id: _repeater
            model       : vPostTreatmentAdjustmentTreatmentLog.parametersTitle

            LabelUnitText { id: container
                height      : 65
                width       : 575
                label       : modelData
                unit        : vPostTreatmentAdjustmentTreatmentLog.parametersUnit[index] ?? ""
                value       : "123" // vPostTreatmentAdjustmentTreatmentLog.parametersText[index] ?? ""
                textAlignment: Text.AlignJustify
            }
        }
    }

    reasonText      : vPostTreatmentAdjustmentTreatmentLog.text()
    informationText : vPostTreatmentAdjustmentTreatmentLog.notification
}

