add buttons to the form

This commit is contained in:
Damien Churchill 2009-04-06 20:04:54 +00:00
parent 9885e530cb
commit 485a1f3487

View File

@ -344,7 +344,6 @@ Deluge.Add.Options = new Ext.TabPanel({
border: false, border: false,
labelWidth: 10, labelWidth: 10,
defaultType: 'checkbox', defaultType: 'checkbox',
width: 190,
items: [{ items: [{
fieldLabel: '', fieldLabel: '',
labelSeparator: '', labelSeparator: '',
@ -355,6 +354,14 @@ Deluge.Add.Options = new Ext.TabPanel({
labelSeparator: '', labelSeparator: '',
boxLabel: _('Prioritize First/Last Piece'), boxLabel: _('Prioritize First/Last Piece'),
id: 'prioritize_first_last' id: 'prioritize_first_last'
}, {
xtype: 'button',
text: _('Apply to All'),
style: 'margin-left: 20px; margin-top: 5px;'
}, {
xtype: 'button',
text: _('Revert to Defaults'),
style: 'margin-left: 20px; margin-top: 5px;'
}] }]
}] }]
}] }]
@ -402,7 +409,7 @@ Deluge.Add.File.form = new Ext.form.FormPanel({
fieldLabel: _('File'), fieldLabel: _('File'),
name: 'file', name: 'file',
buttonCfg: { buttonCfg: {
text: _('Browse...') text: _('Browse') + '...'
} }
}] }]
}); });
@ -488,7 +495,7 @@ Deluge.Add.Url.Window = new Ext.Window({
Deluge.Add.Window = new Ext.Window({ Deluge.Add.Window = new Ext.Window({
layout: 'border', layout: 'border',
width: 460, width: 500,
height: 450, height: 450,
bodyStyle: 'padding: 10px 5px;', bodyStyle: 'padding: 10px 5px;',
buttonAlign: 'right', buttonAlign: 'right',