* User: phpNT * Date: 23.02.2016 * Time: 14:48 */ /** @var $id integer * @var $ok integer * @var $icon string */ use yii\helpers\Html; use yii\helpers\Url; ?> <div id="complain_container_<?php echo $id; ?> " style="outline: none;"> <?php echo \common\widgets\AlertIGrowl::widget(); ?> <?php $js = <<<JS \$("#complain_container_{$id}").on("pjax:complete", function() { \$("#icon-complain-id-{$id}").attr("tabindex",-1).focus(); }); JS; $this->registerJS($js); ?> <?php echo Html::tag('span', '', ['class' => 'icon-exclamation-sign ' . $icon, 'id' => 'icon-complain-id-' . $id, 'style' => 'outline: none;', 'data-toggle' => 'tooltip', 'data-placement' => 'top', 'title' => Yii::t('app', 'Remove from complains'), 'onclick' => '$.pjax({ type: "POST", url: "' . Url::to(['/ad/view/delete-from-complains']) . '", container: "#complain_container_' . $id . '", data: {id: ' . $id . ', icon: "' . $icon . '"},
echo Html::submitButton('<span class="glyphicon glyphicon-search"></span>', ['class' => 'btn btn-sm btn-success']); echo '</span></div>'; ?> <?php ActiveForm::end(); ?> <?php //endif; NavBar::end(); ?> <?php //echo Alert::widget() ?> <?php echo AlertIGrowl::widget(); ?> <?php echo $content; ?> </div> <footer class="footer" style="background-color: #337ab7; max-height: 100%; margin-top: 70px !important;"> <div class="container" > <span class="badge badge-primary"> <span class="glyphicon glyphicon-copyright-mark"></span> <?php echo Yii::$app->name . ' ' . date('Y'); ?> </span> </div> </footer>