{% extends "../theme.html" %}

{% block content %}

    <div class="pannel">
    	<h2>批量控制</h2>
        <div class="ul3">
            {% for value in data['list'] %}
            <dl>
                <dd class="controller"></dd>
                <dt>
                    <p href="javascript:;" data-status="{% if value['value'] == '1' %}0{% else %}1{% end %}"  onclick="Farm.Switch(this, '/device/mul', '{{value['id']}}')" class="btn-switch {% if value['value'] == '1' %}open{% end %}"><i></i></p>
                </dt>
                <dd class="tit">{{value['name']}}</dd>          
            </dl>
            {% end %}
        </div>
    </div>
{% end %}

{% block script %}
{%set loadUrl = '/device/mul?ajax=1' %}
{%include 'inc/load.html'%}
{% end %}