<!DOCTYPE html>
<html>

<head>
    {%include '../inc/header.html'%}
    <link href="{{static_url('mobile/css/index.css')}}" rel="stylesheet">
</head>

<body>
    <h1 class="h1">{{data['setting']['farmInfo']['name']}}</h1>
    <section>
        <div class="form-group-head">设备综合管控</div>
        <ul>
            {% for value in data['page'] %}
            <li class="form-input">
                <a href="/device/data?type=page&id={{value['id']}}">
                    <i class="ico ico-{% if value['ico'] == 'kz' %}2{% else %}1{% end %}"></i><span>{{value['name']}}</span><p><i>&gt;</i></p>
                </a>
            </li>
            {% end %}
            <li class="form-input">
                <a href="/device/mul">
                    <i class="ico ico-3"></i><span>批量控制</span><p><i>&gt;</i></p>
                </a>
            </li>
        </ul>
        <div class="form-group-head">设备管理</div>
        <ul>
            {% for value in data['gateway'] %}
            <li class="form-input">
                <a href="/device/data?type=gateway&id={{value['id']}}">
                    <i class="ico ico-4"></i><span>{{value['name']}}</span><p><i>&gt;</i></p>
                </a>
            </li>
            {% end %}
        </ul>
        <div class="form-group-head">基础信息</div>
        <ul>
            <li class="form-input">
                <a href="/msg">
                    <i class="ico ico-5"></i><span>消息通知提醒</span><p>{% if 'msgNum' in data['setting'] and data['setting']['msgNum'] > 0 %}<b>{{data['setting']['msgNum']}}</b>{% end %}<i>&gt;</i></p>
                </a>
            </li>
        </ul>
        <ul class="mt22">
            <li class="form-input">
                <a href="/user/loginout">
                    <span>退出登录</span><p><i>&gt;</i></p>
                </a>
            </li>
        </ul>
    </section>

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