Changeset 15793 for trunk/templates
- Timestamp:
- 12/22/11 00:15:32 (5 months ago)
- Location:
- trunk/templates/base
- Files:
-
- 2 edited
-
css/forms.css (modified) (4 diffs)
-
scripts/BxBaseFormView.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/templates/base/css/forms.css
r15788 r15793 98 98 /* form inputs */ 99 99 100 .bx-form-input-wrapper-range,101 100 .bx-form-input-slider, 102 101 .bx-form-input-doublerange, … … 105 104 .bx-form-input-radio_set, 106 105 .bx-form-input-checkbox_set, 107 .bx-form-input-email,108 106 .bx-form-input-number, 109 107 .bx-form-input-datepicker, … … 149 147 .bx-form-input-slider:focus, 150 148 .bx-form-input-doublerange:focus, 151 .bx-form-input-email:focus,152 149 .bx-form-input-number:focus, 153 150 .bx-form-input-datepicker:focus, … … 196 193 197 194 .bx-form-input-number { 198 width: 60px;195 width:80px; 199 196 } 200 197 -
trunk/templates/base/scripts/BxBaseFormView.php
r15718 r15793 181 181 $aInput['type'] = false; 182 182 183 if (!empty($aInput['name'])) { 184 $sCustomMethod = 'genCustomRow' . ucfirst($aInput['name']); 185 if (method_exists($this, $sCustomMethod)) 186 return $this->$sCustomMethod($aInput); 187 } 188 183 189 switch ($aInput['type']) { 184 190 … … 387 393 function genInput(&$aInput) { 388 394 395 if (!empty($aInput['name'])) { 396 $sCustomMethod = 'genCustomInput' . ucfirst($aInput['name']); 397 if (method_exists($this, $sCustomMethod)) 398 return $this->$sCustomMethod($aInput); 399 } 400 389 401 switch ($aInput['type']) { 390 402 … … 394 406 case 'datetime': 395 407 case 'number': 396 case 'email':397 case 'url':398 408 case 'checkbox': 399 409 case 'radio': … … 402 412 case 'password': 403 413 case 'slider': 404 case 'range':405 414 case 'doublerange': 406 415 case 'hidden': … … 526 535 // add default className to attributes 527 536 $aAttrs['type'] = $aInput['type']; 537 if ('datetime' == $aAttrs['type']) 538 $aAttrs['type'] = 'text'; 539 528 540 if (isset($aInput['name'])) $aAttrs['name'] = $aInput['name']; 529 541 if (isset($aInput['value'])) $aAttrs['value'] = $aInput['value']; 542 543 530 544 531 545 // for inputs with labels generate id
Note: See TracChangeset
for help on using the changeset viewer.