From: Michal Vaner Date: Sun, 31 Aug 2008 11:52:44 +0000 (+0200) Subject: Make textboxes bigger X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=e7094efe914fc231fe9eb8b39d347a12a257a357;p=pciids.git Make textboxes bigger --- diff --git a/PciIds/Html/Forms.pm b/PciIds/Html/Forms.pm index 3d1b83a..a1f41e7 100644 --- a/PciIds/Html/Forms.pm +++ b/PciIds/Html/Forms.pm @@ -9,10 +9,11 @@ our @EXPORT = qw(&genForm &getForm &genFormEx &getFormValue &genRadios); sub genFormEx( $$ ) { my( $inputs, $values ) = @_; + print "\n"; foreach( @{$inputs} ) { my( $kind, $label, $type, $name, $other ) = @{$_}; $other = '' unless( defined $other ); - print ''.$label.'<'.$kind.( ( defined $type ) ? ' type="'.$type.'"' : '' ).' name="'.$name.'" '.$other.( defined( $values->{$name} && ( $label ne 'textarea' ) ) ? 'value="'.encode_entities( $values->{$name} ).'" ' : '' ).">\n"; + print ''.$label.'<'.$kind.( ( defined $type ) ? " type='$type' class='$type'" : '' ).' name="'.$name.'" '.$other.( defined( $values->{$name} && ( $label ne 'textarea' ) ) ? 'value="'.encode_entities( $values->{$name} ).'" ' : '' ).">\n"; if( $kind eq 'textarea' ) { print encode_entities( $values->{$name} ) if( defined( $values->{$name} ) ); print "\n"; diff --git a/static/print.css b/static/print.css index 9640f8d..6db1f47 100644 --- a/static/print.css +++ b/static/print.css @@ -25,9 +25,10 @@ border-bottom: dotted; border-bottom-width: 1px; } +form table, table.subnodes { - width: 99%; + width: 100%; table-layout: fixed; } col.id-col @@ -38,3 +39,18 @@ col.name-col { width: 60%; } +form table +col.label +{ + width: 15%; +} +col.edit +{ + width: 85%; +} +input.text, +input.password, +textarea +{ + width: 100%; +} diff --git a/static/screen.css b/static/screen.css index 857fcec..0aa45b0 100644 --- a/static/screen.css +++ b/static/screen.css @@ -80,6 +80,7 @@ ul.navigation { margin-left: -1em; /* Hack. Move the place the bullets would take if they were there back left. */ } +form table, table.subnodes { width: 100%; @@ -93,3 +94,18 @@ col.name-col { width: 60%; } +form table +col.label +{ + width: 15%; +} +col.edit +{ + width: 85%; +} +input.text, +input.password, +textarea +{ + width: 100%; +}