PL
games/xencenter-xenadmin-xcp-jumphp / forms / MasterPasswordForm.form.yaml · commit fb1b7c9
# The master password: asked at start to open the saved passwords (mode unlock), or set / changed / removed from Tools (mode manage).# The code behind it: src/Form/MasterPasswordForm.php (the keys: src/Model/Keyring.php)form:  title: 'Master Password'  dialog: true  width: 500  fontSize: 13  accent: '#0078d7'  layout: column  padding: 20  gap: 10  children:    - type: row      gap: 12      items: start      children:        - {class: App\Gui\IconBox, id: icon, kind: info, width: 32, height: 32}        - type: column          gap: 4          grow: 1          children:            - {type: label, id: heading, text: 'Master Password', style: subtitle}            - {type: label, id: message, text: '', wrap: true}    - type: column      id: currentPanel      gap: 6      children:        - {type: label, id: currentLabel, text: 'Master password:'}        - {type: textbox, id: current, password: true, events: {submit: onOkClick}}    - type: column      id: newPanel      gap: 6      children:        - {type: label, text: 'New master password:'}        - {type: textbox, id: newPassword, password: true}        - {type: label, text: 'Confirm the new master password:'}        - {type: textbox, id: confirm, password: true, events: {submit: onOkClick}}    - {type: label, id: note, text: '', style: muted, size: 12, wrap: true}    - {type: label, id: error, text: '', color: '#d1242f', wrap: true}    - type: row      gap: 8      children:        - {type: button, id: forget, text: 'Forget Saved Passwords', style: danger, events: {click: onForgetClick}}        - {type: button, id: remove, text: 'Remove Master Password', style: flat, events: {click: onRemoveClick}}        - {type: spacer}        - {type: button, id: ok, text: OK, style: primary, default: true, events: {click: onOkClick}}        - {type: button, id: cancel, text: Cancel, cancel: true, events: {click: onCancelClick}}