mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
191 files reformatted across views, components, widgets, hybrid, contexts. New components: CCreateSchemaDialog, CAddFieldDialog, CAdminContentPanel. JS helpers: connBadgeStatus/Text, adminStats, exampleLabels, onLevelClicked. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
64 lines
2.0 KiB
QML
64 lines
2.0 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import QmlComponents 1.0
|
|
|
|
CCard {
|
|
id: root
|
|
Layout.fillWidth: true
|
|
|
|
property string transferFrom: ""
|
|
property string transferTo: ""
|
|
property string transferReason: ""
|
|
property string transferExpiry: ""
|
|
|
|
signal submitted(string from, string to, string reason, string expiry)
|
|
|
|
CText { variant: "h4"; text: "New Transfer Request" }
|
|
CDivider { Layout.fillWidth: true }
|
|
|
|
RowLayout {
|
|
Layout.fillWidth: true
|
|
spacing: 16
|
|
CTextField {
|
|
Layout.fillWidth: true; label: "From User"
|
|
placeholderText: "e.g. admin"; text: root.transferFrom
|
|
onTextChanged: root.transferFrom = text
|
|
}
|
|
CTextField {
|
|
Layout.fillWidth: true; label: "To User"
|
|
placeholderText: "e.g. devops"; text: root.transferTo
|
|
onTextChanged: root.transferTo = text
|
|
}
|
|
}
|
|
|
|
CTextField {
|
|
Layout.fillWidth: true; label: "Reason"
|
|
placeholderText: "Describe the reason for this transfer"
|
|
text: root.transferReason; onTextChanged: root.transferReason = text
|
|
}
|
|
|
|
CTextField {
|
|
Layout.fillWidth: true; label: "Expiry Date"
|
|
placeholderText: "YYYY-MM-DD"
|
|
text: root.transferExpiry; onTextChanged: root.transferExpiry = text
|
|
}
|
|
|
|
FlexRow {
|
|
Layout.fillWidth: true; spacing: 8
|
|
Item { Layout.fillWidth: true }
|
|
CButton {
|
|
text: "Submit Transfer"; variant: "primary"; size: "sm"
|
|
onClicked: {
|
|
if (root.transferFrom &&
|
|
root.transferTo && root.transferReason) {
|
|
root.submitted(root.transferFrom, root.transferTo,
|
|
root.transferReason, root.transferExpiry || "No expiry")
|
|
root.transferFrom = ""; root.transferTo = ""
|
|
root.transferReason = ""; root.transferExpiry = ""
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|