123456789101112131415161718192021222324252627 |
- {% extends "../theme.html" %}
- {% block content %}
- <div class="crumbs">
- <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>
- </div>
- {% for v in data['page'] %}
- <div class="pannel">
- <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>
- <div class="ul5">
- {% for gv in v['group'] %}
- <dl>
- <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>
- {% for dv in gv['device'] %}
- <dd>{{dv['name']}}</dd>
- {% end %}
- </dl>
- {% end %}
- </div>
- </div>
- {% end %}
- {% end %}
- {% block script %}
- {% end %}
|