Changeset 15691 for trunk/templates
- Timestamp:
- 11/22/11 19:00:21 (6 months ago)
- Location:
- trunk/templates/base
- Files:
-
- 4 added
- 1 deleted
- 2 edited
-
css/forms.css (modified) (3 diffs)
-
images/icons/control-090.png (added)
-
images/icons/control-180.png (added)
-
images/icons/control-270.png (added)
-
images/icons/control.png (added)
-
images/icons/sys-toogler-down.png (deleted)
-
scripts/BxBaseFormView.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/templates/base/css/forms.css
r15689 r15691 1 1 2 .bx-form-advanced-wrapper >.bx-form-section:first-child {2 .bx-form-advanced-wrapper .bx-form-section:first-child { 3 3 margin-top:0; 4 4 } 5 5 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; 9 13 } 10 14 11 15 .bx-form-section { 12 padding-left:0; 13 padding-right:0; 16 padding-top:0px; 17 padding-left:0px; 18 padding-right:0px; 14 19 } 15 20 … … 24 29 position:relative; 25 30 text-transform:uppercase; 26 padding-left:20px; 31 } 32 33 .bx-form-section-header legend u { 27 34 cursor:pointer; 28 35 } … … 59 66 60 67 position:absolute; 61 left: 0px;68 left:-4px; 62 69 top:1px; 63 70 width:16px; 64 71 height:16px; 65 72 66 background-image:url(../images/icons/ sys-toogler-down.png);73 background-image:url(../images/icons/control-270.png); 67 74 68 75 -moz-transform: rotate(0deg); -
trunk/templates/base/scripts/BxBaseFormView.php
r15689 r15691 351 351 } 352 352 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'; 361 358 362 359 // display section with caption … … 364 361 $sCode = $this->getCloseSection(); 365 362 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>'); 374 369 375 370 return $sCode; … … 934 929 $sClassesAdd = "bx-form-section-divider"; 935 930 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); 937 932 938 933 $this->_isSectionOpened = true; 939 934 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"; 941 936 942 937 } else {
Note: See TracChangeset
for help on using the changeset viewer.