group.html 1.4 KB

123456789101112131415161718192021222324252627
  1. {% extends "../theme.html" %}
  2. {% block content %}
  3. <div class="crumbs">
  4. <h2><i class="icons ico-dt"></i>设备分组管理 <a style="margin-left:10px;" href="javascript:;" onclick="Farm.Page('添加页面', '/device/update_page')" class="btn">添加</a> <a style="margin-left:10px;" href="javascript:;" onclick="Farm.Page('大屏幕设置', '/device/screen_set')" class="btn">大屏幕设置</a></h2>
  5. </div>
  6. {% for v in data['page'] %}
  7. <div class="pannel">
  8. <h2>{{v['name']}} <div class="right r-btns"><a href="javascript:;" onclick="Farm.Page('修改页面', '/device/update_page?id={{v['id']}}')" class="icons ico-setting"></a><a href="javascript:;" onclick="Farm.Page('添加分组', '/device/update_group?page={{v['id']}}')" class="btn">添加</a></div> </h2>
  9. <div class="ul5">
  10. {% for gv in v['group'] %}
  11. <dl>
  12. <dt>{{gv['name']}} <div class="right r-btns"><a href="javascript:;" onclick="Farm.Page('修改分组', '/device/update_group?page={{v['id']}}&id={{gv['id']}}')" class="icons ico-setting"></a><a href="javascript:;" onclick="Farm.Delete(this, '{{gv['id']}}', '/device/update_group?id={{gv['id']}}')" class="icons ico-close-min"></a></div></dt>
  13. {% for dv in gv['device'] %}
  14. <dd>{{dv['name']}}</dd>
  15. {% end %}
  16. </dl>
  17. {% end %}
  18. </div>
  19. </div>
  20. {% end %}
  21. {% end %}
  22. {% block script %}
  23. {% end %}