HomeHelpTrac

Changeset 15691 for trunk/templates


Ignore:
Timestamp:
11/22/11 19:00:21 (6 months ago)
Author:
Alexander Trofimov
Message:

Forms - design

Location:
trunk/templates/base
Files:
4 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/base/css/forms.css

    r15689 r15691  
    11 
    2 .bx-form-advanced-wrapper > .bx-form-section:first-child { 
     2.bx-form-advanced-wrapper .bx-form-section:first-child { 
    33    margin-top:0; 
    44} 
    55 
    6 .bx-form-advanced-wrapper > .bx-form-section-divider:first-child { 
    7     border-top:none; 
    8     padding-top:0; 
     6.bx-form-advanced-wrapper .bx-form-section-divider:first-child { 
     7    border-top:none;  
     8    padding-top:0;  
     9} 
     10 
     11.bx-form-advanced-wrapper .bx-form-section-divider:first-child .bx-form-section-content { 
     12    padding-top:0;  
    913} 
    1014 
    1115.bx-form-section { 
    12     padding-left:0; 
    13     padding-right:0; 
     16    padding-top:0px; 
     17    padding-left:0px; 
     18    padding-right:0px; 
    1419} 
    1520 
     
    2429    position:relative; 
    2530    text-transform:uppercase; 
    26     padding-left:20px; 
     31} 
     32 
     33.bx-form-section-header legend u { 
    2734    cursor:pointer; 
    2835} 
     
    5966 
    6067    position:absolute; 
    61     left:0px; 
     68    left:-4px; 
    6269    top:1px; 
    6370    width:16px; 
    6471    height:16px; 
    6572 
    66     background-image:url(../images/icons/sys-toogler-down.png);  
     73    background-image:url(../images/icons/control-270.png);  
    6774 
    6875    -moz-transform: rotate(0deg); 
  • trunk/templates/base/scripts/BxBaseFormView.php

    r15689 r15691  
    351351        } 
    352352 
    353         // if section is collapsable, add necessary code 
    354  
    355         $sClassAdd = ''; 
    356         if (isset($aInput['collapsable']) and $aInput['collapsable']) { 
    357             $sClassAdd = 'bx-form-collapsable'; 
    358             if (isset($aInput['collapsed']) and $aInput['collapsed']) 
    359                 $sClassAdd .= ' bx-form-collapsed bx-form-section-hidden'; 
    360         }                 
     353        // if section is collapsed by default, add necessary code 
     354 
     355        $sClassAddCollapsable = 'bx-form-collapsable'; 
     356        if (isset($aInput['collapsed']) and $aInput['collapsed']) 
     357            $sClassAddCollapsable .= ' bx-form-collapsed bx-form-section-hidden'; 
    361358 
    362359        // display section with caption 
     
    364361        $sCode = $this->getCloseSection(); 
    365362     
    366         if ($sClassAdd) { 
    367             if (empty($aAttrs)) 
    368                 $aAttrs['class'] = $sClassAdd; 
    369             else 
    370                 $aAttrs['class'] .= ' ' . $sClassAdd; 
    371         } 
    372  
    373         $sCode .= $this->getOpenSection($aAttrs, '<legend class="bx-def-padding-sec-right bx-def-font-grayed bx-def-font-h3">' . bx_process_output($aInput['caption']) . '</legend>'); 
     363        if (empty($aAttrs)) 
     364            $aAttrs['class'] = 'bx-form-collapsable ' . $sClassAddCollapsable; 
     365        else 
     366            $aAttrs['class'] .= ' bx-form-collapsable ' . $sClassAddCollapsable; 
     367 
     368        $sCode .= $this->getOpenSection($aAttrs, '<legend class="bx-def-padding-left bx-def-padding-sec-right bx-def-font-grayed bx-def-font-h3"><a href="javascript:void(0);">' . bx_process_output($aInput['caption']) . '</a></legend>'); 
    374369 
    375370        return $sCode; 
     
    934929                $sClassesAdd = "bx-form-section-divider"; 
    935930 
    936             $sAttrs = bx_convert_array2attrs($aAttrs, "bx-form-section bx-def-margin-top bx-def-padding-top bx-def-border-top " . $sClassesAdd); 
     931            $sAttrs = bx_convert_array2attrs($aAttrs, "bx-form-section bx-def-margin-top bx-def-padding-sec-top bx-def-border-top " . $sClassesAdd); 
    937932 
    938933            $this->_isSectionOpened = true; 
    939934 
    940             return "<!-- form header content begins -->\n <fieldset $sAttrs> $sLegend <div class=\"bx-form-section-content\">\n"; 
     935            return "<!-- form header content begins -->\n <fieldset $sAttrs> $sLegend <div class=\"bx-form-section-content bx-def-padding-top bx-def-padding-bottom" . ($sLegend ? ' bx-def-padding-left bx-def-padding-right' : '') . "\">\n"; 
    941936 
    942937        } else { 
Note: See TracChangeset for help on using the changeset viewer.