Exemplo n.º 1
0
 public function getFields()
 {
     return ['is_custom' => ['class' => CheckboxField::className(), 'label' => MetaModule::t('Is custom')], 'title' => ['class' => CharField::className(), 'label' => MetaModule::t('Title')], 'description' => ['class' => TextAreaField::className(), 'label' => MetaModule::t('Description')], 'keywords' => ['class' => TextAreaField::className(), 'label' => MetaModule::t('Keywords')]];
 }
Exemplo n.º 2
0
 public function getFields()
 {
     return ['username' => ['class' => CharField::className(), 'label' => UserModule::t('Email or username'), 'html' => ['placeholder' => UserModule::t('Email or username')]], 'password' => ['class' => PasswordField::className(), 'label' => UserModule::t('Password'), 'html' => ['placeholder' => UserModule::t('Password')]], 'rememberMe' => ['class' => CheckboxField::className(), 'label' => UserModule::t('Remember me'), 'value' => true]];
 }
Exemplo n.º 3
0
 public function getFormField($form, $fieldClass = null, array $extra = [])
 {
     return parent::getFormField($form, CheckboxField::className(), $extra);
 }