echo Url::to([AppFormStatus::getSectionsUrl(4), 'id_application' => $this->context->actionParams['id_application']]);
    ?>
" class="btn btn-default fonm-radius-01 btn-loading" type="submit">Save and Next</a>
                                           </span>
                                      </div>
                                  </div>
                        <?php 
} else {
    ?>
                                    <div class="form-button-box clearfix">
                                           <span class="fr">
                                            <a href="<?php 
    echo Url::to([AppFormStatus::getSectionsUrl(2), 'id_application' => $this->context->actionParams['id_application']]);
    ?>
"class="btn btn-default fonm-radius-03 btn-loading" type="submit">Previous</a><a href="<?php 
    echo Url::to([AppFormStatus::getSectionsUrl(4), 'id_application' => $this->context->actionParams['id_application']]);
    ?>
" class="btn btn-default fonm-radius-01 btn-loading" type="submit">Next</a>
                                           </span>
                                      </div>
                                  </div>
                        <?php 
}
?>
                                </div>
                           </div>
                     </main>
                     <aside class="col-md-3 sidebar">
                        <?php 
echo AppFormStatusBar::widget(['id_application' => $this->context->actionParams['id_application']]);
?>
Esempio n. 2
0
use yii\helpers\Url;
use common\models\AppFormStatus;
$models = AppFormStatus::find()->andWhere(['id_application' => $id_application])->all();
?>

<div class="">
                     <ul class="nav nav-pills pt20">
                        <?php 
foreach ($models as $model) {
    ?>
                        <li role="presentation" class="<?php 
    echo '/' . Yii::$app->requestedRoute == AppFormStatus::getSectionsUrl($model->section_number) ? 'active' : '';
    ?>
"><a href="<?php 
    echo Url::to([AppFormStatus::getSectionsUrl($model->section_number), 'id_application' => $id_application]);
    ?>
"><?php 
    echo $model->table_name;
    if ($model->status) {
        ?>
 <i class="glyphicon">&#xe61c;</i><?php 
    }
    ?>
</a></li>
                        <?php 
}
?>
                      </ul>
                   </div>