aboutsummaryrefslogtreecommitdiffstats
path: root/AdminPanel/Hosts
diff options
context:
space:
mode:
authorMatteo Pasotti <matteo.pasotti@gmail.com>2014-01-11 15:40:08 +0100
committerMatteo Pasotti <matteo.pasotti@gmail.com>2014-01-11 15:40:08 +0100
commit79ff7936e6ab62d42b67a0b88c0572c2f335e9e1 (patch)
tree2f902cb1b61d85c96f392c91a8fbf322f7bc5305 /AdminPanel/Hosts
parent9d146f8c3b779f92c5b9d5bd6ee1e7e424343035 (diff)
downloadcolin-keep-79ff7936e6ab62d42b67a0b88c0572c2f335e9e1.tar
colin-keep-79ff7936e6ab62d42b67a0b88c0572c2f335e9e1.tar.gz
colin-keep-79ff7936e6ab62d42b67a0b88c0572c2f335e9e1.tar.bz2
colin-keep-79ff7936e6ab62d42b67a0b88c0572c2f335e9e1.tar.xz
colin-keep-79ff7936e6ab62d42b67a0b88c0572c2f335e9e1.zip
- layout fixed (ncurses input fields are now better sized)
Diffstat (limited to 'AdminPanel/Hosts')
-rw-r--r--AdminPanel/Hosts/GHosts.pm40
1 files changed, 21 insertions, 19 deletions
diff --git a/AdminPanel/Hosts/GHosts.pm b/AdminPanel/Hosts/GHosts.pm
index 8687f9b..345a8e8 100644
--- a/AdminPanel/Hosts/GHosts.pm
+++ b/AdminPanel/Hosts/GHosts.pm
@@ -86,31 +86,33 @@ sub _addHostDialog {
my $layout = $factory->createVBox($dlg);
my $hbox_header = $factory->createHBox($layout);
- my $hbox_content = $factory->createHBox($layout);
- my $leftContent = $factory->createVBox($hbox_content);
- my $rightContent = $factory->createVBox($hbox_content);
+ my $vbox_content = $factory->createVBox($layout);
my $hbox_footer = $factory->createHBox($layout);
- $leftContent->setWeight($yui::YD_HORIZ, 1);
- $rightContent->setWeight($yui::YD_HORIZ, 2);
-
# header
my $labelDescription = $factory->createLabel($hbox_header,"Add the informations");
# content
- my $labelIPAddress = $factory->createLabel($leftContent,"IP Address");
- my $labelHostName = $factory->createLabel($leftContent,"Hostname");
- my $labelHostAlias = $factory->createLabel($leftContent,"Host aliases");
- $labelIPAddress->setWeight($yui::YD_HORIZ, 1);
- $labelHostName->setWeight($yui::YD_HORIZ, 1);
- $labelHostAlias->setWeight($yui::YD_HORIZ, 1);
-
- my $textIPAddress = $factory->createInputField($rightContent,"");
- my $textHostName = $factory->createInputField($rightContent,"");
- my $textHostAlias = $factory->createInputField($rightContent,"");
- $textIPAddress->setWeight($yui::YD_HORIZ, 2);
- $textHostName->setWeight($yui::YD_HORIZ, 2);
- $textHostAlias->setWeight($yui::YD_HORIZ, 2);
+ # my $labelIPAddress = $factory->createLabel($leftContent,"IP Address");
+ # my $labelHostName = $factory->createLabel($leftContent,"Hostname");
+ # my $labelHostAlias = $factory->createLabel($leftContent,"Host aliases");
+ my $firstHbox = $factory->createHBox($vbox_content);
+ my $secondHbox = $factory->createHBox($vbox_content);
+ my $thirdHbox = $factory->createHBox($vbox_content);
+
+ my $labelIPAddress = $factory->createLabel($firstHbox,"IP Address");
+ my $labelHostName = $factory->createLabel($secondHbox,"Hostname");
+ my $labelHostAlias = $factory->createLabel($thirdHbox,"Host aliases");
+ $labelIPAddress->setWeight($yui::YD_HORIZ, 10);
+ $labelHostName->setWeight($yui::YD_HORIZ, 10);
+ $labelHostAlias->setWeight($yui::YD_HORIZ, 10);
+
+ my $textIPAddress = $factory->createInputField($firstHbox,"");
+ my $textHostName = $factory->createInputField($secondHbox,"");
+ my $textHostAlias = $factory->createInputField($thirdHbox,"");
+ $textIPAddress->setWeight($yui::YD_HORIZ, 30);
+ $textHostName->setWeight($yui::YD_HORIZ, 30);
+ $textHostAlias->setWeight($yui::YD_HORIZ, 30);
# footer
my $cancelButton = $factory->createPushButton($factory->createLeft($hbox_footer),"Cancel");