12345678910111213141516171819202122232425262728293031323334 |
- {%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'] %}
- {%set layer = False %}
- {% if value['oper'] %}
- {%set layer = value['oper'] %}
- {% end %}
- <li class="form-input">
- <label><span>{{value['name']}}</span><p><a {% if layer %}data-hint="{{layer}}"{% end %} href="javascript:;" data-status="{% if value['value'] == '1' %}0{% else %}1{% end %}" onclick="Farm.Switch(this, '/device/mul', '{{value['id']}}')" class="{% if layer %}hint--left hint--info hint--always loading{% end %} 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 %}
|