commit b32283bc90fbe33ad15b1ba060922aaa9619dcaa
parent 006b7164f7f3ba12f3056cc2d08a9cef4e83ad9c
Author: Jan Dankert <devnull@localhost>
Date: Tue, 30 Oct 2012 21:42:28 +0100
In schmalen Fenstern die Formular-Label über den Eingabefeldern anzeigen. Beschreibungen nur als Tooltip über dem Feldnamen.
Diffstat:
3 files changed, 36 insertions(+), 10 deletions(-)
diff --git a/themes/default/css/openrat.css.php b/themes/default/css/openrat.css.php
@@ -1403,13 +1403,14 @@ body
-form div.line
+/* Formulare breit */
+div.bar.wide form div.line
{
clear:left;
margin-top:10px;
}
-form div.label
+div.bar.wide form div.label
{
display:inline-block;
width:30%;
@@ -1417,7 +1418,7 @@ form div.label
text-align: right;
}
-form div.input
+div.bar.wide form div.input
{
display:inline-block;
width:60%;
@@ -1425,6 +1426,31 @@ form div.input
text-align: left;
}
+/* Formulare schmal */
+div.bar.small form div.line
+{
+ clear:left;
+ padding:10px;
+}
+
+div.bar.small form div.label
+{
+ display:block;
+ width:100%;
+ vertical-align:top;
+ text-align: left;
+}
+
+div.bar.small form div.input
+{
+ display:block;
+ width:100%;
+ vertical-align:top;
+ text-align: left;
+}
+
+
+
form div.label > label,
form div.input > div.intputholder
{
diff --git a/themes/default/include/html/label.inc.php b/themes/default/include/html/label.inc.php
@@ -1,2 +1,2 @@
-<label<?php if (isset($attr_for)) { ?> for="id_<?php echo $attr_for ?><?php if (!empty($attr_value)) echo '_'.$attr_value ?>" class="label"<?php } ?>>
-<?php if (isset($attr_key)) { echo lang($attr_key); if(hasLang($attr_key.'_desc')) { ?><div class="description"><?php echo lang($attr_key.'_desc')?></div> <?php } ?><?php if (isset($attr_text)) { echo $attr_text; } ?><?php } ?>
-\ No newline at end of file
+<label<?php if (isset($attr_for)) { ?> for="id_<?php echo $attr_for ?><?php if (!empty($attr_value)) echo '_'.$attr_value ?>" <?php if(hasLang(@$attr_key.'_desc')) { ?> title="<?php echo lang(@$attr_key.'_desc')?>"<?php } ?> class="label"<?php } ?>>
+<?php if (isset($attr_key)) { echo lang($attr_key); ?><?php if (isset($attr_text)) { echo $attr_text; } ?><?php } ?>
+\ No newline at end of file
diff --git a/themes/default/layout/perspective/workbench.php b/themes/default/layout/perspective/workbench.php
@@ -1,23 +1,23 @@
-<div class="bar" id="navigationbar">
+<div class="bar small" id="navigationbar">
<?php
view_header('tree');
?>
</div>
-<div class="bar" id="contentbar">
+<div class="bar wide" id="contentbar">
<?php
view_header('content');
?>
</div>
-<div class="bar" id="sidebar">
+<div class="bar small" id="sidebar">
<?php
view_header('side');
?>
</div>
-<div class="bar" id="bottombar">
+<div class="bar wide" id="bottombar">
<?php
view_header('bottom');
?>