# Storage > New Storage: the type of storage repository, its name, where it is (src/Form/NewSrForm.php)form: title: 'New Storage Repository' dialog: true width: 640 fontSize: 13 accent: '#0078d7' layout: column padding: 20 gap: 10 children: - type: row gap: 12 children: - {class: App\Gui\IconBox, kind: new-sr, width: 32, height: 32} - type: column gap: 0 children: - {type: label, text: 'New Storage Repository', style: subtitle} - {type: label, id: where, text: '', style: muted, size: 12} - type: grid gap: 8 children: - {type: label, text: 'Type:', span: 4} - {type: combobox, id: kind, items: [], span: 8, events: {change: onKindChange}} - {type: label, text: 'Name:', span: 4} - {type: textbox, id: name, span: 8} - {type: label, text: 'Description:', span: 4} - {type: textbox, id: description, placeholder: '(made from the location when empty)', span: 8} - type: panel id: nfsPanel title: 'NFS server' padding: 10 gap: 8 children: - type: grid gap: 8 children: - {type: label, text: 'Server:', span: 4} - {type: textbox, id: nfsServer, placeholder: '192.168.10.20', span: 8} - {type: label, text: 'Export path:', span: 4} - {type: textbox, id: nfsPath, placeholder: '/export/xcp', span: 8} - {type: label, text: 'NFS version:', span: 4} - {type: combobox, id: nfsVersion, items: ['3', '4', '4.1'], selected: 0, span: 8} - type: row gap: 8 children: - {type: button, id: nfsScan, text: 'Scan the server', style: flat, events: {click: onNfsScanClick}} - {type: label, id: nfsFound, text: '', style: muted, size: 12, wrap: true, grow: 1} - type: panel id: smbPanel title: 'SMB / CIFS share' padding: 10 gap: 8 children: - type: grid gap: 8 children: - {type: label, text: 'Share:', span: 4} - {type: textbox, id: smbServer, placeholder: '//nas/share', span: 8} - {type: label, text: 'User name:', span: 4} - {type: textbox, id: smbUser, span: 8} - {type: label, text: 'Password:', span: 4} - {type: textbox, id: smbPassword, password: true, span: 8} - type: panel id: iscsiPanel title: 'iSCSI target' padding: 10 gap: 8 children: - type: grid gap: 8 children: - {type: label, text: 'Target host:', span: 4} - {type: textbox, id: iscsiTarget, placeholder: '10.0.10.30', span: 8} - {type: label, text: 'Port:', span: 4} - {type: textbox, id: iscsiPort, text: '3260', span: 8} - {type: label, text: 'Target IQN:', span: 4} - {type: textbox, id: iscsiIqn, placeholder: '(found by Scan when empty)', span: 8} - {type: label, text: 'LUN:', span: 4} - {type: combobox, id: iscsiLun, items: [], placeholder: 'Scan the target first', span: 8} - type: row gap: 8 children: - {type: button, id: iscsiScan, text: 'Scan the target', style: flat, events: {click: onIscsiScanClick}} - {type: label, id: iscsiFound, text: '', style: muted, size: 12, wrap: true, grow: 1} - type: panel id: localPanel title: 'Local device' padding: 10 gap: 8 children: - type: grid gap: 8 children: - {type: label, text: 'Server:', span: 4} - {type: combobox, id: localHost, items: [], span: 8} - {type: label, text: 'Device:', span: 4} - {type: textbox, id: localDevice, placeholder: '/dev/sdb', span: 8} - {type: label, text: 'Everything on the device is erased.', style: muted, size: 12} - {type: label, id: error, text: '', color: '#d1242f', wrap: true} - type: row gap: 8 children: - {type: spacer} - {type: button, id: create, text: 'Create', style: primary, default: true, events: {click: onCreateClick}} - {type: button, id: cancel, text: Cancel, cancel: true, events: {click: onCancelClick}}