Example #1
0
 /**
  * Include assets and enable plugin.
  */
 protected function registerScript()
 {
     if ($this->mode === static::MODE_24H) {
         $this->clientOptions['showMeridian'] = false;
     }
     if ($this->hasModel() || $this->value) {
         $this->clientOptions['defaultTime'] = false;
     }
     TimePickerAsset::register($this->getView());
     $this->registerPlugin('timepicker');
 }
Example #2
0
<?php

/**
 * Created by JetBrains PhpStorm.
 * User: achernys
 * Date: 3/12/15
 * Time: 11:36 AM
 * To change this template use File | Settings | File Templates.
 */
use yii\helpers\Html;
use kartik\widgets\ActiveForm;
use app\assets\TimePickerAsset;
use kartik\widgets\Growl;
use app\models\tournaments\Tournaments;
use app\components\grid\extendedGridView;
TimePickerAsset::register($this);
/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('app', "Игры турнира {$curr_tournament->tournament_name}");
$this->params['breadcrumbs'][] = ['label' => 'Справочники', 'url' => ['/admin']];
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Tournaments'), 'url' => ['tournaments/index']];
$this->params['breadcrumbs'][] = ['label' => $curr_tournament->tournament_name, 'url' => ['/admin/tournaments/update', 'id' => $curr_tournament->id_tournament]];
$this->params['breadcrumbs'][] = 'Игры турнира';
?>
<div class="row">
    <div class="col-xs-12 col-xs-offset-0 col-sm-offset-1 col-sm-10 games-index">

        <?php 
if (Yii::$app->session->hasFlash('status')) {
    echo Growl::widget(['type' => Growl::TYPE_SUCCESS, 'icon' => 'glyphicon glyphicon-ok-sign', 'body' => Yii::$app->session->getFlash('status'), 'showSeparator' => true, 'pluginOptions' => ['placement' => ['align' => 'left']]]);
}