menu.html 1.5 KB

123456789101112131415161718192021222324
  1. <div class="crumbs">
  2. <h2><i class="icons ico-dt"></i>{{data['name']}}
  3. {% if data['set_cur'] == 'mul' %}
  4. <a style="margin-left:10px;margin-top:5px;" href="javascript:;" onclick="Farm.Page('添加批量控制', '/device/update_set_mul')" class="btn">添加</a>
  5. {% elif data['set_cur'] == 'timing' %}
  6. <a style="margin-left:10px;margin-top:5px;" href="javascript:;" onclick="Farm.Page('添加定时命令', '/device/update_set_timing')" class="btn">添加</a>
  7. {% elif data['set_cur'] == 'loop' %}
  8. <a style="margin-left:10px;margin-top:5px;" href="javascript:;" onclick="Farm.Page('添加周期命令', '/device/update_set_loop')" class="btn">添加</a>
  9. {% elif data['set_cur'] == 'condition' %}
  10. <a style="margin-left:10px;margin-top:5px;" href="javascript:;" onclick="Farm.Page('添加条件控制', '/device/update_set_condition')" class="btn">添加</a>
  11. {% end %}
  12. </h2>
  13. <ul>
  14. <li {% if data['set_cur'] == 'mul' %}class="cur"{% end %}><a href="{{data['url']['mul']}}">批量控制</a></li>
  15. <li><span>/</span></li>
  16. <li {% if data['set_cur'] == 'timing' %}class="cur"{% end %}><a href="{{data['url']['timing']}}">定时命令</a></li>
  17. <li><span>/</span></li>
  18. <li {% if data['set_cur'] == 'loop' %}class="cur"{% end %}><a href="{{data['url']['loop']}}">周期命令</a></li>
  19. <li><span>/</span></li>
  20. <li {% if data['set_cur'] == 'condition' %}class="cur"{% end %}><a href="{{data['url']['condition']}}">条件控制</a></li>
  21. </ul>
  22. </div>