<div class="crumbs">
    <h2><i class="icons ico-dt"></i>{{data['name']}}
    {% if data['set_cur'] == 'mul' %}
    <a style="margin-left:10px;margin-top:5px;" href="javascript:;" onclick="Farm.Page('添加批量控制', '/device/update_set_mul')" class="btn">添加</a>
    {% elif data['set_cur'] == 'timing' %}
    <a style="margin-left:10px;margin-top:5px;" href="javascript:;" onclick="Farm.Page('添加定时命令', '/device/update_set_timing')" class="btn">添加</a>

    {% elif data['set_cur'] == 'loop' %}
    <a style="margin-left:10px;margin-top:5px;" href="javascript:;" onclick="Farm.Page('添加周期命令', '/device/update_set_loop')" class="btn">添加</a>

    {% elif data['set_cur'] == 'condition' %}
    <a style="margin-left:10px;margin-top:5px;" href="javascript:;" onclick="Farm.Page('添加条件控制', '/device/update_set_condition')" class="btn">添加</a>
    {% end %}
    </h2>
    <ul>
        <li {% if data['set_cur'] == 'mul' %}class="cur"{% end %}><a href="{{data['url']['mul']}}">批量控制</a></li>
        <li><span>/</span></li>
        <li {% if data['set_cur'] == 'timing' %}class="cur"{% end %}><a href="{{data['url']['timing']}}">定时命令</a></li>
        <li><span>/</span></li>
        <li {% if data['set_cur'] == 'loop' %}class="cur"{% end %}><a href="{{data['url']['loop']}}">周期命令</a></li>
        <li><span>/</span></li>
        <li {% if data['set_cur'] == 'condition' %}class="cur"{% end %}><a href="{{data['url']['condition']}}">条件控制</a></li>
    </ul>
</div>