Example #1
0
echo \skeeks\cms\helpers\Image::getSrc(\Yii::$app->user->identity->image->src);
?>
" style="width: 100%;"/>
                                    </div>
                                    <div class="col-lg-9">
                                        <?php 
echo $form->field($model, 'password')->passwordInput(['placeholder' => 'Пароль', 'autocomplete' => 'off'])->label(\Yii::$app->user->identity->displayName);
?>
                                        <?php 
echo Html::submitButton("<i class='glyphicon glyphicon-lock'></i> Разблокировать", ['class' => 'btn btn-primary', 'name' => 'login-button']);
?>

                                    </div>
                                </div>
                        <?php 
ActiveForm::end();
?>
                                <div>
                                    <hr />
                                    <div style="color:#999;margin:1em 0">
                                        <?php 
echo \Yii::t('app', 'You have successfully logged in, but not for too long been active in the control panel site.');
?>
                                        <?php 
echo \Yii::t('app', 'Please confirm that it is you, and enter your password.');
?>
                                        <p>

                                            <?php 
echo Html::a('<i class="glyphicon glyphicon-off"></i> Выход', $logoutUrl, ["data-method" => "post", "data-pjax" => "0", "class" => "btn btn-danger btn-xs pull-right"]);
?>
Example #2
0

                            <? $form = \skeeks\cms\base\widgets\ActiveFormAjaxSubmit::begin([
                                'action' => \yii\helpers\Url::to(['/shop/cart/create-order']),
                                'enableAjaxValidation' => false,
                                'id' => 'shop-create-order'
                            ]); ?>

                                <?php 
echo $form->field(\Yii::$app->shop->shopFuser, 'pay_system_id')->widget(\skeeks\widget\chosen\Chosen::className(), ['items' => \yii\helpers\ArrayHelper::map(\Yii::$app->shop->shopFuser->paySystems, 'id', 'name'), 'placeholder' => 'Способ оплаты', 'allowDeselect' => false]);
?>

                                <button class="btn btn-primary">Отправить</button>


                            <? \skeeks\cms\base\widgets\ActiveFormAjaxSubmit::end(); ?>


                    <div class="clearfix"></div>
                </div>
                <!-- /cart content -->

                <!-- /CART -->

            </div>


            <!-- RIGHT -->
            <div class="col-lg-3 col-sm-4">

                <!-- TOGGLE -->
 public function init()
 {
     parent::init();
     echo \yii\helpers\Html::hiddenInput("sx-model-value", $this->modelWithProperties->id);
     echo \yii\helpers\Html::hiddenInput("sx-model", $this->modelWithProperties->className());
 }