config_weather.html 1.66 KB
{% extends base_template %}

{% block content %}

    <div class="row">

        <h1 id="none">Weather config for {{weather_config.origin.plc_origin}} {{weather_config.origin.plc_site}}</h1>

    <div class="well">
        Captors list:
    </div>
    <div class="row">
        <h3>Valid meteo devices</h3>
        <div>
            <form class="form-horizontal" action="/action_page.php">
            <table class="table">
                <thead>
                    <tr>
                        <th>device_name</th>
                        <th>device_type</th>
                        <th>serial_number</th>
                        <th>valid</th>
                        <th>name</th>
                        <th>monitor_name</th>
                        <th>type</th>
                        <th>Select </th>
                    </tr>
                </thead>
                <tbody>
                    {% for line in weather_config.sensors_table %}
                        <tr class="info">
                        <td>{{line.0}}</td>
                        <td>{{line.1}}</td>
                        <td>{{line.2}}</td>
                        <td>{{line.3}}</td>
                        <td>{{line.4}}</td>
                        <td onclick="alert('New value')">{{line.5}}</td>
                        <td>{{line.6}}</td>
                        <td><input class="form-check-input" name="{{line.5}}" value="{{line.8}}" {{line.7}} type="radio"></td>
                        </tr>
                    {% endfor %}
                </tbody>
            </table>

                <button type="submit" class="btn btn-primary">Submit</button>
        </form>
        </div>
    </div>
{% endblock %}