Example #1
1
<?php

use kartik\helpers\Html;
use frontend\widgets\Alert;
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
if (\Yii::$app->session->hasFlash('success')) {
    $preBody = Alert::widget();
} else {
    $preBody = NULL;
}
$btnAuth = Html::button('<i class="fa fa-plus"></i>&nbsp; Autorisierung hinzufügen', ['class' => 'btn btn-warning btn-xs pull-right', 'id' => 'btn-newauth']);
$btnLic = Html::button('<i class="fa fa-plus"></i>&nbsp; Lizenz hinzufügen', ['class' => 'btn btn-warning btn-xs pull-right', 'id' => 'btn-newlic']);
echo Html::panel(['heading' => "&nbsp;" . $btnLic . $btnAuth, 'preBody' => $preBody, 'body' => $this->render('_usersform', ['model' => $model])], 'default', ['id' => 'detail-panel']);
Example #2
0
?>
    <div class="wrapper">
        
      <?php 
echo $this->render('header');
echo $this->render('left-panel');
?>
    <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
         <section class="content">
        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
        
         <?php 
echo Alert::widget();
?>
        <?php 
echo $content;
?>
         </section>
        </div>
       <!--Footer Wrapper Starts-->
       <?php 
echo $this->render('footer');
?>

    </div>


    <?php 
Example #3
0
<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */
$this->title = '登录';
$this->params['breadcrumbs'][] = $this->title;
echo \frontend\widgets\Alert::widget();
?>
<div class="row">
    <div class="col-lg-9">
        <section>
            <?php 
echo yii\widgets\Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
            <article class="site-signup">

                <div class="row">
                    <div class="col-lg-9">
                        <?php 
$form = ActiveForm::begin(['id' => 'login-form', 'layout' => 'horizontal', 'fieldConfig' => ['template' => "{label}\n{beginWrapper}\n{input}\n{hint}\n{error}\n{endWrapper}", 'horizontalCssClasses' => ['label' => 'col-sm-4', 'offset' => 'col-sm-offset-4', 'wrapper' => 'col-sm-8', 'error' => '', 'hint' => '']]]);
?>
                        <?php 
echo $form->field($model, 'username')->textInput(['maxlength' => 255]);
?>
                        <?php 
echo $form->field($model, 'password')->passwordInput(['maxlength' => 255]);
?>
                        <?php 
Example #4
0
				}
			}
			
			
            echo Nav::widget([
                'options' => ['class' => 'navbar-nav navbar-right'],
                'items' => $menuItems,
            ]);
            NavBar::end();
        ?>

        <div class="container">
        <?= Breadcrumbs::widget([
            'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
        ]) ?>
        <?= Alert::widget() ?>
        <?= $content ?>
        </div>
    </div>

    <footer class="footer">
        <div class="container">
        <p class="pull-left">&copy; My Company <?= date('Y') ?></p>
        <p class="pull-right"><?= Yii::powered() ?></p>
        </div>
    </footer>

    <?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>