backend/views/taxonomy/_search.php
<?php
/**
* @link http://www.writesdown.com/
* @author Agiel K. Saputra <13nightevil@gmail.com>
* @copyright Copyright (c) 2015 WritesDown
* @license http://www.writesdown.com/license/
*/
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\search\Taxonomy */
/* @var $form yii\widgets\ActiveForm */
?>
<div id="taxonomy-search" class="taxonomy-search collapse">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]) ?>
<div class="row">
<div class="col-sm-6">
<?= $form->field($model, 'name') ?>
<?= $form->field($model, 'slug') ?>
<?= $form->field($model, 'hierarchical')->dropDownList($model->getHierarchies(), ['prompt' => '']) ?>
</div>
<div class="col-sm-6">
<?= $form->field($model, 'singular_name') ?>
<?= $form->field($model, 'plural_name') ?>
<?= $form->field($model, 'menu_builder')->dropDownList($model->getMenuBuilders(), ['prompt' => '']) ?>
</div>
</div>
<div class="form-group">
<?= Html::submitButton(Yii::t('writesdown', 'Search'), ['class' => 'btn btn-flat btn-primary']) ?>
<?= Html::resetButton(Yii::t('writesdown', 'Reset'), ['class' => 'btn btn-flat btn-default']) ?>
<?= Html::button(Html::tag('i', '', ['class' => 'fa fa fa-level-up']), [
'class' => 'index-search-button btn btn-flat btn-default',
'data-toggle' => 'collapse',
'data-target' => '#taxonomy-search',
]) ?>
</div>
<?php ActiveForm::end() ?>
</div>