Ejemplo n.º 1
0
	<?php 
//     echo $this->render('_search', ['model' =>$searchModel]);
?>

    <div class="clearfix">

        <p class="pull-left">
			<?php 
echo RgnSubdistrictAccess::button('create');
?>
		</p>

        <div class="pull-right">
			<?php 
echo RgnSubdistrictAccess::button('deleted');
?>
		</div>

    </div>


	<?php 
\yii\widgets\Pjax::begin(['id' => 'pjax-main', 'enableReplaceState' => false, 'linkSelector' => '#pjax-main ul.pagination a, th a', 'clientOptions' => ['pjax:success' => 'function(){alert("yo")}']]);
?>

	<div class="panel panel-default">
		<div class="panel-heading">
			<h2>
				<i><?php 
echo $this->title;
Ejemplo n.º 2
0
?>



			<?php 
$this->beginBlock('RgnSubdistricts');
?>
			<div style='position: relative'>
				<div style='position:absolute; right: 0px; top: 0px;'>

					<?php 
echo RgnSubdistrictAccess::button('index', ['label' => 'All Subdistricts', 'buttonOptions' => ['class' => 'btn btn-success btn-xs']]);
?>

					<?php 
echo RgnSubdistrictAccess::button('create', ['label' => 'New Subdistrict', 'urlOptions' => ['RgnSubdistrictForm' => ['country_id' => $model->country_id, 'province_id' => $model->province_id, 'city_id' => $model->city_id, 'district_id' => $model->id]], 'buttonOptions' => ['class' => 'btn btn-success btn-xs']]);
?>

				</div>
			</div>

			<?php 
Pjax::begin(['id' => 'pjax-RgnSubdistricts', 'enableReplaceState' => false, 'linkSelector' => '#pjax-RgnSubdistricts ul.pagination a, th a', 'clientOptions' => ['pjax:success' => 'function(){alert("yo")}']]);
?>
			<?php 
echo '<div class="table-responsive">' . \yii\grid\GridView::widget(['layout' => '{summary}{pager}<br/>{items}{pager}', 'dataProvider' => new \yii\data\ActiveDataProvider(['query' => $model->getRgnSubdistricts(), 'pagination' => ['pageSize' => 50, 'pageParam' => 'page-rgnsubdistricts']]), 'pager' => ['class' => yii\widgets\LinkPager::className(), 'firstPageLabel' => 'First', 'lastPageLabel' => 'Last'], 'columns' => [['class' => 'yii\\grid\\SerialColumn', "options" => ["width" => "50px"]], 'number', ["attribute" => "name", "format" => "raw", "options" => [], "value" => function ($model) {
    return $model->linkTo;
}]]]) . '</div>';
?>
			<?php 
Pjax::end();
Ejemplo n.º 3
0
	<?php 
//     echo $this->render('_search', ['model' =>$searchModel]);
?>

    <div class="clearfix">

        <p class="pull-left">
			<?php 
echo RgnSubdistrictAccess::button('create');
?>
		</p>

        <div class="pull-right">
			<?php 
echo RgnSubdistrictAccess::button('index');
?>
		</div>

    </div>


	<?php 
\yii\widgets\Pjax::begin(['id' => 'pjax-main', 'enableReplaceState' => false, 'linkSelector' => '#pjax-main ul.pagination a, th a', 'clientOptions' => ['pjax:success' => 'function(){alert("yo")}']]);
?>

	<div class="panel panel-default">
		<div class="panel-heading">
			<h2>
				<i><?php 
echo $this->title;