Skip to content

Commit

Permalink
fixing vars
Browse files Browse the repository at this point in the history
  • Loading branch information
skerbis committed Apr 9, 2024
1 parent f83ec8f commit d1aa9ad
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions fragments/default_theme/mform_default.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
<?php
$labelColClass = $formItemColClass = '';

switch ($this->type) {
case 'default':
$labelColClass = 'col-sm-2 control-label';
$formItemColClass = 'col-sm-10';
$this->setVar('labelColClass', 'col-sm-2 control-label');
$this->setVar('formItemColClass', 'col-sm-10');

break;
case 'default_full':
case 'default_custom_full':
$labelColClass = 'col-sm-12';
$formItemColClass = 'col-sm-12';
$this->setVar('labelColClass', 'col-sm-12');
$this->setVar('formItemColClass', 'col-sm-12');
break;
}

$labelWrapper = '<div class="' . $labelColClass . '">';
$labelWrapper = '<div class="' . $this->labelColClass . '">';
$labelWrapperEnd = '</div>';
$inputWrapper = '<div class="' . $formItemColClass . '">';
$inputWrapper = '<div class="' . $this->formItemColClass . '">';
$inputWrapperEnd = '</div>';

if (true === $this->inline) {
Expand Down

0 comments on commit d1aa9ad

Please sign in to comment.