Ejemplo n.º 1
0
                        <?php 
$form = ActiveForm::begin(['id' => 'check-domain', 'action' => Url::to(['@domainchecker/check-domain']), 'method' => 'get', 'options' => ['data-pjax' => false], 'fieldConfig' => ['template' => "{beginWrapper}\n{input}\n{hint}\n{error}\n{endWrapper}"]]);
?>
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <?php 
echo $form->field($model, 'domain')->textInput(['placeholder' => Yii::t('hipanel/domainchecker', 'Domain name'), 'class' => 'form-control input-lg', 'name' => 'domain']);
?>
                                </div>
                            </div>
                            <!-- /.col-md-8 -->
                            <div class="col-md-4">
                                <div class="form-group">
                                    <?php 
echo $form->field($model, 'zone')->widget(StaticCombo::classname(), ['data' => $dropDownZonesOptions, 'hasId' => true, 'inputOptions' => ['value' => $model->zone !== null ? $model->zone : $model::DEFAULT_ZONE, 'class' => 'form-control input-lg', 'name' => 'zone']]);
?>
                                </div>
                            </div>
                            <!-- /.col-md-3 -->
                            <div
                                class="col-md-2"><?php 
echo Html::submitButton(Yii::t('hipanel/domainchecker', 'Search'), ['class' => 'btn btn-info btn-flat btn-lg btn-block']);
?>
</div>
                            <!-- /.col-md-1 -->
                        </div>
                        <!-- /.row -->
                        <?php 
ActiveForm::end();
?>
Ejemplo n.º 2
0
echo $box->renderCreateButton(Yii::t('hipanel:client', 'Create client'));
?>
            <?php 
echo $box->renderSearchButton();
?>
            <?php 
echo $box->renderSorter(['attributes' => ['article_name', 'post_date']]);
?>
            <?php 
echo $box->renderPerPage();
?>
        <?php 
$box->endActions();
?>
        <?php 
echo $box->renderSearchForm();
?>
    <?php 
$box->end();
?>
    <?php 
$box->beginBulkForm();
?>
        <?php 
echo ArticleGridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $model, 'columns' => ['article_name', 'post_date', 'is_published' => ['value' => function ($model) {
    return $model->is_published === 't' ? Html::tag('span', Yii::t('hipanel:client', 'Published'), ['class' => 'label label-success']) : Html::tag('span', Yii::t('hipanel:client', 'Unpublished'), ['class' => 'label label-warning']);
}, 'format' => 'html', 'filter' => StaticCombo::widget(['attribute' => 'is_published', 'model' => $model, 'data' => ['t' => Yii::t('hipanel:client', 'Published'), 'f' => Yii::t('hipanel:client', 'Unpublished')], 'hasId' => true, 'inputOptions' => ['id' => 'responsible_id'], 'pluginOptions' => ['select2Options' => ['multiple' => false]]])]]]);
?>
    <?php 
$box->endBulkForm();
Pjax::end();