{%set loadUrl = '/device/mul?ajax=1' %}
{% if data['ajax'] == False %}
<!DOCTYPE html>
<html>
<head>
    {%include '../inc/header.html'%}
    <link href="{{static_url('mobile/css/station.css')}}" rel="stylesheet">
</head>

<body>
    {%set data['topName'] = '批量控制' %}
    {%set data['topUrl'] = '/device' %}
    {%include '../inc/top.html'%}
    <section class="has-bbar">
    	<div id="loadMain">
        {% end %}
        {% for value in data['list'] %}
        <li class="form-input">
	        <label><span>{{value['name']}}</span><p><a href="javascript:;" data-status="{% if value['value'] == '1' %}0{% else %}1{% end %}"  onclick="Farm.Switch(this, '/device/mul', '{{value['id']}}')" class="btn btn-switch {% if value['value'] == '1' %}open{% end %}"><i></i></a></p></label>
	    </li>
        {% end %}
        {% if data['ajax'] == False %}
        </div>
    </section>

{%include '../inc/script.html'%}
{%include 'inc/load.html'%}
</body>
</html>
{% end %}