public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['dimensions'] = array('default' => array('text' => trlKwfStatic('default'), 'width' => 16, 'height' => 16, 'cover' => false));
     $ret['componentName'] = trlcKwfStatic('Flag of a Country', 'Flag');
     return $ret;
 }
 public function __construct($field_name = null, $field_label = null)
 {
     parent::__construct($field_name, $field_label);
     $this->setXtype('numberfield');
     $this->setDecimalSeparator(trlcKwfStatic('decimal separator', '.'));
     $this->setDecimalPrecision(2);
     $this->setInputType('number');
     $this->_floatValidator = new Zend_Validate_Float();
 }
Exemple #3
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['componentName'] = trlKwfStatic('Background Window Width');
     $ret['ownModel'] = 'Kwc_Basic_BackgroundWindowWidth_Model';
     $ret['generators']['child']['component']['image'] = 'Kwc_Basic_BackgroundWindowWidth_Image_Component';
     $ret['generators']['child']['component']['paragraphs'] = 'Kwc_Paragraphs_Component';
     $ret['editComponents'] = array('paragraphs');
     $ret['extConfig'] = 'Kwc_Basic_BackgroundWindowWidth_ExtConfig';
     $ret['backgroundColors'] = array('none' => trlcKwfStatic('color', 'None'), 'white' => trlKwfStatic('White'), 'grey' => trlKwfStatic('Grey'), 'black' => trlKwfStatic('Black'));
     return $ret;
 }
 public static function getSettings($param = null)
 {
     $ret = parent::getSettings($param);
     $ret['placeholder']['trlTest'] = trlStatic('Sichtbar');
     $ret['placeholder']['trlcTest'] = trlcStatic('time', 'Am');
     $ret['placeholder']['trlpTest1'] = trlpStatic('Antwort', 'Antworten', 1);
     $ret['placeholder']['trlpTest2'] = trlpStatic('Antwort', 'Antworten', 2);
     $ret['placeholder']['trlcpTest1'] = trlcpStatic('test', 'Antwort', 'Antworten', 1);
     $ret['placeholder']['trlcpTest2'] = trlcpStatic('test', 'Antwort', 'Antworten', 2);
     $ret['placeholder']['trlKwfTest'] = trlKwfStatic('Visible');
     $ret['placeholder']['trlcKwfTest'] = trlcKwfStatic('time', 'On');
     $ret['placeholder']['trlpKwfTest1'] = trlpKwfStatic('reply', 'replies', 1);
     $ret['placeholder']['trlpKwfTest2'] = trlpKwfStatic('reply', 'replies', 2);
     $ret['placeholder']['trlcpKwfTest1'] = trlcpKwfStatic('test', 'reply', 'replies', 1);
     $ret['placeholder']['trlcpKwfTest2'] = trlcpKwfStatic('test', 'reply', 'replies', 2);
     return $ret;
 }
 protected function _initFields()
 {
     parent::_initFields();
     $this->setCartEmptyMessage(trlKwfStatic("Can't submit order because the cart is empty."));
     $this->add(new Kwf_Form_Field_Panel('intro_text'))->setHtml('<h1>' . trlKwfStatic('Please enter your address') . '</h1>')->setHideFieldInBackend(true);
     $this->add(new Kwf_Form_Field_Radio('sex', trlcKwfStatic('sex', 'Title')))->setValues(array('male' => trlKwfStatic('Mr.'), 'female' => trlKwfStatic('Ms.')))->setAllowBlank(false);
     $this->add(new Kwf_Form_Field_TextField('title', trlKwfStatic('Title')));
     $this->add(new Kwf_Form_Field_TextField('firstname', trlKwfStatic('First name')))->setAllowBlank(false);
     $this->add(new Kwf_Form_Field_TextField('lastname', trlKwfStatic('Last name')))->setAllowBlank(false);
     $this->add(new Kwf_Form_Field_TextField('street', trlKwfStatic('Street')))->setAllowBlank(false);
     $this->add(new Kwf_Form_Field_TextField('zip', trlKwfStatic('ZIP')))->setAllowBlank(false);
     $this->add(new Kwf_Form_Field_TextField('city', trlKwfStatic('City')))->setAllowBlank(false);
     $this->add(new Kwf_Form_Field_SelectCountry('country', trlKwfStatic('Country')))->setDefaultValue('AT')->setAllowBlank(false);
     $this->add(new Kwf_Form_Field_TextField('email', trlKwfStatic('E-Mail')))->setVtype('email')->setAllowBlank(false);
     $this->add(new Kwf_Form_Field_TextField('phone', trlKwfStatic('Phone')));
     $this->add(new Kwf_Form_Field_Panel('payment_text'))->setHtml('<p class="formText">' . trlKwfStatic('What type of payment do you wish?') . '</p>')->setHideFieldWhenOnePayment(true)->setHideFieldInBackend(true);
     $this->add(new Kwf_Form_Field_Radio('payment', trlKwfStatic('Payment')))->setHideFieldInBackend(true)->setHideFieldWhenOnePayment(true)->setAllowBlank(false);
     $this->add(new Kwf_Form_Field_TextArea('comment', trlKwfStatic('Other comments, questions or suggestions')));
 }
 protected function _initFields()
 {
     parent::_initFields();
     $this->add(new Kwf_Form_Field_NumberField('value', trlcKwfStatic('Amount of Money', 'Amount')))->setAllowNegative(false)->setWidth(50)->setAllowBlank(false)->setComment('EUR');
 }