登录
ZH
games/xencenter-xenadmin-xcp-jumphp / forms / DiskForm.form.yaml · commit fb1b7c9
# VM Storage tab > Add… (a new virtual disk) or Attach… (a disk no VM uses) (src/Form/DiskForm.php)form:  title: 'Add Virtual Disk'  dialog: true  width: 560  fontSize: 13  accent: '#0078d7'  layout: column  padding: 20  gap: 10  children:    - type: row      gap: 12      children:        - {class: App\Gui\IconBox, kind: disk, width: 32, height: 32}        - type: column          gap: 0          children:            - {type: label, id: heading, text: 'Add Virtual Disk', style: subtitle}            - {type: label, id: where, text: '', style: muted, size: 12}    - type: grid      id: addPanel      gap: 8      children:        - {type: label, text: 'Name:', span: 4}        - {type: textbox, id: name, span: 8}        - {type: label, text: 'Description:', span: 4}        - {type: textbox, id: description, span: 8}        - {type: label, text: 'Size (GB):', span: 4}        - {type: textbox, id: size, text: '20', span: 8}        - {type: label, text: 'Storage:', span: 4}        - {type: combobox, id: sr, items: [], span: 8}    - type: column      id: attachPanel      gap: 8      children:        - {type: label, text: 'Disks that no VM uses:'}        - {type: listbox, id: disk, items: [], height: 150}    - {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: spacer}        - {type: button, id: ok, text: 'Add', style: primary, default: true, events: {click: onOkClick}}        - {type: button, id: cancel, text: Cancel, cancel: true, events: {click: onCancelClick}}