openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit c4fca7315078bbb5121d3482e50279f59920cb7e
parent c99c62a0a98c0b72f5416b4b15f8d19140942c8c
Author: dankert <dankert@laptop-jan>
Date:   Fri, 15 Mar 2013 18:54:36 +0100

Pfeile vor Fieldsets mit CSS darstellen.

Diffstat:
themes/default/css/openrat.css.php | 51+++++++++++++++++++++++++++++++++++++++++++--------
themes/default/include/html/group.inc.php | 2+-
themes/default/js/openrat.js | 4++--
themes/default/templates/login/login.tpl.src.xml | 2+-
4 files changed, 47 insertions(+), 12 deletions(-)

diff --git a/themes/default/css/openrat.css.php b/themes/default/css/openrat.css.php @@ -654,10 +654,14 @@ fieldset > legend } -fieldset.open > div.invisible +fieldset > div { display:none; } +fieldset.open > div +{ + display:block; +} @@ -1880,14 +1884,14 @@ div.clickable.filtered.inactive > a div#header > div > div.arrow-down { display: inline; - width:16px; - height:0px; + width:0; + height:0; margin-top:8px; padding:0px; border-right : 8px solid <?php echo $_GET['title_background_color']; ?>; border-left : 8px solid <?php echo $_GET['title_background_color']; ?>; border-top : 8px solid <?php echo $_GET['inactive_background_color' ]; ?>; - border-bottom: 8px solid <?php echo $_GET['title_background_color']; ?>; + xborder-bottom: 8px solid <?php echo $_GET['title_background_color']; ?>; } @@ -1895,15 +1899,46 @@ div#header > div > div.arrow-down /* Pfeile */ div#workbench div.panel div.arrow-down { - display: inline; - width:16px; - height:16px; + width:0; + height:0; margin:0px; padding:0px; border-right: 8px solid transparent; border-top: 8px solid <?php echo $_GET['title_background_color']; ?>; border-left: 8px solid transparent; - border-bottom: 8px solid transparent; + xborder-bottom: 8px solid transparent; } +/* Pfeile */ +div#workbench div.panel div.arrow-right +{ + width:0; + height:0; + margin:0; + padding:0; + xborder-right: 8px solid transparent; + border-top: 4px solid transparent; + border-left: 4px solid <?php echo $_GET['title_background_color']; ?>; + border-bottom: 4px solid transparent; +} + +/* Geschlossene Fieldsets */ +div#workbench div.panel fieldset > legend > div.closed +{ + display:inline; +} +div#workbench div.panel fieldset > legend > div.open +{ + display:none; +} + +/* Offene Fieldsets */ +div#workbench div.panel fieldset.open > legend > div.closed +{ + display:none; +} +div#workbench div.panel fieldset.open > legend > div.open +{ + display:inline; +} diff --git a/themes/default/include/html/group.inc.php b/themes/default/include/html/group.inc.php @@ -1,5 +1,5 @@ <?php -?><fieldset class="<? echo $attr_open?'open':'' ?>"><?php if(isset($attr_title)) { ?><legend><?php if(isset($attr_icon)) { ?>&nbsp;&nbsp;<img src="<?php echo $image_dir.'icon_'.$attr_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } if($attr_open) { ?><img src="<?php echo $image_dir.'icon/menu.gif' ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($attr_title) ?>&nbsp;&nbsp;</legend><?php } ?><div class="<?php echo $attr_open?'invisible':'' ?>"> +?><fieldset class="<? echo $attr_open?'open':'' ?>"><?php if(isset($attr_title)) { ?><legend><?php if(isset($attr_icon)) { ?>&nbsp;&nbsp;<img src="<?php echo $image_dir.'icon_'.$attr_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?><div class="arrow-right closed" /><div class="arrow-down open" />&nbsp;&nbsp;<?php echo encodeHtml($attr_title) ?>&nbsp;&nbsp;</legend><?php } ?><div class="<?php echo $attr_open?'invisible':'' ?>"> diff --git a/themes/default/js/openrat.js b/themes/default/js/openrat.js @@ -579,8 +579,8 @@ function registerViewEvents( viewEl ) $(this).closest('div.panel').find('div.command').css('visibility','visible').fadeIn('slow'); }); - $(viewEl).find('fieldset.open > legend').click( function() { - $(this).parent().find('div').first().toggleClass('invisible'); + $(viewEl).find('fieldset > legend').click( function() { + $(this).parent().toggleClass('open'); }); // Links aktivieren... diff --git a/themes/default/templates/login/login.tpl.src.xml b/themes/default/templates/login/login.tpl.src.xml @@ -88,7 +88,7 @@ <!-- <if true="property:mustChangePassword"> --> - <group title="message:USER_NEW_PASSWORD" open="true"> + <group title="message:USER_NEW_PASSWORD" open="false"> <part class="line"> <part class="label"> <label for="password1">