]> mj.ucw.cz Git - pciids.git/commitdiff
Make textboxes bigger
authorMichal Vaner <vorner@ucw.cz>
Sun, 31 Aug 2008 11:52:44 +0000 (13:52 +0200)
committerMichal Vaner <vorner@ucw.cz>
Sun, 31 Aug 2008 11:52:44 +0000 (13:52 +0200)
PciIds/Html/Forms.pm
static/print.css
static/screen.css

index 3d1b83a461876aa98c577e54c59e8fb9a141e630..a1f41e72b9073dc559794d6631fc60232c50ec9b 100644 (file)
@@ -9,10 +9,11 @@ our @EXPORT = qw(&genForm &getForm &genFormEx &getFormValue &genRadios);
 
 sub genFormEx( $$ ) {
        my( $inputs, $values ) = @_;
+       print "<col class='label'><col class='edit'>\n";
        foreach( @{$inputs} ) {
                my( $kind, $label, $type, $name, $other ) = @{$_};
                $other = '' unless( defined $other );
-               print '<tr><td>'.$label.'<td><'.$kind.( ( defined $type ) ? ' type="'.$type.'"' : '' ).' name="'.$name.'" '.$other.( defined( $values->{$name} && ( $label ne 'textarea' ) ) ? 'value="'.encode_entities( $values->{$name} ).'" ' : '' ).">\n";
+               print '<tr><td>'.$label.'<td><'.$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 "</$kind>\n";
index 9640f8deeb03546e32b26e2fda26c25028b9189b..6db1f476c90871b6b665708b4acc0627c5b60b17 100644 (file)
        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%;
+}
index 857fcec8215e6154558503901c938a0ac910b6ad..0aa45b0e1243461f026f8c9f34fb63fb2806f1c6 100644 (file)
@@ -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%;
+}