1 Deluge.Preferences.addPage({
  2 	border: false,
  3 	title: _('Downloads'),
  4 	xtype: 'form',
  5 	layout: 'form',
  6 	items: [{
  7 		xtype: 'fieldset',
  8 		border: false,
  9 		title: _('Folders'),
 10 		labelWidth: 140,
 11 		defaultType: 'textfield',
 12 		autoHeight: true,
 13 		items: [{
 14 			name: 'download_location',
 15 			fieldLabel: _('Download to'),
 16 			width: 125
 17 		}, {
 18 			name: 'move_completed',
 19 			fieldLabel: _('Move completed to'),
 20 			width: 125
 21 		}, {
 22 			name: 'copy_torrent_files',
 23 			fieldLabel: _('Copy of .torrent files to'),
 24 			width: 125
 25 		}]
 26 	}, {
 27 		xtype: 'fieldset',
 28 		border: false,
 29 		title: _('Allocation'),
 30 		autoHeight: true,
 31 		labelWidth: 1,
 32 		defaultType: 'radio',
 33 		items: [{
 34 			name: 'compact_allocation',
 35 			labelSeparator: '',
 36 			boxLabel: _('Compact')
 37 		}, {
 38 			name: 'compact_allocation',
 39 			labelSeparator: '',
 40 			boxLabel: _('Full')
 41 		}]
 42 	}, {
 43 		xtype: 'fieldset',
 44 		border: false,
 45 		title: _('Options'),
 46 		autoHeight: true,
 47 		labelWidth: 1,
 48 		defaultType: 'checkbox',
 49 		items: [{
 50 			name: 'prioritize_first_last',
 51 			labelSeparator: '',
 52 			boxLabel: _('Prioritize first and last pieces of torrent')
 53 		}, {
 54 			name: 'add_paused',
 55 			labelSeparator: '',
 56 			boxLabel: _('Add torrents in Paused state')
 57 		}]
 58 	}]
 59 });