/** * */ protected function init() { parent::init(); $this->setTitle('Select Decorator'); $this->addElement(['plugin' => 'hidden', 'name' => 'step', 'value' => 1]); $this->addElement(['plugin' => 'hidden', 'name' => 'blockId']); $this->addElement(['name' => 'decorator', 'label' => 'Decorator', 'plugin' => 'radio', 'value' => 'panel', 'required' => true, 'options' => [['value' => 'none', 'label' => 'None'], ['value' => 'panel', 'label' => 'Panel'], ['value' => 'default', 'label' => 'Default'], ['value' => 'widget', 'label' => 'Widget'], ['value' => 'alert', 'label' => 'Alert']]]); }
/** * */ protected function init() { parent::init(); $this->addElement(['name' => 'scheme', 'label' => 'Panel contextual', 'plugin' => 'radio', 'value' => 'panel-default', 'inline' => true, 'required' => true, 'options' => [['value' => 'panel-default', 'label' => 'Default'], ['value' => 'panel-primary', 'label' => 'Primary'], ['value' => 'panel-success', 'label' => 'Success'], ['value' => 'panel-info', 'label' => 'Info'], ['value' => 'panel-warning', 'label' => 'Warning'], ['value' => 'panel-danger', 'label' => 'Danger']]]); $this->addElement(['plugin' => 'yesno', 'label' => 'Has Border', 'name' => 'has_border', 'value' => '1']); }
/** * */ protected function init() { parent::init(); $this->setTitle('Alert Decorator'); $this->addElement(['name' => 'scheme', 'label' => 'Color Scheme', 'plugin' => 'radio', 'value' => 'panel-default', 'inline' => true, 'required' => true, 'options' => [['value' => 'alert-success', 'label' => 'Success'], ['value' => 'alert-info', 'label' => 'Info'], ['value' => 'alert-warning', 'label' => 'Warning'], ['value' => 'alert-danger', 'label' => 'Danger']]]); }