mul.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. {%set loadUrl = '/device/mul?ajax=1' %}
  2. {% if data['ajax'] == False %}
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. {%include '../inc/header.html'%}
  7. <link href="{{static_url('mobile/css/station.css')}}" rel="stylesheet">
  8. </head>
  9. <body>
  10. {%set data['topName'] = '批量控制' %}
  11. {%set data['topUrl'] = '/device' %}
  12. {%include '../inc/top.html'%}
  13. <section class="has-bbar">
  14. <div id="loadMain">
  15. {% end %}
  16. {% for value in data['list'] %}
  17. {%set layer = False %}
  18. {% if value['oper'] %}
  19. {%set layer = value['oper'] %}
  20. {% end %}
  21. <li class="form-input">
  22. <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>
  23. </li>
  24. {% end %}
  25. {% if data['ajax'] == False %}
  26. </div>
  27. </section>
  28. {%include '../inc/script.html'%}
  29. {%include 'inc/load.html'%}
  30. </body>
  31. </html>
  32. {% end %}