<div class="node-menu">

    <div class="inline-block">

    <?php
        if (is_array($vitalList) && array_key_exists('obs', $vitalList))
        {
            ?>
        <div class="btn-group vitalsSelect margin-bottom">
            <a data-toggle="dropdown" class="btn btn-large dropdown-toggle">
                <span id="selectedVital">
                <?php
                    echo $selectedObs;
                ?>
                </span>
                <i class="icon-caret-down" style="position:relative;" ></i>
            </a>
            <ul class="dropdown-menu">
               <?php
            foreach ($vitalList['obs'] as $vital)
            {
                ?>
                <li><a class="selectVital" data-vital="<?= htmlspecialchars($vital['id']) ?>" href="javascript:void(0)"><?= htmlspecialchars($vital['id']) ?> (<?= htmlspecialchars($vital['description']) ?>)</a></li>
            <?php } ?>
            </ul>
        </div>

    <?php } ?>

    </div>

    <div class="pull-right inline margin-bottom-small" id="extrabuttons">


        <div class="button-grouping inline-block margin-left">
            <ul class="inline vitalsTimeFrame">
                 <?php foreach ((array)$vitals_sort_hour as $hour=>$label) { ?>
                    <li>
                        <a class="btn btn-large" data-hour="<?= htmlspecialchars($hour) ?>" href="javascript:void(0)"><?= htmlspecialchars($hour) ?>h</a>
                    </li>
                 <?php } ?>
            </ul>
        </div>


        <div class="btn-group inline-block margin-left v-top" style="cursor: pointer;" id="refresh-timer">
            <a class="btn btn-large dropdown-toggle" data-toggle="dropdown" href="javascript:void(0)">
                Auto refresh
                <i class="icon-caret-down" style="position:relative;" ></i>
            </a>
            <ul class="dropdown-menu">
                <li><a href="#" class="refresh-trigger" rel="1">1 min</a></li>
                <li><a href="#" class="refresh-trigger" rel="5">5 min</a></li>
                <li><a href="#" class="refresh-trigger"rel="10">10 min</a></li>
                <li class="divider"></li>
                <li><a href="#" class="refresh-trigger" rel="-1">Don't auto refresh</a></li>
            </ul>
        </div>


         <button class="btn btn-large refresh-trigger v-top">
            <i class="icon-refresh"></i>
        </button>

    </div>

</div>
