public function buildParent() { if ($this->getModel()->getId() == 1) { return 'root'; } $items = Service::renderList(); return Util\Form::buildDropdown('parentId' . $this->unique, $items, $this->getModel()->getParentId(), false, [$this->getModel()->getId()]); }
public function buildParent() { if ($this->getModel()->getId() == 1) { return '<span class="input">' . Util\Lang::lang('home') . '</span>'; } $items = Service::renderList(); $disabled = []; $disabled[] = $this->getModel()->getId(); return Util\Form::buildDropdown('parentId' . $this->unique, $items, $this->getModel()->getParentId(), true, $disabled); }
public function buildStatus() { return Util\Form::buildDropdown('status' . $this->unique, $this->getModel()->getStatusList(), $this->getModel()->getStatus()); }
public function buildPaging() { return Util\Form::buildDropdown('paging' . $this->unique, $this->getModel()->getPagingList(), $this->getModel()->getPaging()); }
public function buildVersion() { return Util\Form::buildDropdown('version' . $this->unique, $this->getModel()->getVersionList(), $this->getModel()->getVersion()); }
public function buildType() { return Util\Form::buildDropdown('type' . $this->unique, $this->getModel()->getTypeList(), $this->getModel()->getType()); }