| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -15,7 +15,7 @@ echo "<?php\n"; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					?> | 
					 | 
					 | 
					 | 
					?> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					use yii\helpers\Html; | 
					 | 
					 | 
					 | 
					use yii\helpers\Html; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					use <?= $generator->indexWidgetType === 'grid' ? 'yii\grid\GridView' : 'yii\widgets\ListView' ?>;
 | 
					 | 
					 | 
					 | 
					use <?= $generator->indexWidgetType === 'grid' ? "yii\grid\GridView" : "yii\widgets\ListView" ?>;
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					/** | 
					 | 
					 | 
					 | 
					/** | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 * @var yii\base\View $this | 
					 | 
					 | 
					 | 
					 * @var yii\base\View $this | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -28,16 +28,16 @@ $this->params['breadcrumbs'][] = $this->title; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					?> | 
					 | 
					 | 
					 | 
					?> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					<div class="<?= Inflector::camel2id(StringHelper::basename($generator->modelClass)) ?>-index">
 | 
					 | 
					 | 
					 | 
					<div class="<?= Inflector::camel2id(StringHelper::basename($generator->modelClass)) ?>-index">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						<h1><?= "<?php" ?> echo Html::encode($this->title); ?></h1>
 | 
					 | 
					 | 
					 | 
						<h1><?= "<?= " ?>Html::encode($this->title) ?></h1>
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						<?= '<?php' . ($generator->indexWidgetType === 'grid' ? ' //' : '') ?> echo $this->render('_search', ['model' => $searchModel]); ?>
 | 
					 | 
					 | 
					 | 
						<?= "<?php " . ($generator->indexWidgetType === 'grid' ? "// " : "") ?>echo $this->render('_search', ['model' => $searchModel]); ?>
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						<p> | 
					 | 
					 | 
					 | 
						<p> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							<?= '<?php' ?> echo Html::a('Create <?= StringHelper::basename($generator->modelClass) ?>', ['create'], ['class' => 'btn btn-success']); ?>
 | 
					 | 
					 | 
					 | 
							<?= "<?= " ?>Html::a('Create <?= StringHelper::basename($generator->modelClass) ?>', ['create'], ['class' => 'btn btn-success']) ?>
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						</p> | 
					 | 
					 | 
					 | 
						</p> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					<?php if ($generator->indexWidgetType === 'grid'): ?> | 
					 | 
					 | 
					 | 
					<?php if ($generator->indexWidgetType === 'grid'): ?> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						<?= "<?php" ?> echo GridView::widget([
 | 
					 | 
					 | 
					 | 
						<?= "<?php " ?>echo GridView::widget([
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							'dataProvider' => $dataProvider, | 
					 | 
					 | 
					 | 
							'dataProvider' => $dataProvider, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							'filterModel' => $searchModel, | 
					 | 
					 | 
					 | 
							'filterModel' => $searchModel, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							'columns' => [ | 
					 | 
					 | 
					 | 
							'columns' => [ | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -48,9 +48,9 @@ $count = 0; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					foreach ($generator->getTableSchema()->columns as $column) { | 
					 | 
					 | 
					 | 
					foreach ($generator->getTableSchema()->columns as $column) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						$format = $generator->generateColumnFormat($column); | 
					 | 
					 | 
					 | 
						$format = $generator->generateColumnFormat($column); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						if (++$count < 6) { | 
					 | 
					 | 
					 | 
						if (++$count < 6) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							echo "\t\t\t'" . $column->name . ($format === 'text' ? '' : ':' . $format) . "',\n"; | 
					 | 
					 | 
					 | 
							echo "\t\t\t'" . $column->name . ($format === 'text' ? "" : ":" . $format) . "',\n"; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						} else { | 
					 | 
					 | 
					 | 
						} else { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							echo "\t\t\t// '" . $column->name . ($format === 'text' ? '' : ':' . $format) . "',\n"; | 
					 | 
					 | 
					 | 
							echo "\t\t\t// '" . $column->name . ($format === 'text' ? "" : ":" . $format) . "',\n"; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						} | 
					 | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					} | 
					 | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					?> | 
					 | 
					 | 
					 | 
					?> | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -59,7 +59,7 @@ foreach ($generator->getTableSchema()->columns as $column) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							], | 
					 | 
					 | 
					 | 
							], | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						]); ?> | 
					 | 
					 | 
					 | 
						]); ?> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					<?php else: ?> | 
					 | 
					 | 
					 | 
					<?php else: ?> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						<?= "<?php" ?> echo ListView::widget([
 | 
					 | 
					 | 
					 | 
						<?= "<?php " ?>echo ListView::widget([
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							'dataProvider' => $dataProvider, | 
					 | 
					 | 
					 | 
							'dataProvider' => $dataProvider, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							'itemOptions' => ['class' => 'item'], | 
					 | 
					 | 
					 | 
							'itemOptions' => ['class' => 'item'], | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							'itemView' => function ($model, $key, $index, $widget) { | 
					 | 
					 | 
					 | 
							'itemView' => function ($model, $key, $index, $widget) { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |