/** * @inheritdoc */ public function attributeLabels() { return ['name' => Module::t('contact', 'CONTACT_NAME'), 'email' => Module::t('contact', 'CONTACT_EMAIL'), 'subject' => Module::t('contact', 'CONTACT_SUBJECT'), 'body' => Module::t('contact', 'CONTACT_MESSAGE'), 'verifyCode' => Module::t('contact', 'CONTACT_VERIFY_CODE')]; }
$this->title = Module::t('contact', 'TITLE_CONTACT'); $this->params['breadcrumbs'][] = $this->title; ?> <div class="main-contact-index"> <h1><?php echo Html::encode($this->title); ?> </h1> <?php if (Yii::$app->session->hasFlash('contactFormSubmitted')) { ?> <div class="alert alert-success"> <?php echo Module::t('contact', 'CONTACT_THANKS'); ?> </div> <?php } else { ?> <div class="row"> <div class="col-lg-5"> <?php $form = ActiveForm::begin(['id' => 'contact-form']); ?> <?php echo $form->field($model, 'name'); ?>