<div class="text-center"><h1>LIVE VALUES</h1></div>
<div class='row row-flex'>
    <div class='col-xs-4 text-center box-me'>
        <h2>Intake Pressure</h2>
        <div class="gauge-box">
            <div data-labelheight="10"
                style="height: 170px; background: transparent; margin: 0 auto;"
                id="gauge-intakepressure"
                data-chart="solidgauge"
                data-nodename="advvfdipp.intakepressure"
                data-units="PSI"
                data-min="0"
                data-max="1000"
                data-decimalplaces="2"
                data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"
                data-valuefontsize="18px">
            </div>
            <span data-timeupdate="intakepressure"><%= channels["advvfdipp.intakepressure"].timestamp %></span>
        </div>
    </div>

    <div class='col-xs-4 text-center box-me'>
        <h2>Fluid Level</h2>
        <div class="gauge-box">
            <div
                data-labelheight="10"
                style="height: 170px; background: transparent; margin: 0 auto;"
                id="gauge-fluidlevel"
                data-chart="solidgauge"
                data-nodename="advvfdipp.fluidlevel"
                data-units="ft."
                data-min="0"
                data-max="500"
                data-decimalplaces="2"
                data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"
                data-valuefontsize="18px">
            </div>
            <span data-timeupdate="fluidlevel"><%= channels["advvfdipp.fluidlevel"].timestamp %></span>
        </div>
    </div>

    <div class='col-xs-4 text-center box-me'>
        <h2>Intake Temperature</h2>
        <div class="gauge-box">
            <div
                data-labelheight="10"
                style="height: 170px; background: transparent; margin: 0 auto;"
                id="gauge-intaketemperature"
                data-chart="solidgauge"
                data-nodename="advvfdipp.intaketemperature"
                data-units="&deg;F"
                data-min="0"
                data-max="200"
                data-decimalplaces="2"
                data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"
                data-valuefontsize="18px">
            </div>
            <span data-timeupdate="intaketemperature"><%= channels["advvfdipp.intaketemperature"].timestamp %></span>
        </div>
    </div>

    <div class='col-xs-4 text-center box-me'>
        <h2>Pressure Settings</h2>
        <div class="gauge-box">
            <table class="table">
                <tbody>
                    <tr>
                        <td>Shutdown Limit</td>
                        <td><%= channels["advvfdipp.pressureshutdownlimit"].value %> PSI</td>
                    </tr>

                    <tr>
                        <td>Startup Limit</td>
                        <td><%= channels["advvfdipp.pressurestartuplimit"].value %> PSI</td>
                    </tr>

                </tbody>
            </table>
        </div>
    </div>

    <div class='col-xs-4 text-center box-me'>
        <h2>Temperature Settings</h2>
        <div class="gauge-box">
            <table class="table">
                <tbody>

                    <tr>
                        <td>Shutdown Limit</td>
                        <td><%= channels["advvfdipp.temperatureshutdownlimit"].value %> &deg;F</td>
                    </tr>

                    <tr>
                        <td>Startup Limit</td>
                        <td><%= channels["advvfdipp.temperaturestartuplimit"].value %> &deg;F</td>
                    </tr>

                </tbody>
            </table>
        </div>
    </div>

    <div class='col-xs-4 text-center box-me'>
        <h2>Instrument Settings</h2>
        <div class="gauge-box">
            <table class="table">
                <tbody>

                    <tr>
                        <td>Comm. Status</td>
                        <td><%= channels["advvfdipp.downholesensorstatus"].value %></td>
                    </tr>

                    <tr>
                        <td>Specific Gravity</td>
                        <td><%= channels["advvfdipp.fluidspecificgravity"].value %> &deg;F</td>
                    </tr>

                    <tr>
                        <td>Sensor Height</td>
                        <td><%= channels["advvfdipp.sensorheight"].value %> ft.</td>
                    </tr>

                </tbody>
            </table>
        </div>
    </div>
</div>

<div class="text-center"><h1>TRENDS</h1></div>
<div class="row box-me">
    <div class='col-xs-12' style="padding-top: 1em; margin-bottom: 1em;">
        <div class="input-daterange input-group" id="datepicker">
            <input data-chartid="dynamicChart" id="fromDate" data-daysofhistory="7"  type="text" class="form-control" name="start">
            <span class="input-group-addon">to</span>
            <input class="form-control" data-chartid="dynamicChart" id="toDate" type="text"  name="end">
            <span class='input-group-btn'>
                <a href="#!" data-chartid="dynamicChart" data-otherchartids="statusTimeline" class="btn chart-update btn-theme">Run</a>
            </span>
        </div>
    </div>
    <hr>
    <div class='clearfix col-xs-12' style='height: 300px' id="dynamicChart" data-chart="dynamicchart" data-daysofhistory="7"  data-chartlabel="Data" data-ylabel="" data-xlabel="Date" data-units=""  data-channelnames="advvfdipp.intakepressure,advvfdipp.intaketemperature,advvfdipp.fluidlevel,advvfdipp.fluidspecificgravity"></div>
</div>


<style>
    .box-me {
        position: relative;
        padding: 0.5em;
        padding-bottom: 1.5em;
        border: 1px solid #eee;
        /*margin: 1em 0;*/
    }
    .box-me .gauge-box {
        margin-top: -0.25em;
    }
    .box-me h2 {
        text-transform: uppercase;
        font-size: 14px;
        color: #666;
        font-weight: 400;
        letter-spacing: 1px;
        z-index: 100;
    }
    .dynamic-chart-form {
        background-color: whiteSmoke;
        padding: 1em 0.5em;
        margin-top: 1em;
    }

    .row-flex {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display:         flex;
        flex-wrap: wrap;
    }
    .row-flex > [class*='col-'] {
        display: flex;
        flex-direction: column;
    }

    .mar15 {
        margin: 15px 15px;
    }

    #systemStatusTimelineContainer h2 {
        text-transform: uppercase;
        font-size: 14px;
        color: #666;
        font-weight: 400;
        letter-spacing: 1px;
        z-index: 100;
    }
</style>
