public function addControlColumn() { return $this->createColumn('ctrl', Type::create('String'), self::EMPTY_LABEL, array(), function (Entity $entity) { return \Psc\UI\fHTML::checkbox('egp-ctrl[]', FALSE, $entity->getIdentifier())->addClass('\\Psc\\identifier-checkbox'); }); }
public function getInnerHTML() { $select = fHTML::select($this->getFormName(), $this->getValuesWithLabel(), $this->getFormValue(), array('class' => array('text', 'ui-widget-content', 'ui-corner-all'))); \Psc\UI\Form::attachLabel($select, $this->getFormLabel()); return $select; }
public function getInnerHTML() { $ta = fHTML::textarea($this->getFormName(), $this->getFormValue(), array('class' => array('textarea', 'ui-widget-content', 'ui-corner-all')))->setAttribute('cols', 102)->setAttribute('rows', 6)->setStyle('width', '90%'); f::attachLabel($ta, $this->getFormLabel()); return $ta; }
public static function hidden($name, $value = '', $id = NULL) { list($label, $name, $id) = self::expand(NULL, $name, $id); return fHTML::hidden($name, $value)->setAttribute('id', $id); }