|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <?php
-
-
-
- use yii\helpers\Html;
- use yii\bootstrap\ActiveForm;
- use yii\captcha\Captcha;
-
-
-
-
- $this->setTitle('Avis & suggestions');
- $this->setIcon('star');
-
-
- $this->params['breadcrumbs'][] = $this->title;
- ?>
- <div class="site-opinion">
- <div class="row">
- <div class="col-lg-6">
- <?php if($opinionSent): ?>
- <div class="alert alert-success">
- Merci pour votre participation, nous vous ferons un retour dès que possible.
- </div>
- <?php else: ?>
- <div class="alert alert-warning">
- Vous pouvez utiliser ce formulaire pour envoyer toutes vos remarques et suggestions d'amélioration.
- </div>
- <div class="panel panel-default">
- <div class="panel-body">
- <?php $form = ActiveForm::begin(['id' => 'opinion-form']); ?>
- <?php if (Yii::$app->user->isGuest): ?>
- <?= $form->field($model, 'name') ?>
- <?= $form->field($model, 'email') ?>
- <?php endif; ?>
- <?= $form->field($model, 'message')->textArea(['rows' => 6]) ?>
- <?php if (Yii::$app->user->isGuest): ?>
- <?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [
- 'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>',
- ]) ?>
- <?php endif; ?>
- <?= $form->field($model, 'isTest')->hiddenInput() ?>
- <div class="form-group submit">
- <?= Html::submitButton('Envoyer', ['class' => 'btn btn-primary', 'name' => 'opinion-button']) ?>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
- </div>
- <?php endif; ?>
- </div>
- </div>
- </div>
|