Commits

Christoffer Niska committed a0968f7

added support for addons with password fields (fixes #54)

  • Participants
  • Parent commits 2d3de51
  • Branches 1.0.0-wip

Comments (0)

Files changed (3)

widgets/input/BootInputHorizontal.php

 	{
 		echo $this->getLabel();
 		echo '<div class="controls">';
+		echo $this->getPrepend();
 		echo $this->form->passwordField($this->model, $this->attribute, $this->htmlOptions);
+		echo $this->getAppend();
 		echo $this->getError().$this->getHint();
 		echo '</div>';
 	}

widgets/input/BootInputSearch.php

 	 */
 	protected function textField()
 	{
+		$classes = 'search-query';
 		if (isset($this->htmlOptions['class']))
-			$this->htmlOptions['class'] .= ' search-query';
+			$this->htmlOptions['class'] .= ' '.$classes;
 		else
-			$this->htmlOptions['class'] = 'search-query';
+			$this->htmlOptions['class'] = $classes;
 
 		$this->htmlOptions['placeholder'] = $this->model->getAttributeLabel($this->attribute);
 		echo $this->form->textField($this->model, $this->attribute, $this->htmlOptions);

widgets/input/BootInputVertical.php

 	protected function passwordField()
 	{
 		echo $this->getLabel();
+		echo $this->getPrepend();
 		echo $this->form->passwordField($this->model, $this->attribute, $this->htmlOptions);
+		echo $this->getAppend();
 		echo $this->getError().$this->getHint();
 	}