Exemplo n.º 1
0
 public function renderInput($attr)
 {
     switch ($attr) {
         case 'password':
             echo X2Html::x2ActivePasswordField($this, $attr, $this->htmlOptions($attr), true);
             break;
         default:
             parent::renderInput($attr);
     }
 }
Exemplo n.º 2
0
 public function renderInput($attr)
 {
     switch ($attr) {
         case 'password':
             echo X2Html::x2ActivePasswordField($this, $attr, $this->htmlOptions($attr), true);
             break;
         case 'server':
             echo CHtml::activeDropDownList($this, 'server', $this->sesEndpoints, $this->htmlOptions($attr));
             break;
         default:
             parent::renderInput($attr);
     }
 }
Exemplo n.º 3
0
 public function renderInput($attr)
 {
     switch ($attr) {
         case 'email':
             echo '<p class="fieldhelp-thin-small">' . Yii::t('app', '(example@gmail.com)') . '</p>';
             echo CHtml::activeTextField($this, $attr, $this->htmlOptions($attr));
             break;
         case 'password':
             echo X2Html::x2ActivePasswordField($this, $attr, $this->htmlOptions($attr), true);
             break;
         default:
             parent::renderInput($attr);
     }
 }
Exemplo n.º 4
0
 public function renderInput($attr)
 {
     switch ($attr) {
         case 'senderName':
             echo CHtml::activeTextField($this, $attr, $this->htmlOptions($attr));
             break;
         case 'email':
             echo CHtml::activeTextField($this, $attr, $this->htmlOptions($attr));
             break;
         case 'server':
             echo CHtml::activeTextField($this, $attr, $this->htmlOptions($attr));
             break;
         case 'imapServer':
             echo CHtml::activeTextField($this, $attr, $this->htmlOptions($attr));
             break;
         case 'port':
             echo CHtml::activeNumberField($this, $attr, $this->htmlOptions($attr));
             break;
         case 'imapPort':
             echo CHtml::activeNumberField($this, $attr, $this->htmlOptions($attr));
             break;
         case 'security':
             echo CHtml::activeDropDownList($this, $attr, array('' => 'None', 'tls' => 'TLS', 'ssl' => 'SSL'), $this->htmlOptions($attr));
             break;
         case 'imapSecurity':
             echo CHtml::activeDropDownList($this, $attr, array('' => 'None', 'tls' => 'TLS', 'ssl' => 'SSL'), $this->htmlOptions($attr));
             break;
         case 'imapNoValidate':
             echo CHtml::activeCheckBox($this, $attr, $this->htmlOptions($attr));
             break;
         case 'user':
             echo CHtml::activeTextField($this, $attr, $this->htmlOptions($attr));
             break;
         case 'password':
             echo X2Html::x2ActivePasswordField($this, $attr, $this->htmlOptions($attr), true);
             break;
     }
 }