Author: damoxc

Revision: 4964

Log:
        begin the layout of the options tab form

Diff:
Modified: trunk/deluge/ui/web/js/deluge-details.js
===================================================================
--- trunk/deluge/ui/web/js/deluge-details.js    2009-03-31 18:42:10 UTC (rev 
4963)
+++ trunk/deluge/ui/web/js/deluge-details.js    2009-04-01 16:31:51 UTC (rev 
4964)
@@ -386,10 +386,84 @@
                autoScroll:true,
                margins: '0 0 0 0',
                listeners: {'render': {fn: Deluge.Details.Peers.onRender, 
scope: Deluge.Details.Peers}}
-       }),{
+       }), new Ext.form.FormPanel({
                id: 'options',
-               title: _('Options')
-       }],
+               title: _('Options'),
+               frame: true,
+               items: [{
+                       layout: 'column',
+                       border: false,
+                       defaults: {
+                               columnWidth: '.33',
+                               border: false
+                       },
+                       
+                       items: [{
+                               bodyStyle: 'padding-right:5px;',
+                               items: [{
+                                       xtype: 'fieldset',
+                                       title: _('Bandwidth'),
+                                       autoHeight: true,
+                                       defaultType: 'uxspinner',
+                                       items: [{
+                                               fieldLabel: _('Max Download 
Speed'),
+                                               name: 'max_download_speed'
+                                       }, {
+                                               fieldLabel: _('Max Upload 
Speed'),
+                                               name: 'max_upload_speed'
+                                       }, {
+                                               fieldLabel: _('Max 
Connections'),
+                                               name: 'max_connections'
+                                       }, {
+                                               fieldLabel: _('Max Upload 
Slots'),
+                                               name: 'max_upload_slots'
+                                       }]
+                               }]
+                       }, {
+                               bodyStyle: 'padding-left: 5px; 
padding-right:5px;',
+                               items: [{
+                                       xtype: 'fieldset',
+                                       title: _('Queue'),
+                                       autoHeight: true,
+                                       defaultType: 'checkbox',
+                                       items: [{
+                                               fieldLabel: '',
+                                               boxLabel: _('Auto Managed'),
+                                               name: 'auto_managed'
+                                       }, {
+                                               fieldLabel: '',
+                                               boxLabel: _('Stop seed at 
ratio'),
+                                               name: 'stop_ratio'
+                                       }, {
+                                               fieldLabel: '',
+                                               boxLabel: _('Remove at ratio'),
+                                               name: 'remove_ratio'
+                                       }, {
+                                               fieldLabel: '',
+                                               boxLabel: _('Move Completed'),
+                                               name: 'move_completed'
+                                       }]
+                               }]
+                       }, {
+                               bodyStyle: 'padding-left:5px;',
+                               items: [{
+                                       xtype: 'fieldset',
+                                       title: _('General'),
+                                       autoHeight: true,
+                                       defaultType: 'checkbox',
+                                       items: [{
+                                               fieldLabel: '',
+                                               boxLabel: _('Private'),
+                                               name: 'private'
+                                       }, {
+                                               fieldLabel: '',
+                                               boxLabel: _('Prioritize 
First/Last'),
+                                               name: 'prioritize_first'
+                                       }]
+                               }]
+                       }],
+               }]
+       })],
        listeners: {
                'render': {fn: Deluge.Details.onRender, scope: Deluge.Details},
                'tabchange': {fn: Deluge.Details.onTabChange, scope: 
Deluge.Details}



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to