Exemplo n.º 1
0
 /**
  * Renders the attribute from the model.
  * @return The element's content.
  */
 protected function renderControlNonEditable()
 {
     $htmlOptions = array();
     $htmlOptions['id'] = $this->getEditableInputId();
     $htmlOptions['name'] = $this->getEditableInputName();
     $htmlOptions['disabled'] = 'disabled';
     return ZurmoHtml::activeCheckBox($this->model, $this->attribute, $htmlOptions);
 }
 /**
  * Override to support adding label class = 'hasCheckBox'
  * (non-PHPdoc)
  * @see CActiveForm::checkBox()
  */
 public function checkBox($model, $attribute, $htmlOptions = array())
 {
     return ZurmoHtml::activeCheckBox($model, $attribute, $htmlOptions);
 }