Пример #1
0
    \$('#layoutCabinetLinkBack').tooltip({
        placement: 'right',
        animation: true,
        delay: 300
    });
JS
);
?>

<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                    aria-expanded="false" aria-controls="navbar">
                <span class="sr-only"><?php 
echo T::t('Hide navigation');
?>
</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-left">
                <li><a class="navbar-brand" href="<?php 
echo Url::to(['landing/index']);
?>
" id="layoutCabinetLinkBack" title="Назад на главный сайт"><span class="glyphicon glyphicon-menu-left"></span></a></li>
                <li><a href="<?php 
echo Url::to(['cabinet/index']);
Пример #2
0
    <?php 
$form = ActiveForm::begin(['id' => 'login-form', 'options' => ['class' => 'form-horizontal'], 'fieldConfig' => ['template' => "{label}\n<div class=\"col-lg-3\">{input}</div>\n<div class=\"col-lg-8\">{error}</div>", 'labelOptions' => ['class' => 'col-lg-1 control-label']]]);
?>

    <?php 
echo $form->field($model, 'username')->label(T::t('Email'));
?>

    <?php 
echo $form->field($model, 'password')->passwordInput()->label(T::t('Password'));
?>

    <?php 
echo $form->field($model, 'rememberMe', ['template' => "<div class=\"col-lg-offset-1 col-lg-3\">{input}</div>\n<div class=\"col-lg-8\">{error}</div>"])->checkbox()->label(T::t('Remember me'));
?>

    <div class="form-group">
        <div class="col-lg-offset-1 col-lg-11">
            <?php 
echo Html::submitButton(T::t('Login'), ['class' => 'btn btn-primary', 'name' => 'login-button']);
?>
        </div>
    </div>

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

</div>
Пример #3
0
<?php

use app\models\Translator as T;
/* @var $this yii\web\View */
$this->title = T::t('Welcome to adminnistrative panel');
?>
<div class="site-index">

    <div class="jumbotron"<?php 
echo !$this->context->user->identity ? ' style="position:relative;left:-12%;"' : '';
?>
>
        <h2><?php 
echo $this->title;
?>
!</h2>
        <?php 
if (!$this->context->user->identity) {
    ?>
            <p><a class="btn btn-lg btn-success" href="/login"><?php 
    echo T::t('Login into system');
    ?>
</a></p>
            <?php 
}
?>
    </div>
</div>