Пример #1
0
?>
        <div class="row">
            <div class="col-xs-8">
                <?php 
echo $form->field($SignInForm, 'remember', ['class' => 'cookyii\\widgets\\angular\\material\\ActiveField'])->label(false)->checkbox();
?>
            </div>
            <div class="col-xs-4">
                <?php 
$icon = FA::icon('cog', ['ng-show' => 'in_progress', 'class' => 'wo-animate'])->spin();
echo Html::submitButton($icon . ' ' . Yii::t('account', 'Sign In'), ['class' => 'btn btn-primary btn-block btn-flat', 'ng-disabled' => 'in_progress']);
?>
            </div>
        </div>
        <?php 
\cookyii\widgets\angular\ActiveForm::end();
$authAuthChoice = \yii\authclient\widgets\AuthChoice::begin(['baseAuthUrl' => ['/account/sign/auth'], 'popupMode' => false, 'autoRender' => false]);
$AuthAuthChoiceClients = $authAuthChoice->getClients();
if (!empty($AuthAuthChoiceClients)) {
    ?>
            <div class="social-auth-links text-center">
                <p>- OR -</p>
                <?php 
    foreach ($authAuthChoice->getClients() as $Client) {
        $name = $Client->getName();
        $icon = $name;
        if ($icon === 'live') {
            $icon = 'windows';
        }
        if ($icon === 'vkontakte') {
            $icon = 'vk';
Пример #2
0
?>
                        </uib-tab>
                        <uib-tab heading="Meta">
                            <?php 
echo $this->render('_general_meta', ['ActiveForm' => $ActiveForm, 'PageEditForm' => $PageEditForm]);
?>
                        </uib-tab>
                    </uib-tabset>
                    <?php 
?>
                </div>
            </div>
        </div>

        <div class="box-footer">
            <?php 
echo Html::submitButton(FA::icon('check') . ' ' . Yii::t('cookyii', 'Save'), ['class' => 'btn btn-success', 'ng-disabled' => 'in_progress']);
echo Html::button(Yii::t('cookyii', 'Cancel'), ['class' => 'btn btn-link', 'ng-click' => 'reload()']);
?>
        </div>

        <div class="overlay" ng-if="inProgress">
            <?php 
echo FA::icon('cog')->spin();
?>
        </div>
    </div>

<?php 
ActiveForm::end();