echo $form->textFieldGroup($StatementLogSearchForm, 'company_id', ['widgetOptions' => ['htmlOptions' => []]]);
?>
        </section>
        <section class="col-md-2">
        <?php 
echo $form->textFieldGroup($StatementLogSearchForm, 'user_id', ['widgetOptions' => ['htmlOptions' => []]]);
?>
        </section>
        <section class="col-md-2">
        <?php 
echo $form->textFieldGroup($StatementLogSearchForm, 'statement_id', ['widgetOptions' => ['htmlOptions' => []]]);
?>
        </section>
        <section class="col-md-2">
        <?php 
echo $form->checkboxListGroup($StatementLogSearchForm, 'status', ['widgetOptions' => ['data' => StatementLog::getTranslatedStatusList(), 'htmlOptions' => []]]);
?>
        </section>
    <section class="col-md-2">
<?php 
$this->widget('bootstrap.widgets.TbButton', ['buttonType' => 'submit', 'htmlOptions' => ['name' => 'save', 'value' => 'save', 'class' => 'search'], 'label' => '<i class="fa fa-search"></i> ' . Yii::t('Statement.default', 'Искать'), 'encodeLabel' => false]);
?>
    </section>
</div>


<div class="row statement-log-result">
<?php 
$dataProvider->pagination = array('pageSize' => 25);
?>
    <div class="default-result">
Exemple #2
0
 public static function addToStatementLog(Statement $Statement, $status, Company $Company)
 {
     Yii::log("addToStatementLog start", "info");
     $StatementLog = new StatementLog();
     $StatementLog->company_id = $Company->id;
     $StatementLog->statement_id = $Statement->id;
     $StatementLog->status = $status;
     if (!$StatementLog->save()) {
         //Yii::log("addToStatementLog  [".print_r( $StatementLog->getErrors() , true )."],StatementLog=[".print_r( $StatementLog, true )."]","info");
         throw new CException(Yii::t('StatementModule.default', 'Не могу добавить в StatementLog,errors', ['errors' => print_r($StatementLog->getErrors(), true)]));
     }
     Yii::log("addToStatementLog end", "info");
 }
 public function actionStatementLogView()
 {
     $id = Yii::app()->request->getParam('id', null);
     $StatementLog = StatementLog::model()->findByPk($id);
     $this->render('view_statementlog', ['StatementLog' => $StatementLog]);
 }