Example #1
0
 public function item($value, $text)
 {
     $input = $this->input($value);
     $label = new Brick('label');
     $label->addClass('input');
     $label->attr('data-focus', 'true');
     $text = new Brick('span', $this->i18n($text));
     $label->prepend($text);
     $label->prepend($input);
     if ($this->readonly) {
         $label->addClass('input-is-readonly');
     }
     return $label;
 }
Example #2
0
 public function item($value, $text)
 {
     $input = $this->input($value);
     $label = new Brick('label', $this->i18n($text));
     $label->addClass('input');
     $label->attr('data-focus', 'true');
     $label->prepend($input);
     return $label;
 }