1 <?php
2 3 4 5 6 7 8
9
10 Yii::import('bootstrap.widgets.input.TbInputVertical');
11
12 13 14 15
16 class TbInputInline extends TbInputVertical
17 {
18 19 20 21
22 protected function dropDownList()
23 {
24 echo $this->getLabel();
25 echo $this->form->dropDownList($this->model, $this->attribute, $this->data, $this->htmlOptions);
26 }
27
28 29 30 31
32 protected function passwordField()
33 {
34 $this->htmlOptions['placeholder'] = $this->model->getAttributeLabel($this->attribute);
35 echo $this->getPrepend();
36 echo $this->form->passwordField($this->model, $this->attribute, $this->htmlOptions);
37 echo $this->getAppend();
38 }
39
40 41 42 43
44 protected function textArea()
45 {
46 $this->htmlOptions['placeholder'] = $this->model->getAttributeLabel($this->attribute);
47 echo $this->form->textArea($this->model, $this->attribute, $this->htmlOptions);
48 }
49
50 51 52 53
54 protected function textField()
55 {
56 $this->htmlOptions['placeholder'] = $this->model->getAttributeLabel($this->attribute);
57 echo $this->getPrepend();
58 echo $this->form->textField($this->model, $this->attribute, $this->htmlOptions);
59 echo $this->getAppend();
60 }
61 }
62