From: Joey Schulze Date: Fri, 26 Feb 2010 10:31:05 +0000 (+0100) Subject: Move edit box left to the table X-Git-Tag: 2010-06-02_customer~203 X-Git-Url: https://git.infodrom.org/?p=misc%2Fkostenrechnung;a=commitdiff_plain;h=b07d016d7dc84f95fd49ec2f58862e88732f31ad Move edit box left to the table --- diff --git a/lib/mask.php b/lib/mask.php index 65ee93a..403e9b0 100644 --- a/lib/mask.php +++ b/lib/mask.php @@ -14,7 +14,7 @@ function build_form($name, $fields) { $ret = array(); - $ret[] = '
'; + $ret[] = '
'; $ret[] = '
'; $ret[] = ''; @@ -150,6 +150,11 @@ function build_mask($name, $mask) else $details = array(); + if (array_key_exists('edit', $mask)) + $edit = build_form($name, $mask['edit']); + else + $edit = array(); + $title = $mask['title']; if (array_key_exists('subtitle', $mask)) $title .= ' – ' . $mask['subtitle']; @@ -161,8 +166,9 @@ function build_mask($name, $mask) return array_merge($head, $grid, array('
','
'), - $status, $details, + $edit, + $status, array('
')); } @@ -182,9 +188,7 @@ function mask($name) if (array_key_exists('table',$mask) && array_key_exists('list',$mask)) $ret = build_mask($name, $mask); - if (array_key_exists('edit', $mask)) - $ret = array_merge($ret, build_form($name, $mask['edit'])); - + error_log(count($ret)); return implode("\n", $ret); } diff --git a/style.css b/style.css index 05ceee3..579cc72 100644 --- a/style.css +++ b/style.css @@ -53,7 +53,7 @@ div#header h1 { div.right { float: right; width: 76%; - padding: 1em; + padding: 0; padding-top: 0px; margin-bottom: 1.2em; text-align: justify; @@ -61,8 +61,9 @@ div.right { div.left { float: left; - width: 20%; - margin: 0 0 10px 0; + width: 23%; + margin: 0; + padding: 0; } div.left .box { diff --git a/stylesheet.css b/stylesheet.css index c6cfacc..65da7b7 100644 --- a/stylesheet.css +++ b/stylesheet.css @@ -17,7 +17,7 @@ div.ricoLG_cell { } div.form { - margin-top: 10px; + margin-top: 0px; padding: 2px; background-color: #DDD; border: 1px solid #AAA;