/** * MultiFields content fields. * * @return array $fields The fields that should be inserted. */ protected function _getMultiFieldsFieldset() { $fs = new Kwf_Form_Container_FieldSet(trlKwf('Paragraph {0}')); $fs->add(new Kwf_Form_Field_Checkbox('visible', trlKwf('Visible'))); $fs->add(new Kwf_Form_Field_SimpleAbstract('edit'))->setXtype('kwc.listeditbutton')->setLabelSeparator('')->setData(new Kwc_Abstract_List_FormWithEditButton_NoSaveData('id')); return $fs; }
protected function _initFields() { parent::_initFields(); $fs = new Kwf_Form_Container_FieldSet(trlKwf('Form Properties')); $fs->add(new Kwf_Form_Field_TextField('recipient', trlKwf('E-Mail Recipient')))->setVtype('email')->setWidth(400); $fs->add(new Kwf_Form_Field_TextField('recipient_cc', trlKwf('E-Mail CC')))->setVtype('email')->setWidth(400); $fs->add(new Kwf_Form_Field_TextField('subject', trlKwf('E-Mail Subject')))->setWidth(400); $fs->add(new Kwf_Form_Field_TextField('submit_caption', trlKwf('Submit Caption')))->setWidth(400); $this->add($fs); $fs = new Kwf_Form_Container_FieldSet(trlKwf('Send copy to User')); $this->add($fs)->setCheckboxToggle(true)->setCheckboxName('send_confirm_mail'); $fs->add(new Kwf_Form_Field_Select('confirm_field_component_id', trlKwf('E-Mail Field')))->setAllowBlank(false)->setValues(Kwc_Admin::getInstance($this->getClass())->getControllerUrl('EmailFields') . '/json-data'); $fs->add(new Kwf_Form_Field_TextField('confirm_subject', trlKwf('Subject')))->setWidth(300)->setAllowBlank(false); $this->add(Kwc_Abstract_Form::createChildComponentForm($this->getClass(), '-form')); }
protected function _initFields() { parent::_initFields(); $fs = new Kwf_Form_Container_FieldSet(trlKwf('Form Properties')); $fs->add(new Kwf_Form_Field_TextField('subject', trlKwf('E-Mail Subject')))->setWidth(400); $fs->add(new Kwf_Form_Field_TextField('submit_caption', trlKwf('Submit Caption')))->setWidth(400); $this->add($fs); $hiddenField = new Kwf_Form_Field_Hidden('send_confirm_mail'); $hiddenField->setData(new Kwc_Form_Dynamic_Trl_Data()); $cards = new Kwf_Form_Container_Cards(); $cards->setCombobox($hiddenField); $card = $cards->add(new Kwf_Form_Container_Card()); $card->setName('0'); $card = $cards->add(new Kwf_Form_Container_Card()); $card->setName('1'); $fs = $card->add(new Kwf_Form_Container_FieldSet(trlKwf('Send copy to User'))); $fs->add(new Kwf_Form_Field_TextField('confirm_subject', trlKwf('Subject')))->setWidth(300)->setAllowBlank(false); $this->add($cards); }
public function getPagePropertiesForm() { $ret = new Kwc_Abstract_Cards_Trl_Form(null, $this->_class); $fs = new Kwf_Form_Container_FieldSet(trlKwf('Link')); foreach ($ret as $f) { $ret->fields->remove($f); $fs->add($f); } $ret->add($fs); return $ret; }
public function getPagePropertiesForm($config) { $ret = new Kwc_Basic_LinkTag_Form(null, $this->_class); $fs = new Kwf_Form_Container_FieldSet(trlKwf('Link')); foreach ($ret as $f) { $ret->fields->remove($f); $fs->add($f); } $ret->add($fs); return $ret; }
public function getPagePropertiesForm($config) { $c = $config['component']; if ($config['mode'] == 'add' || $c->isPage) { $form = new Kwc_Box_MetaTagsContent_Form(null, $this->_class); $fs = new Kwf_Form_Container_FieldSet(trlKwf('SEO')); $fs->setCollapsible(true); $fs->setCollapsed(true); foreach ($form as $f) { $form->fields->remove($f); $fs->add($f); } $form->add($fs); return $form; } return null; }
public function getPagePropertiesForm($config) { $c = $config['component']; $form = null; if ($config['mode'] == 'add' || $c->isPage) { $form = new Kwc_Box_MetaTagsContent_Trl_Form(null, $this->_class); } else { if (Kwc_Abstract::getFlag($c->componentClass, 'subroot') || $c->componentId == 'root') { $form = new Kwc_Box_MetaTagsContent_Trl_SubrootForm(null, $this->_class); } } if ($form) { $fs = new Kwf_Form_Container_FieldSet(trlKwf('SEO, Open Graph, Sitemap')); $fs->setCollapsible(true); $fs->setCollapsed(true); foreach ($form as $f) { $form->fields->remove($f); $fs->add($f); } $form->add($fs); return $form; } return null; }