audiohacked / googlecodeimport-dotmac

Automatically exported from code.google.com/p/dotmac
0 stars 1 forks source link

add specify value to storage size #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Open iDiskAdmin web admin tool 
2. Add new user or change exist user storage size
3. There is only a few size options.

What is the expected output? What do you see instead?
I would like to use a normal input field, not a select list. The
administration will be flexibile if i can add a specify value. Now i hacked
the iDiskUserAdmin.pm file with this code:

table({border=>1},
                        TR      (
                                th({valign=>'TOP',align=>'RIGHT'}, 'quota'),
                                td      (popup_menu(-name=>'quota',
                                                        -values=>[qw/0
1048576 2097152 5242880 10485760 15728640 20971520 104
857600 157286400 209715200 419430400 524288000 629145600 734003200 786432000/],
                                                        -labels=>{'0'=>'-',

'1048576'=>'1GB',

'2097152'=>'2GB',

'5242880'=>'5GB',

'10485760'=>'10GB',

'15728640'=>'15GB',

'20971520'=>'20GB',

'104857600'=>'100GB',

'157286400'=>'15G0B',

'209715200'=>'200GB',

'419430400'=>'400GB',

'524288000'=>'500GB',

'629145600'=>'600GB',

'734003200'=>'700GB',

'786432000'=>'750GB'},

                                                        -defaults=>
$defaultQuota)
                                        )
                                ),
                        TR

But this is only a temporaly solution. Could you release a flexibile
solution for this problem?

What version of dotmac are you using ?
0.5

What operating system are you running dotmac on ?
Linux

What version of OSX are your clients ?
Tiger

Please provide any additional information below.

Original issue reported on code.google.com by xorp...@gmail.com on 6 Feb 2008 at 11:37

GoogleCodeExporter commented 9 years ago
I can't promise we will turn this into a text field, but we can add these 
additional options for now. We are 
planning for a rewrite of idiskuseradmin at some point, and we will look into 
making it a text field then.

-Rob

Original comment by rob....@gmail.com on 6 Feb 2008 at 1:33

GoogleCodeExporter commented 9 years ago
Ok, it will be great frist step. Thanx

-MiszterX

Original comment by xorp...@gmail.com on 6 Feb 2008 at 6:23

GoogleCodeExporter commented 9 years ago

Original comment by audiohac...@gmail.com on 6 Feb 2008 at 7:17