Exemplo n.º 1
0
    <?php 
}
?>

    <div class="row">
        <div class="col-lg-5">
            <?php 
$form = ActiveForm::begin(['id' => 'request-password-reset-form']);
?>

                <?php 
echo $form->field($model, 'email');
?>

                <?php 
echo $form->field($model, 'captcha')->widget(\himiklab\yii2\recaptcha\ReCaptcha::className(), ['siteKey' => '6Lc6DBkTAAAAAMawyuTjwL1Ut0sMHVlBKvpkImZ3'])->label(false);
?>
            
            
                <div class="form-group">
                    <?php 
echo Html::submitButton(I18n::t('Submit'), ['name' => 'login-button', 'class' => 'submit_bt']);
?>
                </div>

            <?php 
ActiveForm::end();
?>
        </div>
    </div>
</div>
Exemplo n.º 2
0
        <div id="comment-reply" class="comment-reply">
            <h5>Reply to comment, <b><span
                        id="comment-reply-author"></span></b> <?php 
echo Html::a('Cancel', '#', ['id' => 'btn-reply-cancel']);
?>
            </h5>
        </div>
        <?php 
echo $form->field($model, 'comment')->textarea();
?>
        <?php 
if (\Yii::$app->user->isGuest) {
    ?>
            <br>
            <?php 
    echo $form->field($model, 'reCaptcha')->widget(ReCaptcha::className(), ['siteKey' => \Yii::$app->getModule('comment')->reCaptchaSiteKey]);
    ?>
        <?php 
}
?>
        <br>

        <div>
            <?php 
echo Html::submitButton('Add comment', ['class' => 'btn btn-primary', 'name' => 'login-button']);
?>
        </div>
        <?php 
ActiveForm::end();
?>
    </div>
Exemplo n.º 3
0
    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo $form->field($model, 'username');
?>
    <?php 
echo $form->field($model, 'password')->passwordInput();
?>
    <?php 
echo $form->field($model, 'rememberMe')->checkbox();
?>

    <?php 
if ($_SERVER['HTTP_HOST'] == 'admin.setyes.com') {
    echo $form->field($model, 'reCaptcha')->widget(\himiklab\yii2\recaptcha\ReCaptcha::className(), ['siteKey' => '6LcWAxMTAAAAAD2teUNSJdJ8OwfQuqIUyJJDW79j']);
}
?>

    <div class="form-group">
        <?php 
echo Html::submitButton(Yii::t('app', 'Sign in'), ['class' => 'btn btn-primary']);
?>
    </div>
    <?php 
ActiveForm::end();
?>
</div><!-- main-login -->
Exemplo n.º 4
0
        <!--    --><?php 
//echo $form->field($model, 'user_id')->textInput()
?>

        <!--    --><?php 
//echo $form->field($model, 'ip')->textInput()
?>

        <!--    --><?php 
//echo $form->field($model, 'date')->textInput()
?>
        </div>
        <div class="col-xs-12">
            <?php 
echo $form->field($model, 'reCaptcha')->widget(\himiklab\yii2\recaptcha\ReCaptcha::className(), ['siteKey' => '6LedACkTAAAAAIOcJlOY_f3Nwa5Bl-l9-iRwe7WU'])->label(false);
?>
<!--            --><?php 
//echo \himiklab\yii2\recaptcha\ReCaptcha::widget([
//                'name' => 'reCaptcha',
//                'siteKey' => 'ваш siteKey',
//                'widgetOptions' => ['class' => 'col-sm-offset-3']
//            ])
?>
        </div>
    </div>
    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>
Exemplo n.º 5
0
<h5> <?php 
echo $msg;
?>
 </h5>

<h1>Editar departamento con id <?php 
echo Html::encode($_GET["id_departamento"]);
?>
 </h1>

<?php 
$form = ActiveForm::begin(["method" => "post", 'enableClientValidation' => true]);
?>

<?php 
echo $form->field($model, "ID_DEPARTAMENTO")->input("hidden")->label(false);
echo $form->field($model, "NOMBRE_DEPARTAMENTO")->input("text");
?>

<?php 
echo $form->field($model, 'reCaptcha')->widget(ReCaptcha::className());
?>


<?php 
echo Html::submitButton("Editar departamento", ["class" => "btn btn-primary"]);
?>

<?php 
$form->end();
Exemplo n.º 6
0
?>

        <?php 
echo $form->field($model, 'email')->label(false)->textInput(['placeholder' => $model->getAttributeLabel('email')]);
?>

        <?php 
echo $form->field($model, 'subject')->label(false)->textInput(['placeholder' => $model->getAttributeLabel('subject')]);
?>

        <?php 
echo $form->field($model, 'body')->textArea(['rows' => 6, 'placeholder' => $model->getAttributeLabel('body')])->label(false);
?>

        <?php 
echo $form->field($model, 'reCaptcha')->label(false)->widget(\himiklab\yii2\recaptcha\ReCaptcha::className());
?>

        <div class="row">
            <div class="col-xs-8">

            </div>
            <!-- /.col -->
            <div class="col-xs-4">
                <?php 
echo Html::submitButton('Send', ['class' => 'btn btn-primary btn-block btn-flat']);
?>
            </div>
            <!-- /.col -->
        </div>
Exemplo n.º 7
0
            <h1 class="no-margin"><?php 
echo $this->title;
?>
</h1>
            <div><hr /></div>
            <?php 
$form = ActiveForm::begin(['id' => 'request-password-reset-form']);
?>
            <?php 
echo $form->field($model, 'email');
?>
            <?php 
if (Core::isReCaptchaEnabled()) {
    ?>
            <?php 
    echo $form->field($model, 'verifyCode')->widget(ReCaptcha::className())->label(false);
    ?>
            <?php 
}
?>
            <div class="form-group">
                <?php 
echo Html::submitButton(Yii::t('app', 'Reset Password'), ['class' => 'btn btn-primary']);
?>
            </div>
            <?php 
ActiveForm::end();
?>
            <div><hr /></div>
            <p class="text-center">
                <?php 
Exemplo n.º 8
0
?>

                <?php 
echo $form->field($model, 'email');
?>

                <?php 
echo $form->field($model, 'subject');
?>

                <?php 
echo $form->field($model, 'body')->textArea(['rows' => 6]);
?>
            
                <?php 
echo $form->field($model, 'verifyCode')->widget(\himiklab\yii2\recaptcha\ReCaptcha::className());
?>

                <div class="form-group">
                    <?php 
echo Html::submitButton('Submit', ['class' => 'btn btn-primary', 'name' => 'contact-button']);
?>
                </div>

            <?php 
ActiveForm::end();
?>
        </div>
    </div>

</div>
Exemplo n.º 9
0
<?php 
} else {
    ?>
<h3><p class="bg-danger padding-15 text-center">Гости не могут оставлять сообщения.<span class="bottom-dashed pointer" id="login-show">Войти?</span></p></h3>
<?php 
}
?>
<div class="collapse" id="collapseExample">
<div class="col-lg-12 bs-callout bs-callout-info">
<?php 
$form = ActiveForm::begin(['id' => 'answer-form', 'options' => ['class' => 'form-horizontal'], 'enableAjaxValidation' => false]);
?>
    <div class="row"><span class="label label-success hidden" id="answer">Ответ на сообщение #<b></b></span></div>
    <?php 
echo $form->field($model, 'message')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'basic']);
echo $form->field($model, 'reCaptcha')->widget(\himiklab\yii2\recaptcha\ReCaptcha::className(), ['siteKey' => '6LcLNQUTAAAAAHAtmbx7mgAGmXnMF8-Z04Yz-0L5']);
?>
    <?php 
echo Html::activeHiddenInput($model, 'author', ['value' => Yii::$app->user->id]);
?>
    <?php 
echo Html::activeHiddenInput($model, 'answer', ['value' => 0]);
?>
    <?php 
echo Html::activeHiddenInput($model, 'post_id', ['value' => $post->id]);
?>
    <?php 
echo Html::activeHiddenInput($model, 'dateadd', ['value' => time()]);
?>
    <?php 
echo Html::activeHiddenInput($model, 'status', ['value' => 1]);
Exemplo n.º 10
0
?>

                <?php 
echo $form->field($model, 'email');
?>

                <?php 
echo $form->field($model, 'subject');
?>

                <?php 
echo $form->field($model, 'body')->textArea(['rows' => 6]);
?>

                <?php 
echo $form->field($model, 'verifyCode')->widget(ReCaptcha::className(), []);
?>

                <div class="form-group">
                    <?php 
echo Html::submitButton('Submit', ['class' => 'btn btn-primary', 'name' => 'contact-button']);
?>
                </div>

            <?php 
ActiveForm::end();
?>
        </div>
    </div>

</div>
Exemplo n.º 11
0
                    <?php 
$array = array();
for ($i = 1991; $i < 2016; $i++) {
    array_push($array, array($i => $i));
}
?>

                    <?php 
echo $form->field($modelKehadiran, 'angkatan')->dropDownList($array, ['prompt' => 'Angkatan Pensiun Dewan*'])->label(false);
?>

                    <h3 style="text-align: left; font-size: small">* = required</h3>

                    <?php 
echo $form->field($modelKehadiran, 'reCaptcha')->widget(ReCaptcha::className())->label(false);
?>

                    <div class="form-group">
                        <?php 
echo Html::submitButton('Daftar', ['class' => 'btn btn-success']);
?>
                    </div>

                    <?php 
ActiveForm::end();
?>

                </div>
            </div>
            <div class="col-md-6 contact-top-right">