SB Admin 2 template Nav-x (static nav on top)

Dear all

I have been struggling with the following problem: I want to achieve the layout as My link

I cannot seem to configure my Nav-X bar to get it fixed at the top. The main thing is that I want to have a top fixed bar for login things and a side bar for main navigation. What I have for now:




<?php $this->beginBody() ?>

        <div id="wrapper">

            <!-- Check for login, if so: create sidemenu -->

            <?php

            $options = ['class' => 'nav navbar-nav navbar-right navbar-static-top',

                'brandLabel' => 'HorizonManager 1.0',

                'brandUrl' => Yii::$app->homeUrl];


            if (Yii::$app->user->isGuest) {

                $items = [

                    ['label' => $name, 'items' => [

                            ['label' => 'Login', 'url' => ['/site/login']],

                ]]];

            } else {

                $items = [

                    ['label' => $name, 'items' => [

                            ['label' => 'Logout', 'url' => ['/site/logout']],

                ]]];

            }




            NavBar::begin($options);

            echo NavX::widget([

                'options' => ['class' => 'nav navbar-top-links navbar-right'],

                'items' => $items,

                'activateParents' => true,

                'encodeLabels' => false

            ]);

            NavBar::end();

            ?>

        </nav>

        <?php

        if (!Yii::$app->user->isGuest) {

            ?>

            <div class="col-sm-2">


                <?php

                echo SideNav::widget([

                    'type' => SideNav::TYPE_DEFAULT,

                    'heading' => 'Menu',

                    'items' => [

                        [

                            'url' => '#',

                            'label' => 'Dashboard',

                            'icon' => 'dashboard'],

                        [

                            'url' => '/klant/index',

                            'label' => 'Klanten',

                            'icon' => 'user'],

                        ['label' => 'Help',

                            'icon' => 'question-sign',

                            'items' => [

                                ['label' => 'About', 'icon' => 'info-sign', 'url' => '#'],

                                ['label' => 'Contact', 'icon' => 'phone', 'url' => '#'],

                            ],

                        ],

                    ],

                ]);

                ?>

            </div>

            <div class="col-sm-10">

                <?= $content ?>

            </div>

            <?php } else {

            ?>

            <?= $content ?>

        <?php }

        ?>