</div> <div class="progress xs"> <div class="progress-bar progress-bar-green" style="width: 70%;"></div> </div> </div><!-- /.col --> <div class="col-sm-6"> <div class="clearfix"> <span class="pull-left">Task #3</span> <small class="pull-right">60%</small> </div> <div class="progress xs"> <div class="progress-bar progress-bar-green" style="width: 60%;"></div> </div> <div class="clearfix"> <span class="pull-left">Task #4</span> <small class="pull-right">40%</small> </div> <div class="progress xs"> <div class="progress-bar progress-bar-green" style="width: 40%;"></div> </div> </div><!-- /.col --> </div><!-- /.row --> </div> </div><!-- /.box --> </section><!-- right col --> </div><!-- /.row (main row) --> <?php $this->registerJsFile('/admin/dist/js/pages/dashboard.js', ['depends' => [backend\assets\DashboardAsset::className()]]);
<?php use yii\bootstrap\NavBar; use yii\bootstrap\Nav; use yii\helpers\Html; /* @var $this \yii\web\View */ /* @var $content string */ $asset = backend\assets\DashboardAsset::register($this); $this->beginPage(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php echo Html::csrfMetaTags(); ?> <title><?php echo Html::encode($this->title); ?> </title> <?php $this->head(); ?> </head> <body> <?php $this->beginBody(); NavBar::begin(['brandLabel' => '<a href="/">首页</a>', 'brandUrl' => ['default/index'], 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]); echo Nav::widget(['options' => ['class' => 'nav navbar-nav navbar-right'], 'items' => [['label' => 'Home', 'url' => ['default/index']], ['label' => 'Help', 'url' => 'http://www.yiiframework.com/doc-2.0/guide-tool-gii.html'], ['label' => 'Application', 'url' => Yii::$app->homeUrl]]]);
/* @var $searchModel common\models\MtcitiesSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = Yii::t('app', 'Regional > Cities'); $this->params['breadcrumbs'][] = $this->title; ?> <div class="box box-primary"> <?php echo yii\base\View::render('_menu', ['title' => 'Cities']); ?> <div class="box-body mt-mtcities-index"> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'id' => 'grid-mtcities', 'filterModel' => $searchModel, 'layout' => "{items}\n{pager}\n{summary}", 'columns' => [['class' => 'yii\\grid\\CheckboxColumn', 'headerOptions' => ['width' => '20']], ['class' => 'yii\\grid\\SerialColumn', 'headerOptions' => ['width' => '20']], ['attribute' => 'city_country_id', 'value' => 'cityCountry.country_name', 'label' => Yii::t('app', 'Country'), 'headerOptions' => ['width' => '120']], ['attribute' => 'city_province_id', 'value' => 'cityProvince.province_name', 'label' => Yii::t('app', 'Province'), 'headerOptions' => ['width' => '120']], ['attribute' => 'city_name', 'label' => Yii::t('app', 'Name')], ['attribute' => 'city_updated', 'contentOptions' => ['style' => 'text-align:center'], 'label' => 'Last Update', 'format' => ['date', 'php:d M Y'], 'headerOptions' => ['width' => '120']], ['class' => 'yii\\grid\\ActionColumn', 'header' => 'Action', 'template' => '{update} {delete}', 'headerOptions' => ['width' => '60'], 'buttons' => ['update' => function ($url, $model) { return Html::a('<span class="fa fa-pencil"></span>', $url); }, 'link' => function ($url, $model, $key) { return Html::a('Action', $url); }]]], 'tableOptions' => ['class' => 'table table-striped table-bordered'], 'showFooter' => false]); ?> </div> </div> <?php $this->registerJs('var buttonID="deleteAll";', View::POS_HEAD); $this->registerJs('var gridID="grid-mtcities";', View::POS_HEAD); $this->registerJs('var baseURL=\'' . Url::base() . '/configurations/regional/cities/' . '\'', \yii\web\View::POS_END); $this->registerJsFile('scripts/functions.js', ['depends' => [backend\assets\DashboardAsset::className()]], View::POS_END); ?>
<?php use yii\helpers\Html; use yii\helpers\Url; use yii\grid\GridView; use kartik\grid\GridView as gview; /* @var $this yii\web\View */ /* @var $searchModel common\models\MtprovincesSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = Yii::t('app', 'Regional > Provinces'); $this->params['breadcrumbs'][] = $this->title; ?> <div class="box box-primary"> <?php echo yii\base\View::render('_menu', ['title' => 'Provinces']); ?> <div class="box-body mtprovinces-index"> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'id' => 'grid-provinces', 'layout' => "{items}\n{pager}\n{summary}", 'tableOptions' => ['class' => 'table table-striped table-bordered'], 'showFooter' => false, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['attribute' => 'province_country_id', 'label' => 'Country', 'value' => 'provinceCountry.country_name'], 'province_name', ['attribute' => 'province_updated', 'label' => 'Latest Update', 'format' => ['date', 'php:d M Y h:i:s']], ['class' => 'yii\\grid\\ActionColumn']]]); ?> </div> </div> <?php $this->registerJsFile('scripts/provinces.js', ['depends' => [backend\assets\DashboardAsset::className()]], \yii\web\View::POS_END); $this->registerJs('var gridview_id = "grid-provinces";', \yii\web\View::POS_END); $this->registerJs('var columns = "1";', \yii\web\View::POS_END);